From 87aca185e3eecc4c8952e94bb46930d05f7e45fe Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Sun, 14 Jun 2009 19:43:53 +0200 Subject: added first simple test --- src/python/test.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 src/python/test.sh (limited to 'src') diff --git a/src/python/test.sh b/src/python/test.sh new file mode 100755 index 0000000..1631f70 --- /dev/null +++ b/src/python/test.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +./gsm_receive.py -I cfile > receiver-test.out +echo " 01 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b\n 15 06 21 00 01 00 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b" > receiver-comp.out +diff receiver-test.out receiver-comp.out > receiver-test-diff.out +test_result=`cat receiver-test-diff.out` + +rm receiver-test.out receiver-test-diff.out receiver-comp.out + +if [ "x$test_result" = "x" ]; then + echo "Test: passed" + exit 0 +else + echo "Test: failed" + exit 1 +fi -- cgit v1.2.3