ignore commented lines, fail script on failure of any test

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2004-08-15 04:28:31 +00:00
parent 3f60d949ba
commit d303a99fa5
1 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,7 @@ cp=../../maven-core-it-verifier/target/maven-core-it-verifier-1.0.jar
verifier=org.apache.maven.it.Verifier verifier=org.apache.maven.it.Verifier
integration_tests=`cat integration-tests.txt` integration_tests=`cat integration-tests.txt | egrep -v '^#'`
for integration_test in $integration_tests for integration_test in $integration_tests
do do
@ -27,6 +27,7 @@ do
fi fi
m2 clean:clean `cat goals.txt` m2 clean:clean `cat goals.txt`
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
if [ -f postbuild.hook ] if [ -f postbuild.hook ]
then then
@ -38,5 +39,7 @@ do
basedir=. basedir=.
java -cp "$cp" $verifier "$basedir" java -cp "$cp" $verifier "$basedir"
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
) )
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
done done