diff --git a/.gitignore b/.gitignore index cfc4ed94f..8da98efad 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ conf/drillTestConfig.properties *.class **/target/* logs/* +git.properties framework/resources/Datasources/s3minio/minio/minio_data/.minio.sys framework/resources/Datasources/s3minio/minio/minio_data/tstbucket/tmp/ppruning/ framework/resources/Datasources/s3minio/minio/minio_data/tstbucket/tmp/gitignore diff --git a/bin/run_tests b/bin/run_tests index ddee02996..0186f96c9 100755 --- a/bin/run_tests +++ b/bin/run_tests @@ -34,7 +34,7 @@ done # use the following line when testing apache drill JDBC driver if [[ $HADOOP_VERSION == *"mapr"* ]] then - java $DRILL_TEST_FRAMEWORK_JAVA_OPTS -Xss40m -cp conf/:${DRILL_HOME}/jars/jdbc-driver/drill-jdbc-all-${DRILL_VERSION}.jar:framework/target/framework-1.0.0-SNAPSHOT-shaded.jar -Dfs.mapr.bailout.on.library.mismatch=false -Djava.io.tmpdir=/tmp/drill/tests -Djava.security.auth.login.config=/opt/mapr/conf/mapr.login.conf -Dzookeeper.sasl.client=false org.apache.drill.test.framework.TestDriver "${ARGS[@]}" + java $DRILL_TEST_FRAMEWORK_JAVA_OPTS -Xss40m -cp .:conf/:${DRILL_HOME}/jars/jdbc-driver/drill-jdbc-all-${DRILL_VERSION}.jar:framework/target/framework-1.0.0-SNAPSHOT-shaded.jar -Dfs.mapr.bailout.on.library.mismatch=false -Djava.io.tmpdir=/tmp/drill/tests -Djava.security.auth.login.config=/opt/mapr/conf/mapr.login.conf -Dzookeeper.sasl.client=false org.apache.drill.test.framework.TestDriver "${ARGS[@]}" else - java $DRILL_TEST_FRAMEWORK_JAVA_OPTS -Xss40m -cp conf/:${DRILL_HOME}/jars/jdbc-driver/drill-jdbc-all-${DRILL_VERSION}.jar:framework/target/framework-1.0.0-SNAPSHOT-shaded.jar org.apache.drill.test.framework.TestDriver "${ARGS[@]}" + java $DRILL_TEST_FRAMEWORK_JAVA_OPTS -Xss40m -cp .:conf/:${DRILL_HOME}/jars/jdbc-driver/drill-jdbc-all-${DRILL_VERSION}.jar:framework/target/framework-1.0.0-SNAPSHOT-shaded.jar org.apache.drill.test.framework.TestDriver "${ARGS[@]}" fi diff --git a/framework/pom.xml b/framework/pom.xml index f75c52b6a..aa876fe38 100644 --- a/framework/pom.xml +++ b/framework/pom.xml @@ -204,6 +204,31 @@ + + pl.project13.maven + git-commit-id-plugin + 2.2.5 + + + get-the-git-infos + + revision + + + + + + ${project.basedir}/../.git + true + ${project.basedir}/../git.properties + false + false + + false + true + + + diff --git a/framework/src/main/java/org/apache/drill/test/framework/TestDriver.java b/framework/src/main/java/org/apache/drill/test/framework/TestDriver.java index f985e24e8..1194f9fb0 100644 --- a/framework/src/main/java/org/apache/drill/test/framework/TestDriver.java +++ b/framework/src/main/java/org/apache/drill/test/framework/TestDriver.java @@ -106,6 +106,12 @@ public static void main(String[] args) throws Exception { } public int runTests() throws Exception { + + LOG.info(DrillTestDefaults.LINE_BREAK + + "\nDRILL TEST FRAMEWORK VERSION\n" + + DrillTestDefaults.LINE_BREAK + "\n" + + Utils.getFrameworkVersion() + "\n" + + DrillTestDefaults.LINE_BREAK + "\n"); List> executionFailureExceptions=Lists.newArrayList(); for(int ii=0;ii\n\n%s", commitID, commitAuthor, commitEmail, commitMessage); + } }