hi,
When I follow Gnuradio using “make test” and “ctest” to test my new
how-to block, it returns RuntimeError: square_ff(6): insufficient
connected output ports (1 needed, 0 connected)
As the following messages, I think there may be something wrong with the
test program “qa_square_ff.py”
lab@lab-ThinkPad-Edge-E430:~/newblock/gr-howto/build$ ctest -V -R square
UpdateCTestConfiguration from
:/home/lab/newblock/gr-howto/build/DartConfiguration.tcl
UpdateCTestConfiguration from
:/home/lab/newblock/gr-howto/build/DartConfiguration.tcl
Test project /home/lab/newblock/gr-howto/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph…
Checking test dependency graph end
test 2
Start 2: qa_square_ff
2: Test command: /bin/sh
“/home/lab/newblock/gr-howto/build/python/qa_square_ff_test.sh”
2: Test timeout computed to be: 9.99988e+06
2: E
2:
2: ERROR: test_001_t (main.qa_square_ff)
2:
2: Traceback (most recent call last):
2: File “/home/lab/newblock/gr-howto/python/qa_square_ff.py”, line 43,
in test_001_t
2: self.tb.run ()
2: File “/usr/lib/python2.7/dist-packages/gnuradio/gr/top_block.py”,
line 109, in run
2: self.start(max_noutput_items)
2: File “/usr/lib/python2.7/dist-packages/gnuradio/gr/top_block.py”,
line 103, in start
2: top_block_start_unlocked(self._tb, max_noutput_items)
2: File
“/usr/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py”, line
4585, in top_block_start_unlocked
2: return _runtime_swig.top_block_start_unlocked(*args, **kwargs)
2: RuntimeError: square_ff(6): insufficient connected output ports (1
needed, 0 connected)
2:
2:
2: Ran 1 test in 0.000s
2:
2: FAILED (errors=1)
1/1 Test #2: qa_square_ff …***Failed 0.17 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.17 sec
The following tests FAILED:
2 - qa_square_ff (Failed)
Errors while running CTest
lab@lab-ThinkPad-Edge-E430:~/newblock/gr-howto/build$ make test
Running tests…
Test project /home/lab/newblock/gr-howto/build
Start 1: test_howto
1/2 Test #1: test_howto … Passed 0.00 sec
Start 2: qa_square_ff
2/2 Test #2: qa_square_ff …***Failed 0.18 sec
50% tests passed, 1 tests failed out of 2
Total Test time (real) = 0.19 sec
The following tests FAILED:
2 - qa_square_ff (Failed)
Errors while running CTest
make: *** [test] 8