# QA Testing Fails

**URL:** <https://www.ruby-forum.com/t/qa-testing-fails/229570>\
**Category:** GNU Radio\
**Created:** [February 5, 2013, 8:28pm UTC](https://www.ruby-forum.com/t/qa-testing-fails/229570 "2013-02-05T20:28:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brooke\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/77aa72/32.png) [@Brooke\_H](https://www.ruby-forum.com/u/Brooke_H)\
**Post date:** [February 5, 2013, 8:28pm UTC](https://www.ruby-forum.com/t/qa-testing-fails/229570/1 "2013-02-05T20:28:09Z")

</div>

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   
2: import howto\_swig as howto  
2: File “/home/sdr/Tutorials/gr-howto/build/swig/howto\_swig.py”, line  
314, in   
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

---

<div class="post-metadata">

**Author:** ![Brooke\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/77aa72/32.png) [@Brooke\_H](https://www.ruby-forum.com/u/Brooke_H)\
**Post date:** [February 5, 2013, 9:37pm UTC](https://www.ruby-forum.com/t/qa-testing-fails/229570/2 "2013-02-05T21:37:42Z")

</div>

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 H. wrote:

> 2: File “/home/sdr/Tutorials/gr-howto/python/qa\_square\_ff.py”, line 22, in  
>   
> 2: import howto\_swig as howto  
> 2: File “/home/sdr/Tutorials/gr-howto/build/swig/howto\_swig.py”, line 314, in  
>   
> 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/OutOfTreeModules#Test-Driven-Programming](http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules#Test-Driven-Programming)  
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 B.  
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

---

<div class="post-metadata">

**Author:** ![Brooke\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/77aa72/32.png) [@Brooke\_H](https://www.ruby-forum.com/u/Brooke_H)\
**Post date:** [February 11, 2013, 2:45pm UTC](https://www.ruby-forum.com/t/qa-testing-fails/229570/3 "2013-02-11T14:45:55Z")

</div>

Brooke H. 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   
> 2: import howto\_swig as howto  
> 2: File “/home/sdr/Tutorials/gr-howto/build/swig/howto\_swig.py”, line  
> 314, in   
> 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.
