# # Copyright 2012-2013 The libLTE Developers. See the # COPYRIGHT file at the top-level directory of this distribution. # # This file is part of the libLTE library. # # libLTE is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. # # libLTE is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # A copy of the GNU Lesser General Public License can be found in # the LICENSE file in the top-level directory of this distribution # and at http://www.gnu.org/licenses/. # ######################################################################## # PBCH TEST ######################################################################## ADD_EXECUTABLE(pbch_test pbch_test.c) TARGET_LINK_LIBRARIES(pbch_test lte) ADD_TEST(pbch_test_6 pbch_test -p 1 -n 6 -c 100) ADD_TEST(pbch_test_62 pbch_test -p 2 -n 6 -c 100) ADD_TEST(pbch_test_64 pbch_test -p 4 -n 6 -c 100) ADD_TEST(pbch_test_50 pbch_test -p 1 -n 50 -c 50) ADD_TEST(pbch_test_502 pbch_test -p 2 -n 50 -c 50) ADD_TEST(pbch_test_504 pbch_test -p 4 -n 50 -c 50) ######################################################################## # PCFICH TEST ######################################################################## ADD_EXECUTABLE(pcfich_test pcfich_test.c) TARGET_LINK_LIBRARIES(pcfich_test lte) ADD_TEST(pcfich_test_6 pcfich_test -p 1 -n 6) ADD_TEST(pcfich_test_62 pcfich_test -p 2 -n 6) ADD_TEST(pcfich_test_64 pcfich_test -p 4 -n 6) ADD_TEST(pcfich_test_10 pcfich_test -p 1 -n 10) ADD_TEST(pcfich_test_102 pcfich_test -p 2 -n 10) ADD_TEST(pcfich_test_104 pcfich_test -p 4 -n 10) ######################################################################## # PHICH TEST ######################################################################## ADD_EXECUTABLE(phich_test phich_test.c) TARGET_LINK_LIBRARIES(phich_test lte) ADD_TEST(phich_test_6 phich_test -p 1 -n 6) ADD_TEST(phich_test_62 phich_test -p 2 -n 6) ADD_TEST(phich_test_64 phich_test -p 4 -n 6 -g 1/6) ADD_TEST(phich_test_6e phich_test -p 1 -n 6 -e) ADD_TEST(phich_test_62e phich_test -p 2 -n 6 -e -l) ADD_TEST(phich_test_64e phich_test -p 4 -n 6 -e -l -g 2) ADD_TEST(phich_test_10 phich_test -p 1 -n 10 -e) ADD_TEST(phich_test_102 phich_test -p 2 -n 10 -g 2) ADD_TEST(phich_test_104 phich_test -p 4 -n 10 -e -l -g 1/2) ######################################################################## # PDCCH TEST ######################################################################## ADD_EXECUTABLE(pdcch_test pdcch_test.c) TARGET_LINK_LIBRARIES(pdcch_test lte) ######################################################################## # FILE TEST ######################################################################## ADD_EXECUTABLE(pbch_file_test pbch_file_test.c) TARGET_LINK_LIBRARIES(pbch_file_test lte) ADD_EXECUTABLE(pcfich_file_test pcfich_file_test.c) TARGET_LINK_LIBRARIES(pcfich_file_test lte) ADD_EXECUTABLE(phich_file_test phich_file_test.c) TARGET_LINK_LIBRARIES(phich_file_test lte) ADD_TEST(pbch_file_test pbch_file_test -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.1.92M.dat) ADD_TEST(pcfich_file_test pcfich_file_test -c 150 -n 50 -p 2 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.10M.dat) ADD_TEST(phich_file_test phich_file_test -c 150 -n 50 -p 2 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.10M.dat)