summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Krysik <perper@o2.pl>2009-06-14 19:43:53 +0200
committerPiotr Krysik <perper@o2.pl>2009-06-14 19:43:53 +0200
commit87aca185e3eecc4c8952e94bb46930d05f7e45fe (patch)
treec16c0522b0f6afc2dfdf9bbbf3a2c6d0ec348b07
parent48dc955afd9c020c9e5627111db222717ce0664f (diff)
added first simple test
-rwxr-xr-xsrc/python/test.sh16
1 files changed, 16 insertions, 0 deletions
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
personal git repositories of Harald Welte. Your mileage may vary