Skip to content

Commit

Permalink
Add bash testing script
Browse files Browse the repository at this point in the history
  • Loading branch information
johnteslade committed Sep 20, 2013
1 parent bb84062 commit b7d10a5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions basic_test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b7d10a5

Please sign in to comment.