2004-05-21 13:25:02 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-05-21 13:28:07 -04:00
|
|
|
# This process assumes that maven-core-it-verifier has been built.
|
|
|
|
|
2004-05-21 13:25:02 -04:00
|
|
|
home=`pwd`
|
|
|
|
|
2004-06-19 14:13:25 -04:00
|
|
|
cp=../../maven-core-it-verifier/target/maven-core-it-verifier-1.0.jar
|
2004-06-19 09:36:23 -04:00
|
|
|
|
2004-05-21 13:25:02 -04:00
|
|
|
verifier=org.apache.maven.it.Verifier
|
|
|
|
|
2004-08-15 00:28:31 -04:00
|
|
|
integration_tests=`cat integration-tests.txt | egrep -v '^#'`
|
2004-05-21 13:25:02 -04:00
|
|
|
|
|
|
|
for integration_test in $integration_tests
|
|
|
|
do
|
|
|
|
(
|
|
|
|
cd $integration_test
|
2004-06-17 15:36:44 -04:00
|
|
|
|
|
|
|
if [ -f prebuild.hook ]
|
|
|
|
then
|
|
|
|
echo
|
2004-07-06 07:56:46 -04:00
|
|
|
sh prebuild.hook
|
2004-06-17 15:36:44 -04:00
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
2004-06-17 22:12:49 -04:00
|
|
|
m2 clean:clean `cat goals.txt`
|
2004-05-21 13:25:02 -04:00
|
|
|
|
2004-06-17 15:36:44 -04:00
|
|
|
if [ -f postbuild.hook ]
|
|
|
|
then
|
|
|
|
echo
|
2004-07-06 07:56:46 -04:00
|
|
|
sh postbuild.hook
|
2004-06-17 15:36:44 -04:00
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
2004-06-19 14:13:25 -04:00
|
|
|
basedir=.
|
2004-06-19 09:36:23 -04:00
|
|
|
|
2004-08-15 12:52:07 -04:00
|
|
|
java -cp "$cp" $verifier "$basedir"
|
|
|
|
) > ${integration_test}-log.txt
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2004-05-21 13:25:02 -04:00
|
|
|
done
|