blob: 2b998420792c991d24922bb0b2376b6cafe84f4b [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/"
5export TEST_CONTROL_DIRECTORY="/src/build_test/control"
6export 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
12$RUNLINE | tail -n +2 > grgsm_decode_test1_result
13diff grgsm_decode_test1_result $TEST_CONTROL_DIRECTORY/grgsm_decode_test1_expected > /dev/null
14TEST_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