How to debug a test suite in Eclipse

76 views
Skip to first unread message

Narges Shojaedin

unread,
Jul 4, 2013, 9:42:57 PM7/4/13
to ns-3-...@googlegroups.com
Hi all,

Before asking my question, I wanted to thank Marco and Nicola for their quick and very helpful replies.

I want to debug lte-test-phy-error-model.cc test suite in eclipse. Using the instruction in http://www.nsnam.org/wiki/index.php/HOWTO_configure_Eclipse_with_ns-3, I have configured debugger and set the parameters.

In debug configuration, I have set "build/utils/ns3-dev-test-runner-debug" under the "C/C++ Application" section. Moreover, I typed "--suite=lte-phy-error-model --out=output.txt" in Arguments.

When I run it, the test name and output file are set properly, however there is no test suite to be tested in the test.cc and consequently the list of test cases is empty.

(1) How can I debug a test suite in eclipse?

My goal is to investigate the output of lte-test-phy-error-model.cc. I ran this test suite via the command:

./waf --run "test-runner --suite=lte-phy-error-model --out=output.txt"

Surprisingly, I found that only a single control and a single data test cases are executed and the output is:

    Test downlink control channels (PCFICH+PDCCH)
Test with 2 eNB(s) at distance 1078 expected BER 0.007
    User 0 imsi 1 bytes rxed 0 txed 0 BER -nan Err nan
    Test downlink/uplink data shared channels (PDSCH and PUSCH)
Test with 4 user(s) at distance 1800 expected BER 0.33
    User 0 imsi 1 bytes rxed 0 txed 0 BER -nan Err nan lambda 0 np 0 difference 0 quantile 50
    User 1 imsi 2 bytes rxed 0 txed 0 BER -nan Err nan lambda 0 np 0 difference 0 quantile 50
    User 2 imsi 3 bytes rxed 0 txed 0 BER -nan Err nan lambda 0 np 0 difference 0 quantile 50
    User 3 imsi 4 bytes rxed 0 txed 0 BER -nan Err nan lambda 0 np 0 difference 0 quantile 50

(2) Why are "rxed" and "txed" 0, and how the final result of testing te-phy-error-model is "PASS"?

Thanks in advance,
Narges

Nicola Baldo

unread,
Jul 9, 2013, 12:34:05 PM7/9/13
to ns-3-...@googlegroups.com
Hi Narges,


On Thursday, July 4, 2013 9:42:57 PM UTC+2, Narges Shojaedin wrote:

Surprisingly, I found that only a single control and a single data test cases are executed

you just need to pass --fullness=EXTENSIVE to run all the test cases
 

and the output is:
[snip] 
 Why are "rxed" and "txed" 0, and how the final result of testing te-phy-error-model is "PASS"?

I agree the output is unexpected. I've filed a bug report on the ns-3 bugzilla:
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1731


Reply all
Reply to author
Forward
0 new messages