2009-09-04 21:29:28 +04:00
|
|
|
VERIF_TESTS := \
|
|
|
|
verify_attribute_ops \
|
2009-11-09 05:00:18 +03:00
|
|
|
verify_display_attributes \
|
|
|
|
verify_parse_terminfo_caps \
|
2009-11-09 08:34:36 +03:00
|
|
|
verify_eval_terminfo_caps \
|
2009-09-04 21:29:28 +04:00
|
|
|
verify_utf8_width \
|
|
|
|
verify_image_ops \
|
|
|
|
verify_image_trans \
|
2009-09-06 06:42:09 +04:00
|
|
|
verify_empty_image_props \
|
2009-09-04 21:29:28 +04:00
|
|
|
verify_picture_ops \
|
|
|
|
verify_span_ops \
|
2009-11-09 05:23:08 +03:00
|
|
|
verify_debug_terminal \
|
2009-11-09 08:37:35 +03:00
|
|
|
verify_inline \
|
2009-11-09 05:23:08 +03:00
|
|
|
|
2009-09-04 21:29:28 +04:00
|
|
|
|
|
|
|
TESTS :=\
|
|
|
|
Bench \
|
|
|
|
Bench2 \
|
|
|
|
BenchRenderChar \
|
|
|
|
Test \
|
|
|
|
Test2 \
|
|
|
|
yi_issue_264 \
|
|
|
|
vty_issue_18 \
|
|
|
|
$(VERIF_TESTS)
|
|
|
|
|
2009-12-29 02:32:18 +03:00
|
|
|
$(shell mkdir -p objects )
|
|
|
|
|
2009-09-04 21:29:28 +04:00
|
|
|
# TODO: Tests should also be buildable referencing the currently installed vty
|
2011-07-04 00:31:23 +04:00
|
|
|
GHC_ARGS=--make -i../src \
|
|
|
|
-package parallel \
|
|
|
|
-package deepseq-1.1.0.2 \
|
|
|
|
-hide-package transformers \
|
|
|
|
-hide-package monads-fd \
|
|
|
|
-hide-package monads-tf \
|
|
|
|
-package QuickCheck-2.4 \
|
|
|
|
-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 -rtsopts \
|
|
|
|
-odir objects -hidir objects
|
2009-09-04 21:29:28 +04:00
|
|
|
|
|
|
|
GHC_PROF_ARGS=-prof -auto-all $(GHC_ARGS)
|
|
|
|
|
|
|
|
SOURCE := $(shell find ../src ../cbits -name '*.hs' -print -or -name '*.c' -print -or -name '*.h' -print)
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all : $(VERIF_TESTS)
|
|
|
|
|
|
|
|
.PHONY: $(TESTS)
|
|
|
|
.SECONDEXPANSION:
|
|
|
|
$(TESTS) :
|
|
|
|
@echo running test $@
|
|
|
|
@mkdir -p results/$@
|
|
|
|
( ghc $(GHC_PROF_ARGS) $@ \
|
2009-11-09 08:34:36 +03:00
|
|
|
&& time ./$@ +RTS -p -sresults/$@/mem_report \
|
2009-09-04 21:29:28 +04:00
|
|
|
&& cp $@.prof results/$@/profile \
|
|
|
|
)
|
|
|
|
|
|
|
|
.PHONY: interactive_terminal_test
|
|
|
|
interactive_terminal_test :
|
|
|
|
ghc $(GHC_ARGS) $@ && ./$@
|
|
|
|
|