# Usrp2 unit tests + valgrind

**URL:** <https://www.ruby-forum.com/t/usrp2-unit-tests-valgrind/180609>\
**Category:** GNU Radio\
**Created:** [December 22, 2009, 10:57pm UTC](https://www.ruby-forum.com/t/usrp2-unit-tests-valgrind/180609 "2009-12-22T22:57:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaetano\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/45deac/32.png) [@Gaetano\_M](https://www.ruby-forum.com/u/Gaetano_M)\
**Post date:** [December 22, 2009, 10:57pm UTC](https://www.ruby-forum.com/t/usrp2-unit-tests-valgrind/180609/1 "2009-12-22T22:57:18Z")

</div>

Hi all,  
at the moment I’m following a project in where we use as  
development technique the “test driven development”.  
We are using the libusrp2 as only component from gnuradio,  
and what we are missing is a sort of Usrp2 simulator in  
order to test our rx handlers. Does exist such component in  
gnuradio?

I have seen you use as unit test framework CppUnit, lately  
I have switched from CppUnit to gtest, is not hard to convert  
the old CppUnit tests, I converted myself around 250 test  
cases in a single day, having at the end more features like:  
disable some tests, run a single one, repeat some tests  
multiple time and other features you can read about it on  
gtest documentation.

Running our application under valgrind (3.5.0) no usrp2 is found,  
anyone has an idea why?

–

> **[c++ today](http://cpp-today.blogspot.com)**
>
> "Almost" day by day thoughts on code inspected

---

<div class="post-metadata">

**Author:** ![Gaetano\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/45deac/32.png) [@Gaetano\_M](https://www.ruby-forum.com/u/Gaetano_M)\
**Post date:** [December 25, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/usrp2-unit-tests-valgrind/180609/2 "2009-12-25T17:11:57Z")

</div>

On 12/22/2009 01:54 PM, Gaetano M. wrote:

> Hi all,  
> at the moment I’m following a project in where we use as  
> development technique the “test driven development”.  
> We are using the libusrp2 as only component from gnuradio,  
> and what we are missing is a sort of Usrp2 simulator in  
> order to test our rx handlers. Does exist such component in  
> gnuradio?

We don’t have a USRP2 simulator, but it would certainly be a good thing  
to have.

> I have seen you use as unit test framework CppUnit, lately  
> I have switched from CppUnit to gtest, is not hard to convert  
> the old CppUnit tests, I converted myself around 250 test  
> cases in a single day, having at the end more features like:  
> disable some tests, run a single one, repeat some tests  
> multiple time and other features you can read about it on  
> gtest documentation.

We’ll have to take a look at gtest. Is cppunit no longer developed?

> Running our application under valgrind (3.5.0) no usrp2 is found,  
> anyone has an idea why?

This may be a permissions problem. You need to have root access for raw  
ethernet.

Matt

---

<div class="post-metadata">

**Author:** ![Gaetano\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/45deac/32.png) [@Gaetano\_M](https://www.ruby-forum.com/u/Gaetano_M)\
**Post date:** [December 25, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/usrp2-unit-tests-valgrind/180609/3 "2009-12-25T17:13:44Z")

</div>

On 12/24/2009 04:03 PM, Matt E. wrote:

> to have.  
> We’ll have to take a look at gtest. Is cppunit no longer developed?  
> The last release is early 2008, but I see checkin’s in their svn in the  
> past month.

Philip
