diff options
Diffstat (limited to 'tests/run-dwarfcmp-self.sh')
-rwxr-xr-x | tests/run-dwarfcmp-self.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/run-dwarfcmp-self.sh b/tests/run-dwarfcmp-self.sh index f108d060..cce6641a 100755 --- a/tests/run-dwarfcmp-self.sh +++ b/tests/run-dwarfcmp-self.sh @@ -26,15 +26,20 @@ . $srcdir/test-subr.sh status=0 +run_one() +{ + file="$1"; shift + testrun ../src/dwarfcmp "$@" "$file" "$file" || + { echo "*** failure in dwarfcmp-self $* on $file"; status=1; } +} + runtest() { for file; do if [ -f $file ]; then - { testrun ../src/dwarfcmp -q -i $file $file && - testrun ../src/dwarfcmp -i $file $file && - testrun ../src/dwarfcmp -T -q -i $file $file - } || - { echo "*** failure in $file"; status=1; } + run_one "$file" -i -q + run_one "$file" -i + run_one "$file" -i -q -T fi done } |