43 lines
1.2 KiB
Bash
Executable File
43 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# tst_ofdm_mod_setup
|
|
#
|
|
# Setup input and reference data for one of several versions of this test.
|
|
|
|
# Find the scripts directory
|
|
SCRIPTS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
|
|
# Setup common variables
|
|
source $SCRIPTS/run_tests_common.sh
|
|
|
|
# RUN_DIR - Directory where test will be run
|
|
RUN_DIR="${UNITTEST_BASE}/test_run/${FULL_TEST_NAME}"
|
|
|
|
# Call common setup function to make the directory
|
|
setup_common "${RUN_DIR}"
|
|
|
|
# Change to test directory
|
|
cd "${RUN_DIR}"
|
|
|
|
|
|
#####################################################################
|
|
## Test SETUP actions:
|
|
|
|
case "${TEST_OPT}" in
|
|
|
|
plain )
|
|
# Config is <unused>, <unused>, <ldpc_en>, <unused> <profile>
|
|
echo "00000000" > stm_cfg.txt
|
|
ofdm_get_test_bits --out stm_in.raw --frames 10 --verbose > setup.log 2>&1
|
|
ofdm_mod --in stm_in.raw --out ref_mod_out.raw --verbose 1 > ref_gen_log.txt 2>&1
|
|
;;
|
|
|
|
ldpc )
|
|
# Config is <unused>, <unused>, <ldpc_en>, <unused> <profile>
|
|
echo "00100000" > stm_cfg.txt
|
|
ofdm_get_test_bits --out stm_in.raw --frames 10 --length 112 --verbose > setup.log 2>&1
|
|
ofdm_mod --in stm_in.raw --out ref_mod_out.raw --ldpc --verbose 1 > ref_gen_log.txt 2>&1
|
|
;;
|
|
|
|
esac
|