mirror of
https://github.com/apache/maven.git
synced 2025-02-07 10:38:47 +00:00
984d4644ef
o Added the ability to specify -Dmaven.repo.local=xxx to the it shell script, and the Verifier class o Added to the Verifier class the ability to parse ~/.m2/pom.xml and retrieve the local repo location in the event ${maven.repo.local} is unspecified git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163029 13f79535-47bb-0310-9956-ffa450edef68
69 lines
1.2 KiB
Bash
Executable File
69 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# This process assumes that maven-core-it-verifier has been built.
|
|
|
|
home=`pwd`
|
|
|
|
cp=../../maven-core-it-verifier/target/maven-core-it-verifier-1.0.jar
|
|
|
|
verifier=org.apache.maven.it.Verifier
|
|
|
|
integration_tests=`cat integration-tests.txt | egrep -v '^#'`
|
|
|
|
#If this doesn't have a value, we'll parse $HOME/.m2/pom.xml in the Verifier.
|
|
local_repo=
|
|
|
|
for i in "$@"
|
|
do
|
|
j=`echo $i | sed 's/^-Dmaven.repo.local=//'`
|
|
if [ "$i" != "$j" ]; then
|
|
local_repo=$j
|
|
fi
|
|
done
|
|
|
|
for integration_test in $integration_tests
|
|
do
|
|
(
|
|
cd $integration_test
|
|
|
|
if [ -f prebuild.hook ]
|
|
then
|
|
echo
|
|
sh prebuild.hook "$local_repo"
|
|
echo
|
|
fi
|
|
|
|
jvm_opts=
|
|
if [ "$local_repo" != "" ]
|
|
then
|
|
jvm_opts="-Dmaven.repo.local=$local_repo"
|
|
fi
|
|
|
|
m2 $jvm_opts clean:clean `cat goals.txt`
|
|
|
|
if [ -f postbuild.hook ]
|
|
then
|
|
echo
|
|
sh postbuild.hook
|
|
echo
|
|
fi
|
|
|
|
basedir=.
|
|
|
|
java $jvm_opts -cp "$cp" $verifier "$basedir" "$HOME"
|
|
|
|
) > ${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
|
|
|
|
done
|
|
|