aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-05-20 00:32:50 +0800
committerGitHub <noreply@github.com>2017-05-20 00:32:50 +0800
commit41ee2cefbbe0009fd7576f3e965b63e076d1ad24 (patch)
tree1b522ec213958ff73f90599a0945cf7da9df34af /test
parent56424bb2026ab484470b5e0e6f1ddb2ab3c7ac85 (diff)
parent6d1252f807f843fc23fe6a36970283e54b549499 (diff)
downloaddexon-solidity-41ee2cefbbe0009fd7576f3e965b63e076d1ad24.tar.gz
dexon-solidity-41ee2cefbbe0009fd7576f3e965b63e076d1ad24.tar.zst
dexon-solidity-41ee2cefbbe0009fd7576f3e965b63e076d1ad24.zip
Merge pull request #2282 from ethereum/fuzzer
Display the source on which the 'fuzzer' failed
Diffstat (limited to 'test')
-rwxr-xr-xtest/cmdlineTests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh
index 6dc3f77f..4074ce55 100755
--- a/test/cmdlineTests.sh
+++ b/test/cmdlineTests.sh
@@ -79,7 +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"