hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xunzh...@apache.org
Subject incubator-hawq git commit: HAWQ-1189. Split schedule file to sanity and full tests for feature tests.
Date Mon, 05 Dec 2016 06:20:25 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 492c899aa -> 14c2d492d


HAWQ-1189. Split schedule file to sanity and full tests for feature tests.


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/14c2d492
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/14c2d492
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/14c2d492

Branch: refs/heads/master
Commit: 14c2d492d993ad5085ea5bdbfbe91c727d49d8fc
Parents: 492c899
Author: xunzhang <xunzhangthu@gmail.com>
Authored: Wed Nov 23 14:24:53 2016 +0800
Committer: xunzhang <xunzhangthu@gmail.com>
Committed: Mon Dec 5 14:19:33 2016 +0800

----------------------------------------------------------------------
 src/test/feature/README.md        | 2 +-
 src/test/feature/full_tests.txt   | 6 ++++++
 src/test/feature/sanity_tests.txt | 6 ++++++
 src/test/feature/schedule.txt     | 6 ------
 4 files changed, 13 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/14c2d492/src/test/feature/README.md
----------------------------------------------------------------------
diff --git a/src/test/feature/README.md b/src/test/feature/README.md
index b0bdf13..4048f7a 100644
--- a/src/test/feature/README.md
+++ b/src/test/feature/README.md
@@ -16,7 +16,7 @@ Before building the code of feature tests part, just make sure your compiler
sup
 2. Load environment configuration by running `source $INSTALL_PREFIX/greenplum_path.sh`.
 3. Load hdfs configuration. For example, `export HADOOP_HOME=/Users/wuhong/hadoop-2.7.2 &&
export PATH=${PATH}:${HADOOP_HOME}/bin`. Since some test cases need `hdfs` and `hadoop` command,
just ensure these commands work before running. Otherwise you will get failure.
 4. Run the cases with`./parallel-run-feature-test.sh 8 ./feature-test`(in this case 8 threads
in parallel), you could use `--gtest_filter` option to filter test cases(both positive and
negative patterns are supported). Please see more options by running `./feature-test --help`.

-5.You can also run cases with `./parallel-run-feature-test.sh 8 ./feature-test --gtest_schedule`
(eg. --gtest_schedule=./schedule.txt) if you want to run cases in both parallel way and serial
way.The schedule file sample is schedule.txt which stays in the same directory.
+5.You can also run cases with `./parallel-run-feature-test.sh 8 ./feature-test --gtest_schedule`
(eg. --gtest_schedule=./full_tests.txt) if you want to run cases in both parallel way and
serial way.The schedule file sample is full_tests.txt which stays in the same directory.
 
 # Development
 In contribution to HAWQ, we suggest developers submitting feature tests related to your feature
development. In writting a featurte test, you need to write a cpp file inside corresponding
folders. There are two recommended way to write this cpp file:

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/14c2d492/src/test/feature/full_tests.txt
----------------------------------------------------------------------
diff --git a/src/test/feature/full_tests.txt b/src/test/feature/full_tests.txt
new file mode 100644
index 0000000..e7dcc0c
--- /dev/null
+++ b/src/test/feature/full_tests.txt
@@ -0,0 +1,6 @@
+#PARALLEL=* are the parallel tests to run, optional but should not be empty
+#SERIAL=* are the serial tests to run, optional but should not be empty
+#you can have several PARALLEL or SRRIAL
+
+PARALLEL=TestErrorTable.*:TestPreparedStatement.*:TestUDF.*:TestAOSnappy.*:TestAlterOwner.*:TestAlterTable.*:TestCreateTable.*:TestGuc.*:TestType.*:TestDatabase.*:TestParquet.*:TestPartition.*:TestSubplan.*:TestAggregate.*:TestCreateTypeComposite.*:TestGpDistRandom.*:TestInformationSchema.*:TestQueryInsert.*:TestQueryNestedCaseNull.*:TestQueryPolymorphism.*:TestQueryPortal.*:TestQueryPrepare.*:TestQuerySequence.*:TestCommonLib.*:TestToast.*:TestTransaction.*:TestCommand.*:TestCopy.*
+SERIAL=TestHawqRegister.*:TestExternalOid.TestExternalOidAll:TestExternalTable.TestExternalTableAll:TestTemp.BasicTest:TestRowTypes.*

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/14c2d492/src/test/feature/sanity_tests.txt
----------------------------------------------------------------------
diff --git a/src/test/feature/sanity_tests.txt b/src/test/feature/sanity_tests.txt
new file mode 100644
index 0000000..aafff7f
--- /dev/null
+++ b/src/test/feature/sanity_tests.txt
@@ -0,0 +1,6 @@
+#PARALLEL=* are the parallel tests to run, optional but should not be empty
+#SERIAL=* are the serial tests to run, optional but should not be empty
+#you can have several PARALLEL or SRRIAL
+
+PARALLEL=TestErrorTable.*:TestPreparedStatement.*:TestUDF.*:TestAOSnappy.*:TestAlterOwner.*:TestAlterTable.*:TestCreateTable.*:TestGuc.*:TestType.*:TestDatabase.*:TestParquet.*:TestPartition.*:TestSubplan.*:TestAggregate.*:TestCreateTypeComposite.*:TestGpDistRandom.*:TestInformationSchema.*:TestQueryInsert.*:TestQueryNestedCaseNull.*:TestQueryPolymorphism.*:TestQueryPortal.*:TestQueryPrepare.*:TestQuerySequence.*:TestCommonLib.*:TestToast.*:TestTransaction.*:TestCommand.*:TestCopy.*
+SERIAL=TestHawqRegister.TestPartitionTableMultilevel:TestHawqRegister.TestUsage1ExpectSuccessDifferentSchema:TestHawqRegister.TestUsage1ExpectSuccess:TestHawqRegister.TestUsage1SingleHawqFile:TestHawqRegister.TestUsage1SingleHiveFile:TestHawqRegister.TestDataTypes:TestHawqRegister.TestUsage1EofSuccess:TestHawqRegister.TestUsage2Case1Expected:TestHawqRegister.TestUsage2Case2Expected:TestExternalOid.TestExternalOidAll:TestExternalTable.TestExternalTableAll:TestTemp.BasicTest:TestRowTypes.*

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/14c2d492/src/test/feature/schedule.txt
----------------------------------------------------------------------
diff --git a/src/test/feature/schedule.txt b/src/test/feature/schedule.txt
deleted file mode 100644
index e7dcc0c..0000000
--- a/src/test/feature/schedule.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-#PARALLEL=* are the parallel tests to run, optional but should not be empty
-#SERIAL=* are the serial tests to run, optional but should not be empty
-#you can have several PARALLEL or SRRIAL
-
-PARALLEL=TestErrorTable.*:TestPreparedStatement.*:TestUDF.*:TestAOSnappy.*:TestAlterOwner.*:TestAlterTable.*:TestCreateTable.*:TestGuc.*:TestType.*:TestDatabase.*:TestParquet.*:TestPartition.*:TestSubplan.*:TestAggregate.*:TestCreateTypeComposite.*:TestGpDistRandom.*:TestInformationSchema.*:TestQueryInsert.*:TestQueryNestedCaseNull.*:TestQueryPolymorphism.*:TestQueryPortal.*:TestQueryPrepare.*:TestQuerySequence.*:TestCommonLib.*:TestToast.*:TestTransaction.*:TestCommand.*:TestCopy.*
-SERIAL=TestHawqRegister.*:TestExternalOid.TestExternalOidAll:TestExternalTable.TestExternalTableAll:TestTemp.BasicTest:TestRowTypes.*


Mime
View raw message