diff options
author | Mark Raynsford <[email protected]> | 2014-07-11 19:09:32 +0000 |
---|---|---|
committer | Mark Raynsford <[email protected]> | 2014-07-11 19:09:32 +0000 |
commit | 6c2d8d425df5436663f85a5cf0a5396ae3de7d6f (patch) | |
tree | b3fc7345e4494517327832306b8b4317a2050228 /maven/make-tests.sh | |
parent | c386cf285bfaf797c6779189c09e42d68e43b102 (diff) |
Add jogl-main, nativewindow-main, newt-main - frontends for the atomics
packages that allow for pulling in all platform natives easily.
Add test suite.
Bug: 1023
Diffstat (limited to 'maven/make-tests.sh')
-rwxr-xr-x | maven/make-tests.sh | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/maven/make-tests.sh b/maven/make-tests.sh new file mode 100755 index 0000000..00dc35f --- /dev/null +++ b/maven/make-tests.sh @@ -0,0 +1,45 @@ +#!/bin/sh -ex + +info() +{ + echo "make-tests: info: $1" 1>&2 +} + +fatal() +{ + echo "make-tests: fatal: $1" 1>&2 + exit 1 +} + +if [ $# -ne 1 ] +then + echo "usage: version" 1>&2 + exit 1 +fi + +VERSION="$1" +shift + +CURRENT_DIR=`pwd` || + fatal "could not save current working directory" + +export REPOSITORY_URL="file://${PWD}/tests-repository" + +cd tests + +./pom.sh pom.in "${VERSION}" > pom.xml.tmp || + fatal "could not generate pom.xml" +mv pom.xml.tmp pom.xml || + fatal "could not rename pom.xml" + +CURRENT_TEST_DIR=`pwd` || + fatal "could not save current working directory" + +for d in test-* +do + ./pom.sh "${d}/pom.in" "${VERSION}" > "${d}/pom.xml.tmp" || + fatal "could not generate pom.xml" + mv "${d}/pom.xml.tmp" "${d}/pom.xml" || + fatal "could not rename pom.xml" +done + |