24 lines
707 B
CMake
24 lines
707 B
CMake
# Copyright 2020 Free Software Foundation, Inc.
|
|
#
|
|
# This file is part of GNU Radio
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
|
|
include(GrPython)
|
|
|
|
if(ENABLE_TESTING)
|
|
GR_PYTHON_CHECK_MODULE_RAW(
|
|
"pytest"
|
|
"import pytest"
|
|
PYTEST_FOUND
|
|
)
|
|
|
|
if(PYTEST_FOUND)
|
|
set(GR_TEST_ENVIRONS "GRC_BLOCKS_PATH=\"${CMAKE_CURRENT_SOURCE_DIR}/../blocks\"")
|
|
GR_ADD_TEST(grc_tests ${QA_PYTHON_EXECUTABLE} -B -m pytest --ignore ${CMAKE_CURRENT_SOURCE_DIR}/test_qtbot.py ${CMAKE_CURRENT_SOURCE_DIR} -m \"not examples\")
|
|
# To run the grcc tests over examples manually, run
|
|
# python3 -B -m pytest gnuradio/grc/tests -m "examples"
|
|
endif()
|
|
endif(ENABLE_TESTING)
|