Browse Source

hpcc-13525 added whitelist file patterns for testing directory

Signed-off-by: Michael Gardner <Michael.Gardner@lexisnexis.com>
Michael Gardner 9 years ago
parent
commit
bf3c480fdd

+ 6 - 3
testing/CMakeLists.txt

@@ -17,6 +17,9 @@ HPCC_ADD_SUBDIRECTORY (unittests)
 HPCC_ADD_SUBDIRECTORY (regress)
 install( DIRECTORY regress DESTINATION "./testing" COMPONENT Runtime
          USE_SOURCE_PERMISSIONS
-         PATTERN regress/ecl EXCLUDE
-         PATTERN regress/environment.xml.in EXCLUDE
-         PATTERN regress/CMakeLists.txt EXCLUDE )
+         FILES_MATCHING
+         PATTERN "regress/ecl-test"
+         PATTERN "regress/ecl-test.json"
+         PATTERN "regress/environment.xml"
+         PATTERN "regress/README.rst"
+         PATTERN regress/ecl EXCLUDE )

+ 12 - 0
testing/regress/CMakeLists.txt

@@ -14,6 +14,18 @@
 #    See the License for the specific language governing permissions and
 #    limitations under the License.
 ################################################################################
+HPCC_ADD_SUBDIRECTORY (hpcc)
+
 configure_file("environment.xml.in" "environment.xml")
 
 Install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/environment.xml DESTINATION "./testing/regress" COMPONENT Runtime )
+
+Install ( DIRECTORY download hpcc DESTINATION "./testing/regress" COMPONENT Runtime
+          USE_SOURCE_PERMISSIONS
+          FILES_MATCHING
+          PATTERN "hpcc/__init__.py"
+          PATTERN "download/0drvb10.txt"
+          PATTERN "download/donQuixote.txt"
+          PATTERN "download/pge0112.txt"
+          PATTERN "download/spray_test.txt"
+ )

+ 37 - 0
testing/regress/hpcc/CMakeLists.txt

@@ -0,0 +1,37 @@
+################################################################################
+#    HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
+#
+#    All rights reserved. This program is free software: you can redistribute it
+#    and/or modify
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+################################################################################
+HPCC_ADD_SUBDIRECTORY (util)
+Install ( DIRECTORY common regression util DESTINATION "./testing/regress/hpcc" COMPONENT Runtime
+          USE_SOURCE_PERMISSIONS
+          FILES_MATCHING
+          PATTERN "common/config.py"
+          PATTERN "common/dict.py"
+          PATTERN "common/error.py"
+          PATTERN "common/__init__.py"
+          PATTERN "common/logger.py"
+          PATTERN "common/report.py"
+          PATTERN "common/shell.py"
+          PATTERN "regression/__init__.py"
+          PATTERN "regression/regress.py"
+          PATTERN "regression/suite.py"
+          PATTERN "util/argparse.py"
+          PATTERN "util/collections.py"
+          PATTERN "util/configgen.py"
+          PATTERN "util/expandcheck.py"
+          PATTERN "util/__init__.py"
+          PATTERN "util/util.py"
+)

+ 24 - 0
testing/regress/hpcc/util/CMakeLists.txt

@@ -0,0 +1,24 @@
+################################################################################
+#    HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
+#
+#    All rights reserved. This program is free software: you can redistribute it
+#    and/or modify
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+################################################################################
+Install ( DIRECTORY ecl DESTINATION "./testing/regress/hpcc/util" COMPONENT Runtime
+          USE_SOURCE_PERMISSIONS
+          FILES_MATCHING
+          PATTERN "ecl/cc.py"
+          PATTERN "ecl/command.py"
+          PATTERN "ecl/file.py"
+          PATTERN "ecl/__init__.py"
+)