Skip to content

Commit 79d1e6b

Browse files
committed
.github/workflows/trackmemory.yml: new workflow testing various configs with -DWC_RNG_SEED_CB -DWOLFSSL_TRACK_MEMORY -DWOLFSSL_DEBUG_MEMORY.
1 parent fb82bdb commit 79d1e6b

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/trackmemory.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: WOLFSSL_TRACK_MEMORY Tests
2+
3+
# START OF COMMON SECTION
4+
on:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
14+
15+
jobs:
16+
make_check:
17+
strategy:
18+
matrix:
19+
config: [
20+
# Add new configs here
21+
'--enable-all CFLAGS="-DWC_RNG_SEED_CB -DWOLFSSL_TRACK_MEMORY -DWOLFSSL_DEBUG_MEMORY"',
22+
'--enable-smallstack --enable-all CFLAGS="-DWC_RNG_SEED_CB -DWOLFSSL_TRACK_MEMORY -DWOLFSSL_DEBUG_MEMORY"',
23+
'--enable-smallstackcache --enable-smallstack --enable-all CFLAGS="-DWC_RNG_SEED_CB -DWOLFSSL_TRACK_MEMORY -DWOLFSSL_DEBUG_MEMORY"',
24+
# Note the below smallstackcache tests are crucial coverage for the Linux kernel
25+
# module, when targeting a kernel with the randomness patch (linuxkm/patches/)
26+
# applied.
27+
#
28+
# Note, don't combine wolfEntropy with the full TLS cipher suite test -- the implicit wc_InitRng()s in each suite have an enormous CPU footprint.
29+
'--enable-wolfEntropy --enable-smallstackcache --enable-smallstack --enable-all CFLAGS="-DWC_RNG_SEED_CB -DWOLFSSL_TRACK_MEMORY -DWOLFSSL_DEBUG_MEMORY -DNO_WOLFSSL_CIPHER_SUITE_TEST"',
30+
'--enable-amdrand --enable-smallstackcache --enable-smallstack --enable-all CFLAGS="-DWC_RNG_SEED_CB -DWOLFSSL_TRACK_MEMORY -DWOLFSSL_DEBUG_MEMORY -DNO_WOLFSSL_CIPHER_SUITE_TEST"',
31+
'--disable-asm --enable-wolfEntropy --enable-smallstackcache --enable-smallstack --enable-all CFLAGS="-DWC_RNG_SEED_CB -DWOLFSSL_TRACK_MEMORY -DWOLFSSL_DEBUG_MEMORY -DNO_WOLFSSL_CIPHER_SUITE_TEST"'
32+
]
33+
name: make check
34+
if: github.repository_owner == 'wolfssl'
35+
runs-on: ubuntu-latest
36+
# This should be a safe limit for the tests to run.
37+
timeout-minutes: 6
38+
steps:
39+
- uses: actions/checkout@v4
40+
name: Checkout wolfSSL
41+
42+
- name: Test wolfSSL
43+
run: |
44+
./autogen.sh
45+
./configure ${{ matrix.config }}
46+
make -j 4
47+
make check
48+
49+
- name: Print errors
50+
if: ${{ failure() }}
51+
run: |
52+
for file in scripts/*.log
53+
do
54+
if [ -f "$file" ]; then
55+
echo "${file}:"
56+
cat "$file"
57+
echo "========================================================================"
58+
fi
59+
done

0 commit comments

Comments
 (0)