-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from davidgiven/dtrg-tests
Run all tests, even if some fail, and produce a test summary at the end of the build.
- Loading branch information
Showing
9 changed files
with
77 additions
and
19 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,37 @@ | ||
#!/bin/sh | ||
echo "" | ||
|
||
succeeding="$(find "$@" -size 0)" | ||
notsucceeding="$(find "$@" ! -size 0)" | ||
skipped="$(grep -l @@SKIPPED $notsucceeding)" | ||
timedout="$(grep -l @@TIMEDOUT $notsucceeding)" | ||
failed="$(grep -l @@FAIL $notsucceeding)" | ||
|
||
for a in $failed $timedout; do | ||
echo "**** $a" | ||
cat $a | ||
echo "" | ||
done | ||
|
||
echo "$(echo $succeeding | wc -w) tests passed" | ||
echo "$(echo $notsucceeding | wc -w) tests failed to pass" | ||
echo "$(echo $skipped | wc -w) were skipped (see build log for details)" | ||
echo "$(echo $timedout | wc -w) timed out" | ||
echo "$(echo $failed | wc -w) failed" | ||
echo "" | ||
|
||
if [ "$failed" != "" -o "$timedout" != "" ]; then | ||
echo "Test status: SAD FACE (tests are failing)" | ||
exit 1 | ||
fi | ||
if [ "$succeeding" = "" ]; then | ||
echo "Test status: PUZZLED FACE (all tests were skipped)" | ||
exit 0 | ||
fi | ||
if [ "$skipped" != "" ]; then | ||
echo "Test status: MILDLY PLEASED FACE (some tests were skipped, but the rest pass)" | ||
exit 0 | ||
fi | ||
echo "Test status: HAPPY FACE (all tests are passing)" | ||
exit 0 | ||
|
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 |
---|---|---|
|
@@ -6,4 +6,3 @@ void _m_a_i_n(void) | |
ASSERT(0 == 0); | ||
finished(); | ||
} | ||
|
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
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ cprogram { | |
"modules/src/data+lib" | ||
} | ||
} | ||
|
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