Add bash testing script
[asn2quickder] / basic_test.sh
1 #!/bin/sh
2
3 # For every *.asn file, run it through test.py and pipe
4 # the result back to Python.
5 # This checks two things:
6 # 1) All steps of parsing and codegen run without exceptions
7 # 2) The end result is valid Python
8 # Note that it does not say anything about correctness or
9 # completeness of the generated code.
10
11 export PYTHONPATH=`pwd`
12 for f in testdata/*.asn; 
13 do 
14         echo "Checking $f"; 
15         python asn1ate/test.py $f | python
16 done
17