summaryrefslogtreecommitdiff
path: root/gr-blocks/python
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-03-27 20:03:04 -0400
committerTom Rondeau <trondeau@vt.edu>2013-03-27 20:03:04 -0400
commit5835b1637350a15cfbe0658a7253d01e69b3871f (patch)
treea04821e107a13e5650762d2ffdf6cdd1a497c5ce /gr-blocks/python
parent6a4f2e5534822f89c5c53ee1271579d68374a259 (diff)
blocks: if ControlPort is disabled, do not run its QA tests.
Diffstat (limited to 'gr-blocks/python')
-rw-r--r--gr-blocks/python/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/gr-blocks/python/CMakeLists.txt b/gr-blocks/python/CMakeLists.txt
index 841588799b..7440e4e9df 100644
--- a/gr-blocks/python/CMakeLists.txt
+++ b/gr-blocks/python/CMakeLists.txt
@@ -41,9 +41,22 @@ list(APPEND GR_TEST_PYTHON_DIRS
list(APPEND GR_TEST_TARGET_DEPS gnuradio-blocks)
include(GrTest)
+
+# Grab all QA test blocks.
file(GLOB py_qa_test_files "qa_*.py")
+
+# Force out the controlport QA tests if we've disabled it.
+if(NOT ENABLE_GR_CTRLPORT)
+ list(REMOVE_ITEM py_qa_test_files
+ ${CMAKE_CURRENT_SOURCE_DIR}/qa_cpp_py_binding.py
+ ${CMAKE_CURRENT_SOURCE_DIR}/qa_cpp_py_binding_set.py
+ )
+endif(NOT ENABLE_GR_CTRLPORT)
+
+# Setup tests for all valid QA files.
foreach(py_qa_test_file ${py_qa_test_files})
get_filename_component(py_qa_test_name ${py_qa_test_file} NAME_WE)
GR_ADD_TEST(${py_qa_test_name} ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B} ${py_qa_test_file})
endforeach(py_qa_test_file)
+
endif(ENABLE_TESTING)