You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jr...@apache.org on 2018/03/14 20:50:45 UTC

[11/14] qpid-cpp git commit: QPID-7499: Copy test scripts in a way that preserves dependencies

QPID-7499: Copy test scripts in a way that preserves dependencies


Project: http://git-wip-us.apache.org/repos/asf/qpid-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-cpp/commit/8ceb65eb
Tree: http://git-wip-us.apache.org/repos/asf/qpid-cpp/tree/8ceb65eb
Diff: http://git-wip-us.apache.org/repos/asf/qpid-cpp/diff/8ceb65eb

Branch: refs/heads/master
Commit: 8ceb65eb9c7e6e1c988d9edea5b5539a7559c3d0
Parents: b2bfd9b
Author: Justin Ross <jr...@apache.org>
Authored: Tue Mar 13 06:43:16 2018 -0700
Committer: Justin Ross <jr...@apache.org>
Committed: Wed Mar 14 10:46:27 2018 -0700

----------------------------------------------------------------------
 src/tests/CMakeLists.txt | 39 +++++++++++++++++++++++++++++----------
 1 file changed, 29 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-cpp/blob/8ceb65eb/src/tests/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 5d92fbc..4122d9c 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -107,14 +107,14 @@ if (BUILD_TESTING)
 
 if (CMAKE_SYSTEM_NAME STREQUAL Windows)
     # Windows
-  
+
     set(ENV{OUTDIR} ${EXECUTABLE_OUTPUT_PATH})
 
     configure_file(${CMAKE_CURRENT_SOURCE_DIR}/env.ps1.in
                    ${CMAKE_CURRENT_BINARY_DIR}/env.ps1 @ONLY)
 else (CMAKE_SYSTEM_NAME STREQUAL Windows)
     # Posix
-  
+
     configure_file(${CMAKE_CURRENT_SOURCE_DIR}/env.sh.in
                    ${CMAKE_CURRENT_BINARY_DIR}/env.sh @ONLY)
 endif (CMAKE_SYSTEM_NAME STREQUAL Windows)
@@ -124,14 +124,33 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/check_dependencies.py.in
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/env.py.in
                ${CMAKE_CURRENT_BINARY_DIR}/env.py @ONLY)
 
-file(COPY .
-     DESTINATION .
-     PATTERN "*.cmake" EXCLUDE
-     PATTERN "*.in" EXCLUDE
-     PATTERN "*.c" EXCLUDE
-     PATTERN "*.h" EXCLUDE
-     PATTERN "*.cpp" EXCLUDE)
-       
+file(GLOB_RECURSE copied_files "*.ps1", "*.py" "*.sh" "*.xml" "run_*")
+
+foreach (copied_file ${copied_files})
+  file (RELATIVE_PATH file_name ${CMAKE_CURRENT_SOURCE_DIR} ${copied_file})
+  configure_file (${copied_file} ${file_name} COPYONLY)
+endforeach ()
+
+configure_file(.valgrind.supp .valgrind.supp COPYONLY)
+configure_file(dynamic_log_hires_timestamp dynamic_log_hires_timestamp COPYONLY)
+configure_file(dynamic_log_level_test dynamic_log_level_test COPYONLY)
+configure_file(failing-amqp0-10-python-tests failing-amqp0-10-python-tests COPYONLY)
+configure_file(failing-amqp1.0-python-tests failing-amqp1.0-python-tests COPYONLY)
+configure_file(federated_topic_test federated_topic_test COPYONLY)
+configure_file(perfdist perfdist COPYONLY)
+configure_file(ping_broker ping_broker COPYONLY)
+configure_file(policy.acl policy.acl COPYONLY)
+configure_file(qpid-analyze-trace qpid-analyze-trace COPYONLY)
+configure_file(qpid-cpp-benchmark qpid-cpp-benchmark COPYONLY)
+configure_file(qpid-ctrl qpid-ctrl COPYONLY)
+configure_file(qpidd-empty.conf qpidd-empty.conf COPYONLY)
+configure_file(qpidd-p0 qpidd-p0 COPYONLY)
+configure_file(ring_queue_test ring_queue_test COPYONLY)
+configure_file(sasl_fed sasl_fed COPYONLY)
+configure_file(sasl_fed_ex sasl_fed_ex COPYONLY)
+configure_file(sasl_no_dir sasl_no_dir COPYONLY)
+configure_file(topictest topictest COPYONLY)
+
 if (BUILD_TESTING_UNITTESTS)
 
 # Unit test program


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org