Skip to content

Commit

Permalink
tests: improve error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNardi committed Feb 12, 2024
1 parent 9566cc3 commit 9a75a1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/run-utests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ for f in $PCAPS; do
if [ $CMD_RET -eq 0 ]; then
NUM_DIFF=`diff <(xxd ./results/$f.fuzzed) <(xxd $OUTPUT) | wc -l`
if [ $NUM_DIFF -eq 0 ]; then
echo "$f OK"
printf "%-48s\tOK\n" "$f"
else
echo "$f Diff Error"
printf "%-48s\tERROR\n" "$f"
RC=$(( RC + 1 ))
#diff <(xxd ./results/$f.fuzzed) <(xxd $OUTPUT)
#cp $OUTPUT ./results/$f.fuzzed
fi
else
echo "%f Error!"
printf "%-48s\tERROR\n" "$f"
RC=$(( RC + 1 ))
fi

Expand Down

0 comments on commit 9a75a1a

Please sign in to comment.