o toss out the log of the build if something goes wrong, otherwise just

indicate things went OK.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2004-08-15 16:52:07 +00:00
parent cad4fb9326
commit 125b833abc
1 changed files with 13 additions and 9 deletions

View File

@ -12,10 +12,6 @@ integration_tests=`cat integration-tests.txt | egrep -v '^#'`
for integration_test in $integration_tests for integration_test in $integration_tests
do do
echo "----------------------------------------------------------"
echo "Running integration test $integration_test ..."
echo "----------------------------------------------------------"
( (
cd $integration_test cd $integration_test
@ -27,7 +23,6 @@ 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,8 +33,17 @@ do
basedir=. basedir=.
java -cp "$cp" $verifier "$basedir" java -cp "$cp" $verifier "$basedir"
ret=$?; if [ $ret != 0 ]; then exit $ret; fi ) > ${integration_test}-log.txt
)
ret=$?; if [ $ret != 0 ]; then exit $ret; fi if [ "$?" = "0" ]
then
echo "Integration test $integration_test OK"
else
echo "Integration test $integration_test FAILED!"
echo "Details:"
cat ${integration_test}-log.txt
echo
fi
done done