-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Also run the dejagnu tests from GNU findutils
- Loading branch information
1 parent
5c45b30
commit 43027d0
Showing
3 changed files
with
81 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
export LC_COLLATE=C | ||
|
||
# Extract the failing test lines from log files | ||
failing_tests() { | ||
sed -En 's/FAIL: ([^,:]*)[,:].*/\1/p' "$@" | sort | ||
} | ||
|
||
comm -3 <(failing_tests $1/*.log) <(failing_tests $2/*.log) | tr '\t' ',' | while IFS=, read old new foo; do | ||
if [ -n "$old" ]; then | ||
echo "::warning ::Congrats! The GNU test $old is now passing!" | ||
fi | ||
if [ -n "$new" ]; then | ||
echo "::error ::GNU test failed: $new. $new is passing on 'main'. Maybe you have to rebase?" | ||
fi | ||
done |