solidity/scripts/uniqueErrors.sh
2021-03-04 16:53:05 +01:00

15 lines
312 B
Bash
Executable File

#!/usr/bin/env bash
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/tools/solfuzzer < "$x" || true) 2>&1 | head -n 1
done
) | sort -u -t'#' -k 2