summaryrefslogtreecommitdiff
path: root/test/python
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2011-06-08 15:11:01 +0000
committerAdrian Thurston <thurston@complang.org>2011-06-08 15:11:01 +0000
commit553ef7e9a1d160cd21bdc0a343159c058e9b80df (patch)
tree42a1dd1d49e08cf2d211eb636b3dd245d5606ce2 /test/python
parentbed8b8e140a249333030880a62243897be6c74e5 (diff)
downloadcolm-553ef7e9a1d160cd21bdc0a343159c058e9b80df.tar.gz
Added makefiles. Still generated, but checked in too for convenience. New tests
will cause makefile changes.
Diffstat (limited to 'test/python')
-rw-r--r--test/python/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/test/python/Makefile b/test/python/Makefile
new file mode 100644
index 00000000..158d14fb
--- /dev/null
+++ b/test/python/Makefile
@@ -0,0 +1,52 @@
+SUBDIRS =
+
+TESTS = \
+ python.lm
+
+DIFFS = \
+ python1.py.diff \
+ python2.py.diff \
+ python3.py.diff \
+ python4.py.diff
+
+all: Makefile $(DIFFS) $(SUBDIRS)
+
+.PHONY: clean $(SUBDIRS:%=%-clean)
+clean: $(SUBDIRS:%=%-clean)
+ rm -f *.bin
+$(SUBDIRS:%=%-clean):
+ cd $(@:%-clean=%) && $(MAKE) clean
+
+.PHONY: $(SUBDIRS)
+$(SUBDIRS):
+ cd $@ && $(MAKE)
+
+Makefile: ../genmf TESTS
+ ../genmf > Makefile
+
+python1.py.diff: python1.py.out python1.py.exp
+ @diff -u python1.py.exp python1.py.out > python1.py.diff || ( cat python1.py.diff; rm python1.py.diff )
+
+python1.py.out: python.bin
+ ./python.bin < python1.py.in > python1.py.out
+
+python2.py.diff: python2.py.out python2.py.exp
+ @diff -u python2.py.exp python2.py.out > python2.py.diff || ( cat python2.py.diff; rm python2.py.diff )
+
+python2.py.out: python.bin
+ ./python.bin < python2.py.in > python2.py.out
+
+python3.py.diff: python3.py.out python3.py.exp
+ @diff -u python3.py.exp python3.py.out > python3.py.diff || ( cat python3.py.diff; rm python3.py.diff )
+
+python3.py.out: python.bin
+ ./python.bin < python3.py.in > python3.py.out
+
+python4.py.diff: python4.py.out python4.py.exp
+ @diff -u python4.py.exp python4.py.out > python4.py.diff || ( cat python4.py.diff; rm python4.py.diff )
+
+python4.py.out: python.bin
+ ./python.bin < python4.py.in > python4.py.out
+
+python.bin: python.lm ../../colm/colm
+ ../../colm/colm python.lm