When completing the tutorial for an out-of-tree-module, the qa tests
never
pass. The errors received look like the following when running the ctest
-V
command:
test 2
Start 2: qa_square_ff
2: Test command: /bin/sh
"/home/sdr/Tutorials/gr-howto/build/python/qa_square_ff_test.sh"
2: Test timeout computed to be: 9.99988e+06
2: Traceback (most recent call last):
2: File "/home/sdr/Tutorials/gr-howto/python/qa_square_ff.py", line
22,
in <module>
2: import howto_swig as howto
2: File "/home/sdr/Tutorials/gr-howto/build/swig/howto_swig.py", line
314, in <module>
2: square_ff = square_ff.make;
2: NameError: name 'square_ff' is not defined
2/2 Test #2: qa_square_ff .....................***Failed 0.18 sec
Is my qa code in the wrong place? I followed the tutorial and updated
python/qa_square_ff.py
Thanks
on 2013-02-05 20:28
on 2013-02-05 21:37
Brooke, you'll have to be more specific. Were you creating a Python block? A C++ block? Which version do you have installed? On Tue, Feb 05, 2013 at 02:27:19PM -0500, Brooke Hayden wrote: > 2: File "/home/sdr/Tutorials/gr-howto/python/qa_square_ff.py", line 22, in > <module> > 2: import howto_swig as howto > 2: File "/home/sdr/Tutorials/gr-howto/build/swig/howto_swig.py", line 314, in > <module> > 2: square_ff = square_ff.make; This line is definitely wrong. My guess is you're completing tutorial 1 (C++ blocks). Read http://gnuradio.org/redmine/projects/gnuradio/wiki... again, and compare your QA codes with those given there. > 2: NameError: name 'square_ff' is not defined > 2/2 Test #2: qa_square_ff .....................***Failed 0.18 sec > > > Is my qa code in the wrong place? I followed the tutorial and updated python/ > qa_square_ff.py Probably just your QA code. See above. Good luck, MB -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 Fax: +49 721 608-46071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association
on 2013-02-11 14:45
Brooke Hayden wrote in post #1095390: > When completing the tutorial for an out-of-tree-module, the qa tests > never > pass. The errors received look like the following when running the ctest > -V > command: > test 2 > Start 2: qa_square_ff > > 2: Test command: /bin/sh > "/home/sdr/Tutorials/gr-howto/build/python/qa_square_ff_test.sh" > 2: Test timeout computed to be: 9.99988e+06 > 2: Traceback (most recent call last): > 2: File "/home/sdr/Tutorials/gr-howto/python/qa_square_ff.py", line > 22, > in <module> > 2: import howto_swig as howto > 2: File "/home/sdr/Tutorials/gr-howto/build/swig/howto_swig.py", line > 314, in <module> > 2: square_ff = square_ff.make; > 2: NameError: name 'square_ff' is not defined > 2/2 Test #2: qa_square_ff .....................***Failed 0.18 sec > > Is my qa code in the wrong place? I followed the tutorial and updated > python/qa_square_ff.py > > Thanks I think this is some bug in QA code generation script. In howto_swig.py file, the definition of square_ff is after it is used. If You move this definition up, tests will pass. Another mystery for me is, why in a Makefile generated by cmake, the "test" target is not dependent on target "all" (or something that will cause compilation if code is changed) ? Regards, Marek.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.