Fix DPH make file and test suite
[packages/dph.git] / make / targets / test.mk
1
2 WAR_PACKAGES = \
3 stm \
4 parseargs \
5 buildbox
6
7 dph-test/bin/war : $(shell find dph-test/framework -name "*.hs")
8 @echo "* Build war test driver"
9 @mkdir -p dph-test/bin
10 @$(GHC_FRAMEWORK) \
11 -threaded \
12 $(patsubst %,-package %,$(WAR_PACKAGES)) \
13 -idph-test/framework --make dph-test/framework/Main.hs -o dph-test/bin/war -threaded
14 @echo
15
16 .PHONY : test-prims
17 test-prims : dph-test/bin/war
18 @echo "* Running tests"
19 @dph-test/bin/war -d dph-test/test
20 @echo