signetlabdei / lorawan

An ns-3 module for simulation of LoRaWAN networks
GNU General Public License v2.0
182 stars 130 forks source link

test.py failing with "Packet changed contents when going through the channel" #149

Closed Ferrari3rddriver closed 7 months ago

Ferrari3rddriver commented 8 months ago

Hello guys

Expected Behavior

Finally, make sure tests run smoothly with:

./test.py -s lorawan

Expectation is to pass all tests.

Actual Behavior

$ ./test.py -s lorawan --text=loratest Finished executing the following commands: /usr/bin/cmake --build /home/jurca/Desktop/USA/PriviNet/Simulation-Demo/ns-3-dev-git/cmake-cache -j 1 [0/1] FAIL: TestSuite lorawan 0 of 1 tests passed (0 passed, 0 skipped, 1 failed, 0 crashed, 0 valgrind errors) List of FAILed tests: lorawan

Writing results to text file "loratest.txt"...done.

$ cat loratest.txt FAIL: Test Suite "lorawan" (0.005) PASS: Test Case "Verify that LoraInterferenceHelper works as expected" (0.000) PASS: Test Case "Verify that LoraDeviceAddress works as expected" (0.000) PASS: Test Case "Verify that LorawanMacHeader and LoraFrameHeader work as expected" (0.001) PASS: Test Case "Verify that ReceivePaths work as expected" (0.000) PASS: Test Case "Verify that LogicalLoraChannel and LogicalLoraChannelHelper work as expected" (0.000) PASS: Test Case "Verify that LoraPhy"s function to compute the time on air of a packet works as expected" (0.000) FAIL: Test Case "Verify that PhyConnectivity works as expected" (0.003) Details: Message: Packet changed contents when going through the channel Condition: HaveSamePacketContents(packet, m_latestReceivedPacket) (actual) == true (limit) Actual: 0 Limit: 1 File: /home/jurca/Desktop/USA/PriviNet/Simulation-Demo/ns-3-dev-git/src/lorawan/test/lorawan-test-suite.cc Line: 1481

Steps to Reproduce the Problem

  1. Install ns-3 according to README.md instruction from https://github.com/nsnam/ns-3-dev-git. Run tests after installing is complete.
  2. Install lorawan module according to README.md instruction from https://github.com/signetlabdei/lorawan/tree/develop. Run tests for lorawan after installing is complete.

Specifications

non-det-alle commented 7 months ago

Hello,

Thank you for the issue and sorry for the late reply.

Your problem may be related to using a more recent ns-3 version than the one supported, or by the installation guide in the readme being a bit out of date. I committed an updated version of the readme with better explanations and more automation in scripts, could you please try it out?

Ferrari3rddriver commented 7 months ago

Thank you. I had the chance to try on different setup, newer setup in terms of version. [0/1] PASS: TestSuite lorawan 1 of 1 tests passed (1 passed, 0 skipped, 0 failed, 0 crashed, 0 valgrind errors)

I guess it had to do with my older virtual machine setup, not critical anyhow I would say, even though the test failed simulation could be ran.

Ferrari3rddriver commented 7 months ago

Your answer is much appreciated.