Hi,
While creating a squaring OOT module (just as an example), my unit test failed because of ModuleNotFoundError.
This error occurs before running make install. After running make install module is available and test is passing ok but it doesn't make sense to do that.
I am using 3.9.3.0 version of GNU Radio. I expect that after running make there will be a python module called square (as I named my OOT, am I correct?)
Below is the output after running ctest -VV command:
Note: below output is obtained after running make install and then make uninstall (after make install, module is available and the is no error)
UpdateCTestConfiguration from :/home/ubuntu/prefixes/gnuradio39/OOTs/gr-square/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/home/ubuntu/prefixes/gnuradio39/OOTs/gr-square/build/DartConfiguration.tcl
Test project /home/ubuntu/prefixes/gnuradio39/OOTs/gr-square/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: qa_square_ff
1: Test command: /usr/bin/sh "/home/ubuntu/prefixes/gnuradio39/OOTs/gr-square/build/python/qa_square_ff_test.sh"
1: Test timeout computed to be: 10000000
1: Traceback (most recent call last):
1: File "/home/ubuntu/prefixes/gnuradio39/OOTs/gr-square/python/qa_square_ff.py", line 12, in <module>
1: from square import square_ff
1: ImportError: cannot import name 'square_ff' from 'square' (unknown location)
1:
1: During handling of the above exception, another exception occurred:
1:
1: Traceback (most recent call last):
1: File "/home/ubuntu/prefixes/gnuradio39/OOTs/gr-square/python/qa_square_ff.py", line 18, in <module>
1: from square import square_ff
1: ImportError: cannot import name 'square_ff' from 'square' (unknown location)
1/1 Test #1: qa_square_ff .....................***Failed 0.26 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.27 sec
The following tests FAILED:
1 - qa_square_ff (Failed)
Errors while running CTest