Basic pre-commit check.
[asn2quickder] / basic_test.bat
diff --git a/basic_test.bat b/basic_test.bat
new file mode 100644 (file)
index 0000000..69c4c43
--- /dev/null
@@ -0,0 +1,14 @@
+@ECHO OFF
+
+REM For every *.asn file, run it through test.py and pipe
+REM the result back to Python.
+REM This checks two things:
+REM 1) All steps of parsing and codegen run without exceptions
+REM 2) The end result is valid Python
+REM Note that it does not say anything about correctness or
+REM completeness of the generated code.
+
+FOR %%t IN (testdata\*.asn) DO (
+@ECHO Checking %%t
+python asn1ate\test.py %%t | python
+)
\ No newline at end of file