diff options
author | Philip Balister <philip@balister.org> | 2021-12-03 06:55:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 06:55:42 -0500 |
commit | f37a98b95af12603c4564f61707672570b3cce06 (patch) | |
tree | 29d9e2b28f31f5ddfcbb904b4af1fec44ab7eaee /gr-blocks/python | |
parent | 76cdd1ce10c20d9b67801b23874257aff9616535 (diff) |
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-blocks/python')
-rw-r--r-- | gr-blocks/python/blocks/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-blocks/python/blocks/CMakeLists.txt b/gr-blocks/python/blocks/CMakeLists.txt index 587c7c7ca2..66ee4014b6 100644 --- a/gr-blocks/python/blocks/CMakeLists.txt +++ b/gr-blocks/python/blocks/CMakeLists.txt @@ -53,6 +53,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) |