File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 BUILD_TYPE : Release
1212 TEST_BUILD_TYPE : Debug
1313 NON_INTERACTIVE_TESTS : |
14+ TestApiProviderOption
1415 TestBase64
16+ TestBruteForceLimiter
1517 TestCache
18+ TestChaCha20Poly1305
19+ TestCounter
20+ TestCryptoKdfHkdfSha256
21+ TestDatabase /tmp/tui-test.db
22+ TestEcdhePsk
23+ TestEd25519
24+ TestFakeCredentialGenerator
25+ TestHttpClient
26+ TestHttpStreamResponseParser
27+ TestRegister username password
28+ TestResourceVersionManager
29+ TestRpcServer
30+ TestSecureSession
31+ TestSpake2p
32+ TestSqlite /tmp/tui-test.db
33+ TestStreamBatcher
34+ TestTevInjectionQueue
35+ TestTlv
36+ TestUtf8
37+ TestUuid
38+ TestWorkerThread
1639
1740jobs :
1841 build-and-test :
@@ -82,15 +105,21 @@ jobs:
82105 if : env.NON_INTERACTIVE_TESTS != ''
83106 run : |
84107 set -euo pipefail
85- mapfile -t tests < <(printf '%s\n' "$NON_INTERACTIVE_TESTS" | sed '/^$/d')
108+ mapfile -t tests < <(printf '%s\n' "$NON_INTERACTIVE_TESTS" | sed '/^$/d' | sed '/^#/d' )
86109 pushd test/build
87- for t in "${tests[@]}"; do
88- if [[ ! -x "$t" ]]; then
89- echo "Missing test binary: $PWD/$t" >&2
110+ for line in "${tests[@]}"; do
111+ set -- $line
112+ bin="$1"
113+ shift || true
114+ if [[ -z "$bin" ]]; then
115+ continue
116+ fi
117+ if [[ ! -x "$bin" ]]; then
118+ echo "Missing test binary: $PWD/$bin" >&2
90119 exit 1
91120 fi
92- echo "::group::valgrind $t "
93- valgrind --leak-check=full --errors-for-leak-kinds=definite,possible --error-exitcode=42 "./$t "
121+ echo "::group::valgrind $bin $* "
122+ valgrind --leak-check=full --errors-for-leak-kinds=definite,possible --error-exitcode=42 "./$bin" "$@ "
94123 echo "::endgroup::"
95124 done
96125 popd
You can’t perform that action at this time.
0 commit comments