blob: d06e98b62f8c53aa5a9e1abb21c964ce0dd06470 [file] [log] [blame]
Ash Wilsoncef8c092016-02-21 10:32:12 -08001#!/bin/bash
2export AP_DECODE="grgsm_decode"
3export CAPFILE="vf_call6_a725_d174_g5_Kc1EF00BAB3BAC7002.cfile"
4export TEST_DATA_DIRECTORY="/src/test_data/"
Ash Wilson0884c2e2016-02-25 23:07:50 -06005export TEST_FIXTURES_DIRECTORY="/src/test/fixtures"
Ash Wilsoncef8c092016-02-21 10:32:12 -08006export RUNLINE="$AP_DECODE -c $CAPFILE -s $((100000000/174)) -a 725 -m BCCH -t 0 -v "
7echo "Testing with:"
8echo " $RUNLINE"
Ash Wilsonee5606f2016-02-21 10:46:37 -08009cd $TEST_DATA_DIRECTORY
Ash Wilsoncef8c092016-02-21 10:32:12 -080010gnuradio-companion --version
11
Piotr Krysik0b2e9a32016-02-29 18:32:13 +010012$RUNLINE | tail -n +2 | tee grgsm_decode_test1_result
Ash Wilsonca594c32016-03-06 09:31:10 -080013diff grgsm_decode_test1_result $TEST_FIXTURES_DIRECTORY/grgsm_decode_test1_expected
Ash Wilsoncef8c092016-02-21 10:32:12 -080014TEST_RESULT=$?
15
16rm grgsm_decode_test1_result
17if [ $TEST_RESULT == 0 ]
18then
19 echo " Result: PASSED"
20 exit 0
21else
22 echo " Result: FAILED"
23 exit 1
24fi