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