Restore ns-3 test-runner wiring so point-to-point suites are discoverable#236
Restore ns-3 test-runner wiring so point-to-point suites are discoverable#236
Conversation
|
|
Co-authored-by: tianhao909 <48342395+tianhao909@users.noreply.github.com>
Co-authored-by: tianhao909 <48342395+tianhao909@users.noreply.github.com>
|
您好,我直接运行 ./ns3 configure --enable-tests 出错运行不出来,但先 cmake -S 。 -B build -DNS3_TESTS=ON -DBUILD_TESTING=ON cmake --build build -j,build和编译没问题,再运行 ./ns3 configure --enable-tests 是可以的,但运行 python3 ./test.py -s devices-point-to-point 还是测试套件未运行,因为请求了未知的测试套件名称”。这个方案是Direct ns-3 invocation remains documented as: cd ./ns-3-alibabacloud/simulation |
|
两个pr都有更新 可以再试试 , 有什么问题可以在对应pr底下继续追问看看 #236
|





devices-point-to-pointwas already defined and registered, butpython3 ./test.py --no-build -s devices-point-to-pointstill failed with “unknown test suite name”. The issue was not the suite name itself; this fork was missing thetest-runnerbuild path thattest.pyuses to enumerate and execute C++TestSuites.Re-enable ns-3 test suite discovery
utilsbuild subtree tosimulation/CMakeLists.txttest-runnerexecutable target sotest.pycan query--print-test-name-listtest-runneragainst${ns3-libs-tests}so module test libraries, includingpoint-to-point-test, are visible at runtimeRestore the minimal test-runner entrypoint
utils/test-runner.ccns3::TestRunner::Run(argc, argv)Unblock compilation on current toolchains
Direct ns-3 invocation remains the supported flow
cd ./ns-3-alibabacloud/simulation ./ns3 configure --enable-tests --disable-examples ./ns3 build python3 ./test.py --no-build -s devices-point-to-pointExample of the restored entrypoint:
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.