solidity/scripts/uniqueErrors.sh

15 lines
312 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
2017-02-24 18:33:05 +00:00
2020-12-11 17:19:53 +00:00
REPO="$(dirname "$0")/.."
2017-02-24 18:33:05 +00:00
echo "Finding unique failures..."
(
2020-12-11 18:22:59 +00:00
for x in "$@"
2017-02-24 18:33:05 +00:00
do
2020-12-11 17:19:53 +00:00
echo -n "$x" " # "
2020-12-11 17:15:16 +00:00
# This subshell is a workaround to prevent the shell from printing
# "Aborted"
("$REPO"/build/test/tools/solfuzzer < "$x" || true) 2>&1 | head -n 1
2017-02-24 18:33:05 +00:00
done
) | sort -u -t'#' -k 2