1
# This makefile is for the lifelines reports
3
AUTOMAKE_OPTIONS = no-dependencies
5
# SELFTEST_REPORTS is to hold all parts of the self-test scripts
6
SELFTEST_REPORTS = st_all.ll \
20
SELFTEST_REFERENCE = st_all.ref st_all_stdout.ref
21
TEST_ITER_REPORTS = test_forindi.ll test_forfam.ll test_indi_it.ll \
22
test_fam_it.ll test_othr_it.ll
23
TEST_ITER_REFERENCE = test_forindi.ref test_forfam.ref test_indi_it.ref \
24
test_fam_it.ref test_othr_it.ref
26
TEST_OUTPUTS =test_forindi.out test_forfam.out test_indi_it.out \
27
test_fam_it.out test_othr_it.out st_all.out \
31
pkg_REPORTS = $(SELFTEST_REPORTS) \
33
EXTRA_DIST = $(SELFTEST_REPORTS) $(SELFTEST_REFERENCE) \
34
$(TEST_ITER_REPORTS) $(TEST_ITER_REFERENCE) $(TEST_ITER_DB)
35
CLEANFILES = $(TEST_OUTPUTS) errs.log llines.leak_log selftest
37
LLEXEC = ../../src/liflines/llexec
38
LLINES = ../../src/liflines/llines
40
.PHONY: local test_iter st_all selftest
41
selftest: ti test_iter st_all
43
local: $(TEST_ITER_DB) $(TEST_ITER_REPORTS) $(SELFTEST_REPORTS)
44
ln -fs /bin/true selftest
46
dest=`basename $$i` ;\
47
if [ $$dest != $$i ] ; then \
52
ti: local ti.ged $(LLINES)
54
(echo yurti ; echo yyq) | $(LLINES) ./ti > /dev/null
56
test_iter: $(TEST_ITER_REPORTS) $(TEST_ITER_REFERENCE) $(TEST_ITER_DB) $(LLEXEC)
57
@for i in $(TEST_ITER_REPORTS) ; do \
58
this=`basename $$i .ll` ;\
59
echo "$(LLEXEC) ./ti -x ./$$this.ll > $$this.out" ;\
60
$(LLEXEC) ./ti -x ./$$this.ll > $$this.out;\
61
if diff $$this.out $(srcdir)/$$this.ref >/dev/null ; then\
64
echo "test $$i failed - to see failure execute" ; \
65
echo "diff $$this.out $(srcdir)/$$this.ref" ; \
66
ln -fs /bin/false selftest ;\
70
st_all: $(SELFTEST_REPORTS) $(LLEXEC)
71
(echo 1; echo 1 ;echo 0 ; echo st_all.out) | \
72
$(LLEXEC) ./ti -x ./st_all.ll > st_all.stdout
73
@if diff st_all.out $(srcdir)/st_all.ref >/dev/null ; then\
74
: echo "test st_all output ok" ; \
76
echo "test st_all output failed - to see failure execute" ; \
77
echo "diff st_all.out $(srcdir)/st_all.ref" ; \
78
ln -fs /bin/false selftest ;\
80
@if diff st_all.stdout $(srcdir)/st_all_stdout.ref >/dev/null ; then\
81
: echo "test st_all stdout ok" ; \
83
echo "test st_all failed - to see failure execute" ; \
84
echo "diff st_all.stdout $(srcdir)/st_all_stdout.ref" ; \
85
ln -fs /bin/false selftest ;\