Skip to content

Commit 0c413e7

Browse files
committed
add environment matrix to msys workflow
1 parent 439012d commit 0c413e7

2 files changed

Lines changed: 19 additions & 13 deletions

File tree

.github/workflows/msys2.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,27 @@ concurrency:
1313
# END OF COMMON SECTION
1414

1515
jobs:
16-
msys2-ucrt64:
16+
msys2:
1717
runs-on: windows-latest
1818
defaults:
1919
run:
2020
shell: msys2 {0}
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- { sys: ucrt64, compiler: mingw-w64-ucrt-x86_64-gcc }
26+
- { sys: mingw64, compiler: mingw-w64-x86_64-gcc }
27+
- { sys: msys, compiler: gcc }
2128
steps:
2229
- uses: actions/checkout@v3
2330
- uses: msys2/setup-msys2@v2
2431
with:
25-
path: wolfssl
26-
msystem: UCRT64
32+
msystem: ${{ matrix.sys }}
2733
update: true
28-
install: git mingw-w64-ucrt-x86_64-gcc autotools base-devel autoconf
34+
install: git ${{matrix.compiler}} autotools base-devel autoconf netcat
2935
- name: configure wolfSSL
30-
run: ./autogen.sh && ./configure --enable-all --disable-crl-monitor
36+
run: ./autogen.sh && ./configure CFLAGS="-DUSE_CERT_BUFFERS_2048 -DUSE_CERT_BUFFERS_256"
3137
- name: build wolfSSL
3238
run: make check
3339
- name: Display log

tests/api.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69604,7 +69604,7 @@ static int test_wolfSSL_TXT_DB(void)
6960469604

6960569605
/* Test index */
6960669606
ExpectIntEQ(TXT_DB_create_index(db, 3, NULL,
69607-
(wolf_sk_hash_cb)(MESSAGE_TYPE_CAST)TXT_DB_hash,
69607+
(wolf_sk_hash_cb)(long unsigned int)TXT_DB_hash,
6960869608
(wolf_lh_compare_cb)TXT_DB_cmp), 1);
6960969609
ExpectNotNull(TXT_DB_get_by_index(db, 3, (WOLFSSL_STRING*)fields));
6961069610
fields[3] = "12DA";
@@ -83752,10 +83752,10 @@ static void test_wolfSSL_dtls_plaintext_client(WOLFSSL* ssl)
8375283752
AssertIntGE(fd, 0);
8375383753
generateDTLSMsg(ch, sizeof(ch), 20, client_hello, 0);
8375483754
/* Server should ignore this datagram */
83755-
AssertIntEQ(send(fd, (MESSAGE_TYPE_CAST)ch, sizeof(ch), 0), sizeof(ch));
83755+
AssertIntEQ(send(fd, ch, sizeof(ch), 0), sizeof(ch));
8375683756
generateDTLSMsg(ch, sizeof(ch), 20, client_hello, 10000);
8375783757
/* Server should ignore this datagram */
83758-
AssertIntEQ(send(fd, (MESSAGE_TYPE_CAST)ch, sizeof(ch), 0), sizeof(ch));
83758+
AssertIntEQ(send(fd, ch, sizeof(ch), 0), sizeof(ch));
8375983759

8376083760
AssertIntEQ(wolfSSL_write(ssl, msg, sizeof(msg)), sizeof(msg));
8376183761
AssertIntGT(wolfSSL_read(ssl, reply, sizeof(reply)),0);
@@ -83866,7 +83866,7 @@ static void test_wolfSSL_dtls12_fragments_spammer(WOLFSSL* ssl)
8386683866
delay.tv_nsec = 10000000; /* wait 0.01 seconds */
8386783867
c32toa(seq_number, b + seq_offset);
8386883868
c16toa(msg_number, b + msg_offset);
83869-
ret = (int)send(fd, (MESSAGE_TYPE_CAST)b, 55, 0);
83869+
ret = (int)send(fd, b, 55, 0);
8387083870
nanosleep(&delay, NULL);
8387183871
}
8387283872
}
@@ -83986,7 +83986,7 @@ static void test_wolfSSL_dtls_send_alert(WOLFSSL* ssl)
8398683986

8398783987
fd = wolfSSL_get_wfd(ssl);
8398883988
AssertIntGE(fd, 0);
83989-
ret = (int)send(fd, (MESSAGE_TYPE_CAST)alert_msg, sizeof(alert_msg), 0);
83989+
ret = (int)send(fd, alert_msg, sizeof(alert_msg), 0);
8399083990
AssertIntGT(ret, 0);
8399183991
}
8399283992

@@ -84057,7 +84057,7 @@ static void test_wolfSSL_send_bad_record(WOLFSSL* ssl)
8405784057

8405884058
fd = wolfSSL_get_wfd(ssl);
8405984059
AssertIntGE(fd, 0);
84060-
ret = (int)send(fd, (MESSAGE_TYPE_CAST)bad_msg, sizeof(bad_msg), 0);
84060+
ret = (int)send(fd, bad_msg, sizeof(bad_msg), 0);
8406184061
AssertIntEQ(ret, sizeof(bad_msg));
8406284062
ret = wolfSSL_write(ssl, "badrecordtest", sizeof("badrecordtest"));
8406384063
AssertIntEQ(ret, sizeof("badrecordtest"));
@@ -84415,10 +84415,10 @@ static void test_wolfSSL_dtls_send_ch(WOLFSSL* ssl)
8441584415

8441684416
fd = wolfSSL_get_wfd(ssl);
8441784417
AssertIntGE(fd, 0);
84418-
ret = (int)send(fd, (MESSAGE_TYPE_CAST)ch_msg, sizeof(ch_msg), 0);
84418+
ret = (int)send(fd, ch_msg, sizeof(ch_msg), 0);
8441984419
AssertIntGT(ret, 0);
8442084420
/* consume the HRR otherwise handshake will fail */
84421-
ret = (int)recv(fd, (MESSAGE_TYPE_CAST)ch_msg, sizeof(ch_msg), 0);
84421+
ret = (int)recv(fd, ch_msg, sizeof(ch_msg), 0);
8442284422
AssertIntGT(ret, 0);
8442384423
}
8442484424

0 commit comments

Comments
 (0)