mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-12-03 14:17:18 +03:00
b932f4b6c8
Ignore-this: 64191b510bd1b9cddff2cd122fb0b958 darcs-hash:20091228231028-f0a0d-5839330c6f4b9805099ab6a670f7f7c4a3ebfd93.gz
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
VERIF_TESTS := \
|
|
verify_attribute_ops \
|
|
verify_display_attributes \
|
|
verify_parse_terminfo_caps \
|
|
verify_eval_terminfo_caps \
|
|
verify_utf8_width \
|
|
verify_image_ops \
|
|
verify_image_trans \
|
|
verify_empty_image_props \
|
|
verify_picture_ops \
|
|
verify_span_ops \
|
|
verify_debug_terminal \
|
|
verify_inline \
|
|
|
|
|
|
TESTS :=\
|
|
Bench \
|
|
Bench2 \
|
|
BenchRenderChar \
|
|
Test \
|
|
Test2 \
|
|
yi_issue_264 \
|
|
vty_issue_18 \
|
|
$(VERIF_TESTS)
|
|
|
|
# TODO: Tests should also be buildable referencing the currently installed vty
|
|
GHC_ARGS=--make -i../src -package parallel-1.1.0.1 -hide-package transformers -hide-package monads-fd -hide-package monads-tf -package QuickCheck-2.1.0.2 -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
|
|
|
|
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) $@ && ./$@
|
|
|