diff options
author | chriseth <c@ethdev.com> | 2017-02-25 02:33:05 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-02-25 02:33:05 +0800 |
commit | 41360ccd57997edfd6807c75a33f4dbc4b65558b (patch) | |
tree | f696d008ca98b90868d349e5172256020a8bd76a /scripts/uniqueErrors.sh | |
parent | 9acfdb80444e94c2fe8845f796f13f8dedc49b22 (diff) | |
download | dexon-solidity-41360ccd57997edfd6807c75a33f4dbc4b65558b.tar.gz dexon-solidity-41360ccd57997edfd6807c75a33f4dbc4b65558b.tar.zst dexon-solidity-41360ccd57997edfd6807c75a33f4dbc4b65558b.zip |
Script for filtering unique failures.
Diffstat (limited to 'scripts/uniqueErrors.sh')
-rwxr-xr-x | scripts/uniqueErrors.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/uniqueErrors.sh b/scripts/uniqueErrors.sh new file mode 100755 index 00000000..eee1df90 --- /dev/null +++ b/scripts/uniqueErrors.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +REPO=$(dirname $0)/.. + +echo "Finding unique failures..." +( +for x in $* +do + echo -n $x " # " + # This subshell is a workaround to prevent the shell from printing + # "Aborted" + ("$REPO"/build/test/solfuzzer < "$x" || true) 2>&1 | head -n 1 +done +) | sort -u -t'#' -k 2 |