Rewiring testing script
diff --git a/test/tests/decode.sh b/test/tests/decode.sh
index 8950952..62a3df2 100755
--- a/test/tests/decode.sh
+++ b/test/tests/decode.sh
@@ -1,28 +1,27 @@
#!/bin/bash
TEST_DIR=`dirname "$0"`
-export AP_DECODE="grgsm_decode"
-#export CAPFILE="vf_call6_a725_d174_g5_Kc1EF00BAB3BAC7002.cfile"
-#export TEST_DATA_DIRECTORY="/src/test_data/"
-#export TEST_FIXTURES_DIRECTORY="/src/test/fixtures"
-#export RUNLINE="$AP_DECODE -c $CAPFILE -s $((100000000/174)) -a 725 -m BCCH -t 0 -v "
-export CAPFILE="../../test_data/vf_call6_a725_d174_g5_Kc1EF00BAB3BAC7002.cfile"
+export AP_DECODE="grgsm_decode"
+export CAPFILE="/src/test_data/vf_call6_a725_d174_g5_Kc1EF00BAB3BAC7002.cfile"
export SHORTENED_CAPFILE="tmp.cfile"
-export RESULT_EXPECTED="../fixtures/grgsm_decode_test1_expected"
+export RESULT_EXPECTED="/src/test/fixtures/grgsm_decode_test1_expected"
export RESULT_OBTAINED="grgsm_decode_test1_result"
export RUNLINE="$AP_DECODE -c $SHORTENED_CAPFILE -s $((100000000/174)) -m BCCH -t 0 -v "
-
echo "Testing with:"
echo " $RUNLINE"
gnuradio-companion --version
+
cd $TEST_DIR
cat $CAPFILE | head -c 6000000 > $SHORTENED_CAPFILE
+
$RUNLINE | tail -n +4 | tee $RESULT_OBTAINED
diff $RESULT_EXPECTED $RESULT_OBTAINED
TEST_RESULT=$?
+
rm $RESULT_OBTAINED
rm $SHORTENED_CAPFILE
+
if [ $TEST_RESULT == 0 ]
then
echo " Result: PASSED"