From 56412b11b3bee492f1e441eab8f01f86876376d7 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 19 May 2017 09:50:34 +0100 Subject: [PATCH 1/3] Display the source on which the 'fuzzer' failed --- test/cmdlineTests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index 6dc3f77fd..09db31916 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -80,6 +80,10 @@ TMPDIR=$(mktemp -d) for f in *.sol do "$REPO_ROOT"/build/test/solfuzzer --quiet < "$f" + if [ $? -ne 0 ]; then + echo "Fuzzer failed on:" + cat $f + fi done ) rm -rf "$TMPDIR" From 21ba8eea69a175452e417a029c149ba303d9952e Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 19 May 2017 13:50:49 +0200 Subject: [PATCH 2/3] Disable error checking by bash for fuzzer --- test/cmdlineTests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index 09db31916..54b48b4ae 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -79,11 +79,14 @@ TMPDIR=$(mktemp -d) "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/ for f in *.sol do + set +e "$REPO_ROOT"/build/test/solfuzzer --quiet < "$f" if [ $? -ne 0 ]; then echo "Fuzzer failed on:" cat $f + exit 1 fi + set -e done ) rm -rf "$TMPDIR" From 6d1252f807f843fc23fe6a36970283e54b549499 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 19 May 2017 17:58:07 +0200 Subject: [PATCH 3/3] Put filename in quotes. --- test/cmdlineTests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index 54b48b4ae..4074ce555 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -83,7 +83,7 @@ TMPDIR=$(mktemp -d) "$REPO_ROOT"/build/test/solfuzzer --quiet < "$f" if [ $? -ne 0 ]; then echo "Fuzzer failed on:" - cat $f + cat "$f" exit 1 fi set -e