Add physim tests into ctest framework
Convert physim testcases listed in cmake_targets/autotests/test_case_list.xml into ctest. Note: Tests for dlsim_tm4 are excluded, due to compilation issues.
CTest evaluates success based on return code: '0' = pass, non-zero = fail. For some simulators, the return code is non-zero even when the test is successful (as indicated by success messages in the test logs). For some simulators, the return code is always '0'. This inconsistency has been address in the first two commits of this MR.
To build and execute these tests:
- using cmake
cd openairinterface5g
mkdir build && cd build # you can also do that in cmake_targets/ran_build/build
cmake .. -GNinja -DENABLE_PHYSIM_TESTS=ON && ninja tests
ctest
- using build_oai
- physim-related ctests are activated when PHY simulators are built (use build_oai with '-P' or '--phy_simulators' option)
cd openairinterface5g/cmake_targets
./build_oai --ninja --phy_simulators
cd ran_build/build
ctest
Link to newly created 4g and 5g RAN-Physim-Cluster pipelines:
- RAN-Physim-Cluster-4G: https://jenkins-oai.eurecom.fr/job/RAN-Physim-Cluster-4G/
- RAN-Physim-Cluster-5G: https://jenkins-oai.eurecom.fr/job/RAN-Physim-Cluster-5G/
Edited by Jaroslava Fiedlerova