Re: [Discuss-gnuradio] Testing 'noblock' Class

2016-06-02 Thread Dave NotTelling
Martin, I have no idea how or why, but it magically works now. Must have heard you were on the case :D Thank you! -Dave On Thu, Jun 2, 2016 at 11:19 AM, Martin Braun wrote: > Dave, > > what I did was > > 1. gr_modtool add -t noblock fo. Answer 'yes' when asked for a QA file. > 2. Ad

Re: [Discuss-gnuradio] Testing 'noblock' Class

2016-06-02 Thread Martin Braun
Dave, what I did was 1. gr_modtool add -t noblock fo. Answer 'yes' when asked for a QA file. 2. Add a silly function to the new class 3. Populate the QA files 4. 'make test' That's it. Worked fine. M On 06/01/2016 02:58 PM, Dave NotTelling wrote: > Also, when I use CPPUNIT_ASSERT_MESSAGE("

Re: [Discuss-gnuradio] Testing 'noblock' Class

2016-06-01 Thread Dave NotTelling
Also, when I use CPPUNIT_ASSERT_MESSAGE("foobar\n", 1 == 2) I only see the 'F' get printed in the output of ./test-moo. I do not see the requested message. Perhaps a better question would be are there any good examples of doing this? Thanks! On Wed, Jun 1, 2016 at 1:52 PM, Dave NotTelling wrot

Re: [Discuss-gnuradio] Testing 'noblock' Class

2016-06-01 Thread Dave NotTelling
That worked! One more question: How do I make the test run with 'make test'? It seems that 'make test' only runs the actual GNU Radio modules and not the 'noblock' classes. On Wed, Jun 1, 2016 at 12:32 PM, Dave NotTelling wrote: > I was not using CPPUINT_ASSER_EQUAL. I will give that a go lat

Re: [Discuss-gnuradio] Testing 'noblock' Class

2016-06-01 Thread Dave NotTelling
I was not using CPPUINT_ASSER_EQUAL. I will give that a go later today. Thank you! On Wed, Jun 1, 2016 at 12:08 PM, Martin Braun wrote: > Are you using assert() or CPPUNIT_ASSERT_*? > > I just hacked something together, and it worked/failed just fine. > > This is my class: > {{{ > 34 class

Re: [Discuss-gnuradio] Testing 'noblock' Class

2016-06-01 Thread Martin Braun
Are you using assert() or CPPUNIT_ASSERT_*? I just hacked something together, and it worked/failed just fine. This is my class: {{{ 34 class TESTOR_API fo 35 { 36 public: 37 fo(); 38 ~fo(); 39 40 int return_five() { return 5; } 41 private: 42

[Discuss-gnuradio] Testing 'noblock' Class

2016-05-31 Thread Dave NotTelling
I created a noblock C++ class and asked for QA tests to be created. I see that the _qa files exist for both .h and .cc files. But, when I run 'make test' I only see the tests for the actual blocks (sync in this case). If I run ./lib/test-MyOTT then I see the output of my noblock test, but the as