vty/test/Makefile

64 lines
1.4 KiB
Makefile
Raw Normal View History

VERIF_TESTS := \
verify_attribute_ops \
verify_display_attributes \
verify_parse_terminfo_caps \
verify_eval_terminfo_caps \
verify_utf8_width \
2013-05-23 06:36:29 +04:00
VerifyImageOps \
verify_image_trans \
verify_empty_image_props \
verify_picture_ops \
2013-05-23 06:36:29 +04:00
VerifySpanOps \
verify_debug_terminal \
verify_inline \
TESTS :=\
benchmark \
Test \
Test2 \
yi_issue_264 \
vty_issue_18 \
$(VERIF_TESTS)
$(shell mkdir -p objects )
# TODO: Tests should also be buildable referencing the currently installed vty
GHC_ARGS=--make -i../src \
-package parallel \
-package deepseq-1.3.0.1 \
-hide-package transformers \
2013-05-23 06:36:29 +04:00
-hide-package monads-tf \
2012-04-22 19:55:12 +04:00
-package QuickCheck \
-ignore-package vty \
../cbits/gwinsz.c ../cbits/set_term_timing.c ../cbits/mk_wcwidth.c \
-O2 -funbox-strict-fields -Wall -threaded -fno-full-laziness -fspec-constr -fspec-constr-count=10 \
2011-07-04 11:04:04 +04:00
-rtsopts \
-odir objects -hidir objects
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) $@ \
&& time ./$@ +RTS -p -sresults/$@/mem_report \
&& cp $@.prof results/$@/profile \
)
.PHONY: interactive_terminal_test
interactive_terminal_test :
ghc $(GHC_ARGS) $@ && ./$@
.PHONY: core
core :
ghc-core --no-asm --no-cast -- $(GHC_ARGS) benchmark