2014-03-08 03:46:19 -08:00
|
|
|
#
|
2015-05-08 08:05:40 -07:00
|
|
|
# Copyright 2013-2015 The srsLTE Developers. See the
|
2014-03-08 03:46:19 -08:00
|
|
|
# COPYRIGHT file at the top-level directory of this distribution.
|
|
|
|
#
|
2015-03-24 07:58:33 -07:00
|
|
|
# This file is part of the srsLTE library.
|
2014-03-08 03:46:19 -08:00
|
|
|
#
|
2015-03-24 07:58:33 -07:00
|
|
|
# srsLTE is free software: you can redistribute it and/or modify
|
2015-05-08 08:05:40 -07:00
|
|
|
# it under the terms of the GNU Affero General Public License as
|
2014-03-08 03:46:19 -08:00
|
|
|
# published by the Free Software Foundation, either version 3 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
2015-03-24 07:58:33 -07:00
|
|
|
# srsLTE is distributed in the hope that it will be useful,
|
2014-03-08 03:46:19 -08:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2015-05-08 08:05:40 -07:00
|
|
|
# GNU Affero General Public License for more details.
|
2014-03-08 03:46:19 -08:00
|
|
|
#
|
2015-05-08 08:05:40 -07:00
|
|
|
# A copy of the GNU Affero General Public License can be found in
|
2014-03-08 03:46:19 -08:00
|
|
|
# the LICENSE file in the top-level directory of this distribution
|
|
|
|
# and at http://www.gnu.org/licenses/.
|
|
|
|
#
|
|
|
|
|
2014-05-13 08:00:49 -07:00
|
|
|
|
2014-06-03 05:59:15 -07:00
|
|
|
########################################################################
|
|
|
|
# RATEMATCHING TEST
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(rm_conv_test rm_conv_test.c)
|
2015-03-19 09:09:38 -07:00
|
|
|
TARGET_LINK_LIBRARIES(rm_conv_test srslte)
|
2014-06-03 05:59:15 -07:00
|
|
|
|
2014-06-06 08:09:15 -07:00
|
|
|
ADD_EXECUTABLE(rm_turbo_test rm_turbo_test.c)
|
2015-03-19 09:09:38 -07:00
|
|
|
TARGET_LINK_LIBRARIES(rm_turbo_test srslte)
|
2014-06-06 08:09:15 -07:00
|
|
|
|
2014-06-03 05:59:15 -07:00
|
|
|
ADD_TEST(rm_conv_test_1 rm_conv_test -t 480 -r 1920)
|
|
|
|
ADD_TEST(rm_conv_test_2 rm_conv_test -t 1920 -r 480)
|
2014-06-07 01:48:03 -07:00
|
|
|
|
2015-09-22 13:20:36 -07:00
|
|
|
ADD_TEST(rm_turbo_test_1 rm_turbo_test -e 1920)
|
|
|
|
ADD_TEST(rm_turbo_test_2 rm_turbo_test -e 8192)
|
2014-06-03 05:59:15 -07:00
|
|
|
|
2015-03-19 09:09:38 -07:00
|
|
|
BuildMex(MEXNAME rm_turbo_rx SOURCES rm_turbo_rx_mex.c LIBRARIES srslte srslte_mex)
|
2014-06-03 05:59:15 -07:00
|
|
|
|
2014-05-13 08:00:49 -07:00
|
|
|
########################################################################
|
|
|
|
# Turbo Coder TEST
|
|
|
|
########################################################################
|
2014-12-26 15:36:32 -08:00
|
|
|
ADD_EXECUTABLE(turbodecoder_test turbodecoder_test.c)
|
2015-03-19 09:09:38 -07:00
|
|
|
TARGET_LINK_LIBRARIES(turbodecoder_test srslte)
|
2014-05-13 08:00:49 -07:00
|
|
|
|
2014-12-26 15:36:32 -08:00
|
|
|
ADD_TEST(turbodecoder_test_504_1 turbodecoder_test -n 100 -s 1 -l 504 -e 1.0 -t)
|
|
|
|
ADD_TEST(turbodecoder_test_504_2 turbodecoder_test -n 100 -s 1 -l 504 -e 2.0 -t)
|
|
|
|
ADD_TEST(turbodecoder_test_6114_1_5 turbodecoder_test -n 100 -s 1 -l 6144 -e 1.5 -t)
|
|
|
|
ADD_TEST(turbodecoder_test_known turbodecoder_test -n 1 -s 1 -k -e 0.5)
|
|
|
|
|
2015-03-19 09:09:38 -07:00
|
|
|
BuildMex(MEXNAME turbodecoder SOURCES turbodecoder_test_mex.c LIBRARIES srslte srslte_mex)
|
2014-05-13 08:00:49 -07:00
|
|
|
|
2015-09-12 04:27:59 -07:00
|
|
|
ADD_EXECUTABLE(turbocoder_test turbocoder_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(turbocoder_test srslte)
|
2015-09-22 13:20:36 -07:00
|
|
|
ADD_TEST(turbocoder_test_all turbocoder_test)
|
2015-09-12 04:27:59 -07:00
|
|
|
|
2014-03-08 03:46:19 -08:00
|
|
|
########################################################################
|
|
|
|
# Viterbi TEST
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(viterbi_test viterbi_test.c)
|
2015-03-19 09:09:38 -07:00
|
|
|
TARGET_LINK_LIBRARIES(viterbi_test srslte)
|
2014-03-08 03:46:19 -08:00
|
|
|
|
|
|
|
ADD_TEST(viterbi_40_0 viterbi_test -n 1000 -s 1 -l 40 -k 7 -t -e 0.0)
|
|
|
|
ADD_TEST(viterbi_40_2 viterbi_test -n 1000 -s 1 -l 40 -k 7 -t -e 2.0)
|
|
|
|
ADD_TEST(viterbi_40_3 viterbi_test -n 1000 -s 1 -l 40 -k 7 -t -e 3.0)
|
|
|
|
ADD_TEST(viterbi_40_4 viterbi_test -n 1000 -s 1 -l 40 -k 7 -t -e 4.5)
|
|
|
|
|
|
|
|
ADD_TEST(viterbi_1000_0 viterbi_test -n 100 -s 1 -l 1000 -k 7 -t -e 0.0)
|
|
|
|
ADD_TEST(viterbi_1000_2 viterbi_test -n 100 -s 1 -l 1000 -k 7 -t -e 2.0)
|
|
|
|
ADD_TEST(viterbi_1000_3 viterbi_test -n 100 -s 1 -l 1000 -k 7 -t -e 3.0)
|
|
|
|
ADD_TEST(viterbi_1000_4 viterbi_test -n 100 -s 1 -l 1000 -k 7 -t -e 4.5)
|
|
|
|
|
2015-03-19 09:09:38 -07:00
|
|
|
BuildMex(MEXNAME viterbi SOURCES viterbi_test_mex.c LIBRARIES srslte srslte_mex)
|
2014-12-15 15:34:44 -08:00
|
|
|
|
2014-03-08 03:46:19 -08:00
|
|
|
########################################################################
|
|
|
|
# CRC TEST
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(crc_test crc_test.c)
|
2015-03-19 09:09:38 -07:00
|
|
|
TARGET_LINK_LIBRARIES(crc_test srslte)
|
2014-03-08 03:46:19 -08:00
|
|
|
|
2014-05-12 04:20:21 -07:00
|
|
|
ADD_TEST(crc_24A crc_test -n 5001 -l 24 -p 0x1864CFB -s 1)
|
|
|
|
ADD_TEST(crc_24B crc_test -n 5001 -l 24 -p 0x1800063 -s 1)
|
|
|
|
ADD_TEST(crc_16 crc_test -n 5001 -l 16 -p 0x11021 -s 1)
|
|
|
|
ADD_TEST(crc_8 crc_test -n 5001 -l 8 -p 0x19B -s 1)
|
2014-03-08 03:46:19 -08:00
|
|
|
|
|
|
|
|