forked from junit-team/junit4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
further documentation cleanup, especially around TestRule
- Loading branch information
Showing
17 changed files
with
151 additions
and
308 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,49 @@ | ||
set -e | ||
|
||
function TEST_get_junit_version { | ||
version=$(get_junit_version) | ||
if [[ ! ($version == 4.*) ]]; then | ||
echo "Bad version: $version" | ||
return 1 | ||
fi | ||
} | ||
|
||
function TEST_ant_dist { | ||
version=$(get_junit_version) | ||
ant dist | ||
ls junit${version}/junit-${version}.jar | ||
} | ||
|
||
function get_junit_version { | ||
ant print.version | grep echo | sed 's/.*echo..\([1-9].*\)/\1/' | ||
} | ||
|
||
SCRIPT_NAME=$0 | ||
|
||
function get_tests() { | ||
part1=function | ||
part2=TEST_ | ||
grep "$part1 $part2" $SCRIPT_NAME | sed 's/.*\(TEST_[A-Za-z0-9_]*\).*/\1/' | ||
} | ||
|
||
function run_tests() { | ||
local exit_code=0 | ||
|
||
for t in $(get_tests); do | ||
echo "RUNNING: $t" | ||
if "$t"; then | ||
echo "PASSED: $t" | ||
else | ||
echo "FAILED: $t" | ||
return 1 | ||
fi | ||
done | ||
} | ||
|
||
if run_tests; then | ||
echo "ALL TESTS PASSED" | ||
exit 0 | ||
else | ||
echo "A TEST FAILED" | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
Can't open /Users/saff/Documents/git-repos/junit/doc/ReleaseNotes4.9-SNAPSHOT-20100512-0041.txt: No such file or directory at build/Markdown.pl line 218. | ||
Use of uninitialized value in substitution (s///) at build/Markdown.pl line 245. | ||
Use of uninitialized value in substitution (s///) at build/Markdown.pl line 246. | ||
Can't open /Users/saff/git-repos/cry-various-weapon/junit/doc/ReleaseNotes4.9-SNAPSHOT-20100512-0041.txt: No such file or directory at build/Markdown.pl line 218. | ||
Use of uninitialized value $text in substitution (s///) at build/Markdown.pl line 245. | ||
Use of uninitialized value $text in substitution (s///) at build/Markdown.pl line 246. |
Oops, something went wrong.