Skip to content

Commit

Permalink
further documentation cleanup, especially around TestRule
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaff committed Dec 28, 2010
1 parent 81b50e9 commit 8d26b45
Show file tree
Hide file tree
Showing 17 changed files with 151 additions and 308 deletions.
4 changes: 4 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,8 @@
</ftp>
<echo message="To upload docs, use build/upload_docs.sh" />
</target>

<target name="print.version">
<echo message="${version}" />
</target>
</project>
28 changes: 0 additions & 28 deletions build/experimental-use-of-antunit/build.xml

This file was deleted.

10 changes: 0 additions & 10 deletions build/experimental-use-of-antunit/junit-remote.ant

This file was deleted.

51 changes: 0 additions & 51 deletions build/experimental-use-of-antunit/junit-slow.ant

This file was deleted.

140 changes: 0 additions & 140 deletions build/experimental-use-of-antunit/junit.ant

This file was deleted.

9 changes: 0 additions & 9 deletions build/experimental-use-of-antunit/junit.properties

This file was deleted.

Binary file not shown.
Binary file not shown.
32 changes: 0 additions & 32 deletions build/experimental-use-of-antunit/macros.ant

This file was deleted.

18 changes: 0 additions & 18 deletions build/experimental-use-of-antunit/touch.ant

This file was deleted.

49 changes: 49 additions & 0 deletions build_tests.sh
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
6 changes: 3 additions & 3 deletions doc/ReleaseNotes4.9-SNAPSHOT-20100512-0041.html
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.

0 comments on commit 8d26b45

Please sign in to comment.