]> git.pld-linux.org Git - packages/maven.git/blob - maven-run-it-tests.sh
- PLDized some dependencies. Still a lot to do.
[packages/maven.git] / maven-run-it-tests.sh
1 #!/bin/sh
2
3 ARGS=$@
4 ORIG_ARGS=$ARGS
5
6 if [ -z "$JAVA_HOME" ]; then
7   echo You must specify the JAVA_HOME environment variable
8   exit 1
9 fi
10
11 JAVACMD="$JAVA_HOME/bin/java"
12
13 BOOTSTRAP_JAR=bootstrap-mini/bootstrap-mini.jar
14
15 # TODO: get rid of M2_HOME once integration tests are in here
16 PREFIX=`dirname $M2_HOME`
17
18 # OS specific support.  $var _must_ be set to either true or false.
19 cygwin=false;
20 case "`uname`" in
21   CYGWIN*) cygwin=true ;;
22 esac
23
24 if [ "$cygwin" = "true" ]; then
25   PREFIX=`cygpath -w $PREFIX`
26   JAVA_HOME=`cygpath -w $JAVA_HOME`
27 fi
28
29 ARGS=$ORIG_ARGS
30
31 (
32   # TODO: should we be going back to the mini now that we have the real thing?
33   cd maven-core-it-verifier
34   $JAVACMD $MAVEN_OPTS -jar ../bootstrap/$BOOTSTRAP_JAR package $ARGS
35   ret=$?; if [ $ret != 0 ]; then exit $ret; fi
36 )
37 ret=$?; if [ $ret != 0 ]; then exit $ret; fi
38
39 (
40   cd ./maven-core-it
41   echo
42   echo "Running maven-core integration tests ..."
43   echo
44   ./maven-core-it.sh $ARGS
45   ret=$?; if [ $ret != 0 ]; then exit $ret; fi
46 )
47 ret=$?; if [ $ret != 0 ]; then exit $ret; fi
This page took 0.02963 seconds and 3 git commands to generate.