summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorVasil Velichkov <vvvelichkov@gmail.com>2019-09-03 22:09:19 +0300
committerMartin Braun <martin.braun@ettus.com>2020-01-10 21:24:10 -0800
commit7dbb3e54d012ae0ef1ca022cb240a536a2ce5126 (patch)
treea29ecbdc054cc5d9efe31a8a6710a904a4d9b5e4 /grc
parente0598e54b7202dfc0f37b402a2997e650c52b316 (diff)
grc: Include GRC tests in CTest testing
Diffstat (limited to 'grc')
-rw-r--r--grc/CMakeLists.txt1
-rw-r--r--grc/tests/.gitignore1
-rw-r--r--grc/tests/CMakeLists.txt27
3 files changed, 29 insertions, 0 deletions
diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt
index 9a807e1cc0..2f59dcdc78 100644
--- a/grc/CMakeLists.txt
+++ b/grc/CMakeLists.txt
@@ -189,5 +189,6 @@ endif(WIN32)
########################################################################
add_subdirectory(blocks)
add_subdirectory(scripts)
+add_subdirectory(tests)
endif(ENABLE_GRC)
diff --git a/grc/tests/.gitignore b/grc/tests/.gitignore
new file mode 100644
index 0000000000..3ce1d246a4
--- /dev/null
+++ b/grc/tests/.gitignore
@@ -0,0 +1 @@
+.pytest_cache
diff --git a/grc/tests/CMakeLists.txt b/grc/tests/CMakeLists.txt
new file mode 100644
index 0000000000..e4d3de56b0
--- /dev/null
+++ b/grc/tests/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Copyright 2020 Free Software Foundation, Inc.
+#
+# This file is part of GNU Radio
+#
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+
+include(GrPython)
+
+if(ENABLE_TESTING)
+ add_test (NAME grc_tests
+ COMMAND ${QA_PYTHON_EXECUTABLE} -m pytest
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ )
+endif(ENABLE_TESTING)