aboutsummaryrefslogtreecommitdiffstats
path: root/gr-utils
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2021-12-03 06:55:42 -0500
committerGitHub <noreply@github.com>2021-12-03 06:55:42 -0500
commitf37a98b95af12603c4564f61707672570b3cce06 (patch)
tree29d9e2b28f31f5ddfcbb904b4af1fec44ab7eaee /gr-utils
parentqa: update tests to work with OpenEmbedded (diff)
downloadgnuradio-f37a98b95af12603c4564f61707672570b3cce06.tar.xz
gnuradio-f37a98b95af12603c4564f61707672570b3cce06.zip
cmake: change how test files are build when cross compiling
* When cross compiling gnuradio, change how the test files are built. Normally, the gnuradio QA code expects to run in the build tree. For the cross compilng case, we cannot run the QA code during the build process. The changes here allow the creation of an additional package that can be installed on a target that will run the QA code against the installed libraries. Major changes are not using full paths to test files (since they include paths that only exist on the build machine) and not setting environment variables in the shell files to force the QA code to use code in the build tree. This patch disables the C++ only tests, these need some work and then they can be added back for the cross compile case. Signed-off-by: Philip Balister <philip@balister.org>
Diffstat (limited to 'gr-utils')
-rw-r--r--gr-utils/modtool/tests/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-utils/modtool/tests/CMakeLists.txt b/gr-utils/modtool/tests/CMakeLists.txt
index d00d30311..049b8d514 100644
--- a/gr-utils/modtool/tests/CMakeLists.txt
+++ b/gr-utils/modtool/tests/CMakeLists.txt
@@ -24,6 +24,9 @@ if(ENABLE_TESTING)
foreach(py_qa_test_file ${py_qa_test_files})
get_filename_component(py_qa_test_name ${py_qa_test_file} NAME_WE)
+ if (CMAKE_CROSSCOMPILING)
+ get_filename_component(py_qa_test_file ${py_qa_test_file} NAME)
+ endif(CMAKE_CROSSCOMPILING)
GR_ADD_TEST(${py_qa_test_name} ${QA_PYTHON_EXECUTABLE} -B ${py_qa_test_file})
endforeach(py_qa_test_file)