Add bash testing script
authorJohnTESlade <john@jtes.net>
Fri, 20 Sep 2013 13:26:39 +0000 (14:26 +0100)
committerJohnTESlade <john@jtes.net>
Fri, 20 Sep 2013 13:26:39 +0000 (14:26 +0100)
basic_test.sh [new file with mode: 0755]

diff --git a/basic_test.sh b/basic_test.sh
new file mode 100755 (executable)
index 0000000..0112696
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# For every *.asn file, run it through test.py and pipe
+# the result back to Python.
+# This checks two things:
+# 1) All steps of parsing and codegen run without exceptions
+# 2) The end result is valid Python
+# Note that it does not say anything about correctness or
+# completeness of the generated code.
+
+export PYTHONPATH=`pwd`
+for f in testdata/*.asn; 
+do 
+       echo "Checking $f"; 
+       python asn1ate/test.py $f | python
+done
+