mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-12-02 08:53:43 +03:00
f3f6af5989
Ignore-this: cf8f3d06e3c2fe5d580ea699b838e222 darcs-hash:20091109020018-f0a0d-01d08870acd6f1479c676d85e0c2c1590a0525f5.gz
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
VERIF_TESTS := \
|
|
verify_attribute_ops \
|
|
verify_display_attributes \
|
|
verify_parse_terminfo_caps \
|
|
verify_utf8_width \
|
|
verify_image_ops \
|
|
verify_image_trans \
|
|
verify_empty_image_props \
|
|
verify_picture_ops \
|
|
verify_span_ops \
|
|
verify_debug_terminal
|
|
|
|
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 -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
|
|
|
|
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 --output results/$@/time_report ./$@ +RTS -p -sresults/$@/mem_report \
|
|
&& cp $@.prof results/$@/profile \
|
|
)
|
|
|
|
.PHONY: interactive_terminal_test
|
|
interactive_terminal_test :
|
|
ghc $(GHC_ARGS) $@ && ./$@
|
|
|