Skip to content

Commit 7dbb3e5

Browse files
velichkovmbr0wn
authored andcommitted
grc: Include GRC tests in CTest testing
1 parent e0598e5 commit 7dbb3e5

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

grc/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -189,5 +189,6 @@ endif(WIN32)
189189
########################################################################
190190
add_subdirectory(blocks)
191191
add_subdirectory(scripts)
192+
add_subdirectory(tests)
192193

193194
endif(ENABLE_GRC)

grc/tests/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.pytest_cache

grc/tests/CMakeLists.txt

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2020 Free Software Foundation, Inc.
2+
#
3+
# This file is part of GNU Radio
4+
#
5+
# GNU Radio is free software; you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation; either version 3, or (at your option)
8+
# any later version.
9+
#
10+
# GNU Radio is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with GNU Radio; see the file COPYING. If not, write to
17+
# the Free Software Foundation, Inc., 51 Franklin Street,
18+
# Boston, MA 02110-1301, USA.
19+
20+
include(GrPython)
21+
22+
if(ENABLE_TESTING)
23+
add_test (NAME grc_tests
24+
COMMAND ${QA_PYTHON_EXECUTABLE} -m pytest
25+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
26+
)
27+
endif(ENABLE_TESTING)

0 commit comments

Comments
 (0)