Skip to content

Commit

Permalink
revert test-break-kat.sh since run-fips-test.sh relies on the output
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhop committed Feb 5, 2025
1 parent f7b3d95 commit f3e31fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions util/fipstools/test-break-kat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ KATS=$(go run util/fipstools/break-kat.go --list-tests)
for kat in $KATS; do
go run util/fipstools/break-kat.go $TEST_FIPS_BIN $kat > break-kat-bin
chmod u+x ./break-kat-bin
output=$(2>&1 ./break-kat-bin 2>&1 || true)
echo "$output"
if ! echo "$output" | egrep -q "^${kat}[^a-zA-Z0-9]"; then
if ! (./break-kat-bin 2>&1 >/dev/null || true) | \
egrep -q "^$kat[^a-zA-Z0-9]"; then
echo "Failure for $kat did not mention that name in the output"
exit 1
fi
Expand Down

0 comments on commit f3e31fd

Please sign in to comment.