srsLTE/lib/test/phy/CMakeLists.txt

58 lines
2.4 KiB
CMake
Raw Normal View History

2018-07-02 01:20:40 -07:00
#
# Copyright 2013-2020 Software Radio Systems Limited
2018-07-02 01:20:40 -07:00
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the distribution.
2018-07-02 01:20:40 -07:00
#
#######################################################################
# PHY TESTS
#######################################################################
set(CTEST_LABELS "lib;phy")
2018-07-02 01:20:40 -07:00
add_executable(phy_dl_test phy_dl_test.c)
2021-03-19 03:45:56 -07:00
target_link_libraries(phy_dl_test srsran_phy srsran_common srsran_phy ${SEC_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
2018-07-02 01:20:40 -07:00
2019-04-23 01:53:11 -07:00
# All valid number of PRBs for PUSCH
set(ue_dl_min_mcs 0)
set(ue_dl_max_mcs 28)
set(ue_dl_step_mcs 7)
foreach (cell_n_prb 6 15 25 50 75 100)
foreach (allow_256 0 1)
foreach (ue_dl_tm 1 2 3 4)
foreach (ue_dl_mcs RANGE ${ue_dl_min_mcs} ${ue_dl_max_mcs} ${ue_dl_step_mcs})
set(phy_dl_test_args "")
2019-04-23 01:53:11 -07:00
set(phy_dl_test_args ${phy_dl_test_args} -p ${cell_n_prb})
set(phy_dl_test_args ${phy_dl_test_args} -t ${ue_dl_tm})
if (${allow_256})
if (${ue_dl_mcs} EQUAL 28)
if (${cell_n_prb} EQUAL 15)
set(ue_dl_mcs 26)
else (${cell_n_prb} EQUAL 15)
set(ue_dl_mcs 27)
endif (${cell_n_prb} EQUAL 15)
endif (${ue_dl_mcs} EQUAL 28)
2019-04-23 01:53:11 -07:00
set(phy_dl_test_args ${phy_dl_test_args} -q)
endif (${allow_256})
set(phy_dl_test_args ${phy_dl_test_args} -m ${ue_dl_mcs})
string(REGEX REPLACE "\ " "" test_name_args ${phy_dl_test_args})
add_lte_test(phy_dl_test${test_name_args} phy_dl_test ${phy_dl_test_args})
endforeach (ue_dl_mcs)
endforeach (ue_dl_tm)
endforeach (allow_256 0 1)
2019-04-23 01:53:11 -07:00
endforeach (cell_n_prb)
2020-01-31 15:51:53 -08:00
add_executable(pucch_ca_test pucch_ca_test.c)
2021-03-19 03:45:56 -07:00
target_link_libraries(pucch_ca_test srsran_phy srsran_common srsran_phy ${SEC_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
add_lte_test(pucch_ca_test pucch_ca_test)
2020-11-11 09:50:41 -08:00
add_executable(phy_dl_nr_test phy_dl_nr_test.c)
2021-03-19 03:45:56 -07:00
target_link_libraries(phy_dl_nr_test srsran_phy srsran_common srsran_phy ${SEC_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
add_nr_test(phy_dl_nr_test phy_dl_nr_test -p 100 -m 28)
add_nr_test(phy_dl_nr_test_rvd phy_dl_nr_test -P 52 -p 52 -m 0
-R 0 52 1 010010010010 00000000010000
-R 0 52 1 100100100100 00000010000000)