running test scripts (src/wimax/test)

535 views
Skip to first unread message

Alice Rizk

unread,
Feb 25, 2015, 6:30:16 AM2/25/15
to ns-3-...@googlegroups.com

 I need to run the script qos-test of wimax with the "./waf --run qos-test" command but an error says that ./waf doesn not exist. waf do exist at the high level on ns3 but soesnot exist at "ns-allinone-3.21/ns-3.21/src/wimax/test"
what should I do?

I found in the ns3-model-library pdf (p.289 Chapter 19-LTE module Section 19.3.1) that in order to run a test script, we have to:
$./waf configure --enable-test --enable-modules=lte --enable examples
$./test.py
$./test.py -s test-suite-name

I have tried several tests for LTE and it worked (not all the tests were enabled). It also worked on other src.
I did the same commands for Wimax Tests, it gave me:
Waf died. Not running tests.

Any solutions?!

Konstantinos

unread,
Feb 25, 2015, 6:50:41 AM2/25/15
to ns-3-...@googlegroups.com
Hi,

If you open the qos-test.cc file you want to run, it mentions the test suite name an its type

Ns3WimaxQoSTestSuite::Ns3WimaxQoSTestSuite ()
 
: TestSuite ("wimax-qos", SYSTEM)

So, in order to run it, following the guidelines you found in the manual you need to call

$ ./test.py -s wimax-qos

Alice Rizk

unread,
Feb 25, 2015, 7:38:16 AM2/25/15
to ns-3-...@googlegroups.com
i have done these steps :
$./waf configure --enable-tests --enable-modules=wimax --enable examples
$./test.py
and I got 
Waf died. Not running tests.

Konstantinos

unread,
Feb 25, 2015, 7:59:32 AM2/25/15
to ns-3-...@googlegroups.com
Hi,

First of all, there is a typo either from your coping it here or in the manual. There is a missing hyphen between enable and examples. 
$./waf configure --enable-tests --enable-modules=wimax --enable-examples

Second, if I try to follow your command (enable only wimax), I get this output. Do not just look at the last line of the compiler. There are important information before it.
../src/wimax/test/wimax-fragmentation-test.cc:30:10: fatal error: 'ns3/packet-sink-helper.h' file not found
#include "ns3/packet-sink-helper.h"
         
^
1 error generated.
../src/wimax/test/ss-mac-test.cc:32:10: fatal error: 'ns3/packet-sink-helper.h' file not found
#include "ns3/packet-sink-helper.h"
         
^
1 error generated.
../src/wimax/test/wimax-tlv-test.cc:31:10: fatal error: 'ns3/packet-sink-helper.h' file not found
#include "ns3/packet-sink-helper.h"
         
^
1 error generated.


Which should make you think that apart from wimax you need to enable the applications module since you are using it. Perhaps this is a 'bug' in the wscript file that applications has not been included as dependency. So try this command

$./waf configure --enable-tests --enable-modules=wimax,applications --enable-examples

and then ./waf and ./test.py

Tom Henderson

unread,
Feb 25, 2015, 9:52:45 AM2/25/15
to ns-3-...@googlegroups.com
On 02/25/2015 04:38 AM, Alice Rizk wrote:
> i have done these steps :
> $./waf configure --enable-tests --enable-modules=wimax --enable-examples
> $./test.py
> and I got
> Waf died. Not running tests.

In ns-3-dev, I have just pushed a fix to the wimax test program headers
that should fix the problems encountered with the above commands.

When using an older version of ns-3 than the current tip of ns-3-dev,
please follow Konstantinos's advice of including also 'applications' module:

$./waf configure --enable-tests --enable-modules=wimax,applications
--enable-examples
$ ./waf build
$./test.py

Please note that you must be in the top ns-3 directory to run waf
commands; if you recurse into e.g. src/wimax/test and try to run the
above, you will get the 'waf does not exist' error.

- Tom

Alice Rizk

unread,
Mar 3, 2015, 3:33:12 AM3/3/15
to ns-3-...@googlegroups.com
Thank you very much,
I can now run the test.
But,this test has no output in order to analyze it.
Is there any thing possible to do to obtain an output!?



--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/8J8ZuP1Ba0g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Tommaso Pecorella

unread,
Mar 3, 2015, 3:53:27 AM3/3/15
to ns-3-...@googlegroups.com
Tests are meant to test specific features of the protocol and to make sure that everything is consistent. I.e., that bug fixes and enhancements in one ns-3 point aren't breaking important stuff in the different modules.
They are not meant to be used as examples. That's what examples are for.
As a consequence, tests do not produce any output other than the bare bone test failed/passed.

T.


On Tuesday, March 3, 2015 at 9:33:12 AM UTC+1, Alice Rizk wrote:
Thank you very much,
I can now run the test.
But,this test has no output in order to analyze it.
Is there any thing possible to do to obtain an output!?
On Wed, Feb 25, 2015 at 4:52 PM, Tom Henderson <to...@tomh.org> wrote:
On 02/25/2015 04:38 AM, Alice Rizk wrote:
i have done these steps :
$./waf configure --enable-tests --enable-modules=wimax --enable-examples
$./test.py
and I got
Waf died. Not running tests.

In ns-3-dev, I have just pushed a fix to the wimax test program headers that should fix the problems encountered with the above commands.

When using an older version of ns-3 than the current tip of ns-3-dev, please follow Konstantinos's advice of including also 'applications' module:

$./waf configure --enable-tests --enable-modules=wimax,applications --enable-examples
$ ./waf build
$./test.py

Please note that you must be in the top ns-3 directory to run waf commands; if you recurse into e.g. src/wimax/test and try to run the above, you will get the 'waf does not exist' error.

- Tom


--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/8J8ZuP1Ba0g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages