Skip to content

Commit

Permalink
Move where the callback tests are run so the local symbols check does…
Browse files Browse the repository at this point in the history
…n't fail
  • Loading branch information
andrewhop committed Feb 22, 2025
1 parent 7e41a15 commit cfb5714
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ci/run_fips_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ if static_linux_supported || static_openbsd_supported; then
echo "Testing AWS-LC static library in FIPS Release mode."
fips_build_and_test -DCMAKE_BUILD_TYPE=Release

echo "Testing AWS-LC static breakable build with custom callback enabled"
run_build -DFIPS=1 -DCMAKE_C_FLAGS="-DBORINGSSL_FIPS_BREAK_TESTS -DAWSLC_FIPS_FAILURE_CALLBACK"
./tests/ci/run_fips_callback_tests.sh

echo "Testing AWS-LC static breakable release build"
run_build -DFIPS=1 -DCMAKE_C_FLAGS="-DBORINGSSL_FIPS_BREAK_TESTS"
./util/fipstools/test-break-kat.sh
Expand All @@ -39,10 +43,6 @@ if static_linux_supported || static_openbsd_supported; then
${BUILD_ROOT}/crypto/crypto_test --gtest_filter="RSADeathTest.KeygenFailAndDie"
unset BORINGSSL_FIPS_BREAK_TEST

echo "Testing AWS-LC static breakable build with custom callback enabled"
run_build -DFIPS=1 -DCMAKE_C_FLAGS="-DBORINGSSL_FIPS_BREAK_TESTS -DAWSLC_FIPS_FAILURE_CALLBACK"
./tests/ci/run_fips_callback_tests.sh

MODULE_HASH=$(go run util/fipstools/break-hash.go "${BUILD_ROOT}/util/fipstools/test_fips" ./libcrypto.so | \
egrep "Hash of module was:.* ([a-f0-9]*)")

Expand Down

0 comments on commit cfb5714

Please sign in to comment.