From ea802c23f2a0e03be94ad42fb11fda67b2cd6b0b Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Wed, 21 Jul 2021 15:01:04 +0200 Subject: [PATCH] Remove PHY lib verbose from test and use byte vector random function --- lib/test/phy/CMakeLists.txt | 4 ++-- lib/test/phy/phy_dl_nr_test.c | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/test/phy/CMakeLists.txt b/lib/test/phy/CMakeLists.txt index 92654be8a..fdaee2cb6 100644 --- a/lib/test/phy/CMakeLists.txt +++ b/lib/test/phy/CMakeLists.txt @@ -60,5 +60,5 @@ add_nr_test(phy_dl_nr_test_rvd phy_dl_nr_test -P 52 -p 52 -m 0 -R 0 52 1 100100100100 00000010000000) add_nr_test(phy_dl_nr_test_cfo_delay phy_dl_nr_test -P 52 -p 52 -m 27 -C 100.0 -D 4 -n 10) -add_nr_test(phy_dl_nr_test_52prb phy_dl_nr_test -P 52 -p 52 -m 27 -T 256qam -v -d 1 1 -n 10) -add_nr_test(phy_dl_nr_test_270prb phy_dl_nr_test -P 270 -p 270 -m 27 -T 256qam -v -d 1 1 -n 10) +add_nr_test(phy_dl_nr_test_52prb phy_dl_nr_test -P 52 -p 52 -m 27 -T 256qam -d 1 1 -n 10) +add_nr_test(phy_dl_nr_test_270prb phy_dl_nr_test -P 270 -p 270 -m 27 -T 256qam -d 1 1 -n 10) diff --git a/lib/test/phy/phy_dl_nr_test.c b/lib/test/phy/phy_dl_nr_test.c index 07b342b83..163975925 100644 --- a/lib/test/phy/phy_dl_nr_test.c +++ b/lib/test/phy/phy_dl_nr_test.c @@ -387,10 +387,7 @@ int main(int argc, char** argv) if (data_tx[tb] == NULL) { continue; } - - for (uint32_t i = 0; i < pdsch_cfg.grant.tb[tb].tbs; i++) { - data_tx[tb][i] = (uint8_t)srsran_random_uniform_int_dist(rand_gen, 0, UINT8_MAX); - } + srsran_random_byte_vector(rand_gen, data_tx[tb], pdsch_cfg.grant.tb[tb].tbs/8); pdsch_cfg.grant.tb[tb].softbuffer.tx = &softbuffer_tx; }