Package: glibc Tags: patch updated compare.sh sorting both files before comparing.
Matthias #!/bin/bash if [ $# -ne '2' ]; then echo -e "\nUsage: Compare a test-expected-* file and a test-results-* file." echo -e "$0 : < Expected testsuite results > < Testsuite results >\n"; exit 1 fi; expected=$(tempfile) results=$(tempfile) sort $1 > $expected sort $2 > $results REGRESSIONS=$(diff -wBI '^#.*' $expected $results | sed -e '/^>/!d;s/^> //g') rm -f $expected $results if [ -n "$REGRESSIONS" ] ; then echo "Encountered regressions that don't match expected failures:" echo "$REGRESSIONS" exit 1 else echo "Passed regression testing. No new failures, no changed error values." exit 0 fi -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]