Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Make clear that Ant is deprecated

...

How do I run all of the unit tests?

Code Block
languagebash
mvn test -Phadoop-2
cd itests 
mvn test -Phadoop-2


Note that you need to have previously built and installed the jars:

Code Block
languagebash
mvn clean install -DskipTests -Phadoop-2
cd itests 
mvn clean install -DskipTests -Phadoop-2
Info
titleLegacy information for the Ant build

Make sure that your JAVA_HOME is appropriately set (some tests need this), and

...

code

set ANT_OPTS to increase the size allocated to the Permanent Generation as per the following:

Code Block
export ANT_OPTS="-XX:MaxPermSize=512m"
export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=256M"

Then, for a clean build, run

Code Block
ant clean package test

MVN:

mvn test -Phadoop-1
cd itests 
mvn test -Phadoop-1

Note that

...

running ant test

...

 will not work; ant package

...

 does some setup work that is required for the testcases to run successfully.

...

MVN: Note that you need to have previously built and installed the jars:

Code Block
mvn clean install -DskipTests -Phadoop-1 cd itests mvn clean install -DskipTests -Phadoop-1

How do I update the output of a CliDriver testcase?

Code Block
ant test -Dtestcase=TestCliDriver -Dqfile=alter1.q -Doverwrite=true

...