Ash Wilson | cef8c09 | 2016-02-21 10:32:12 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | export AP_DECODE="grgsm_decode" |
| 3 | export CAPFILE="vf_call6_a725_d174_g5_Kc1EF00BAB3BAC7002.cfile" |
| 4 | export TEST_DATA_DIRECTORY="/src/test_data/" |
| 5 | export TEST_CONTROL_DIRECTORY="/src/build_test/control" |
| 6 | export RUNLINE="$AP_DECODE -c $CAPFILE -s $((100000000/174)) -a 725 -m BCCH -t 0 -v " |
| 7 | echo "Testing with:" |
| 8 | echo " $RUNLINE" |
Ash Wilson | ee5606f | 2016-02-21 10:46:37 -0800 | [diff] [blame] | 9 | cd $TEST_DATA_DIRECTORY |
Ash Wilson | cef8c09 | 2016-02-21 10:32:12 -0800 | [diff] [blame] | 10 | gnuradio-companion --version |
| 11 | |
Piotr Krysik | 0b2e9a3 | 2016-02-29 18:32:13 +0100 | [diff] [blame] | 12 | $RUNLINE | tail -n +2 | tee grgsm_decode_test1_result |
| 13 | diff grgsm_decode_test1_result $TEST_CONTROL_DIRECTORY/grgsm_decode_test1_expected |
Ash Wilson | cef8c09 | 2016-02-21 10:32:12 -0800 | [diff] [blame] | 14 | TEST_RESULT=$? |
| 15 | |
| 16 | rm grgsm_decode_test1_result |
| 17 | if [ $TEST_RESULT == 0 ] |
| 18 | then |
| 19 | echo " Result: PASSED" |
| 20 | exit 0 |
| 21 | else |
| 22 | echo " Result: FAILED" |
| 23 | exit 1 |
| 24 | fi |