~ubuntu-branches/ubuntu/trusty/lifelines/trusty

« back to all changes in this revision

Viewing changes to reports/st/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Felipe Augusto van de Wiel (faw)
  • Date: 2007-05-23 23:49:53 UTC
  • mfrom: (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20070523234953-ogno9rnbmth61i7p
Tags: 3.0.50-2etch1
* Changing docs/ll-reportmanual.xml and docs/ll-userguide.xml to fix
  documentation build problems (Closes: #418347).

* lifelines-reports
  - Adding a dependency to lifelines >= 3.0.50 to prevent file conflict.
    (Closes: #405500).

* Updating French translation. Thanks to Bernard Adrian. (Closes: #356671).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This makefile is for the lifelines reports
 
2
 
 
3
AUTOMAKE_OPTIONS = no-dependencies
 
4
 
 
5
# SELFTEST_REPORTS is to hold all parts of the self-test scripts
 
6
SELFTEST_REPORTS = st_all.ll  \
 
7
        st_aux.li             \
 
8
        st_collate.li         \
 
9
        st_collate_8859-1.li  \
 
10
        st_collate_UTF-8.li   \
 
11
        st_convert.li         \
 
12
        st_date.li            \
 
13
        st_db.li              \
 
14
        st_list.li            \
 
15
        st_name.li            \
 
16
        st_number.li          \
 
17
        st_string.li          \
 
18
        st_string_UTF-8.li    \
 
19
        st_table.li
 
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
 
25
TEST_ITER_DB = ti.ged
 
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 \
 
28
                    st_all.stdout
 
29
 
 
30
TESTS = selftest
 
31
pkg_REPORTS = $(SELFTEST_REPORTS) \
 
32
              $(TEST_ITER_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
 
36
 
 
37
LLEXEC = ../../src/liflines/llexec
 
38
LLINES = ../../src/liflines/llines
 
39
 
 
40
.PHONY: local test_iter st_all selftest
 
41
selftest: ti test_iter st_all
 
42
 
 
43
local: $(TEST_ITER_DB) $(TEST_ITER_REPORTS) $(SELFTEST_REPORTS)
 
44
        ln -fs /bin/true selftest 
 
45
        for i in $? ; do \
 
46
            dest=`basename $$i` ;\
 
47
            if [ $$dest != $$i ] ; then \
 
48
                cp $$i $$dest ; \
 
49
            fi ;\
 
50
        done
 
51
 
 
52
ti: local ti.ged $(LLINES)
 
53
        rm -rf ti
 
54
        (echo yurti ; echo yyq) | $(LLINES) ./ti  > /dev/null
 
55
 
 
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\
 
62
                : echo "ok" ; \
 
63
            else \
 
64
                echo "test $$i failed - to see failure execute" ; \
 
65
                echo "diff $$this.out $(srcdir)/$$this.ref" ; \
 
66
                ln -fs /bin/false selftest ;\
 
67
            fi \
 
68
        done
 
69
 
 
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" ; \
 
75
            else \
 
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 ;\
 
79
            fi
 
80
        @if diff st_all.stdout $(srcdir)/st_all_stdout.ref >/dev/null ; then\
 
81
                : echo "test st_all stdout ok" ; \
 
82
            else \
 
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 ;\
 
86
            fi