on 5edacaa help sign in
vty/test/Makefile
45 lines 1.2 kB history raw
1VERIF_TESTS := \
2verify_attribute_ops \
3verify_control_strings \
4verify_utf8_width \
5verify_image_ops \
6verify_image_trans \
7verify_empty_image_props \
8verify_picture_ops \
9verify_span_ops \
10verify_debug_terminal
12TESTS :=\
13Bench \
14Bench2 \
15BenchRenderChar \
16Test \
17Test2 \
18yi_issue_264 \
19vty_issue_18 \
20$(VERIF_TESTS)
22# TODO: Tests should also be buildable referencing the currently installed vty
23GHC_ARGS=--make -i../src -hide-package mtl -hide-package monads-fd -package QuickCheck-2.1.0.1 -ignore-package vty ../cbits/gwinsz.c ../cbits/set_term_timing.c ../cbits/mk_wcwidth.c -O -funbox-strict-fields -Wall -threaded -fno-full-laziness -fspec-constr -odir objects -hidir objects
25GHC_PROF_ARGS=-prof -auto-all $(GHC_ARGS)
27SOURCE := $(shell find ../src ../cbits -name '*.hs' -print -or -name '*.c' -print -or -name '*.h' -print)
29.PHONY: all
30all : $(VERIF_TESTS)
32.PHONY: $(TESTS)
33.SECONDEXPANSION:
34$(TESTS) :
35 @echo running test $@
36 @mkdir -p results/$@
37 ( ghc $(GHC_PROF_ARGS) $@ \
38 && time --output results/$@/time_report ./$@ +RTS -p -sresults/$@/mem_report \
39 && cp $@.prof results/$@/profile \
40 )
42.PHONY: interactive_terminal_test
43interactive_terminal_test :
44 ghc $(GHC_ARGS) $@ && ./$@