OLD | NEW |
1 ## Makefile.in for ICU tests | 1 ## Makefile.in for ICU tests |
2 ## Copyright (c) 1999-2013, International Business Machines Corporation and | 2 ## Copyright (c) 1999-2014, International Business Machines Corporation and |
3 ## others. All Rights Reserved. | 3 ## others. All Rights Reserved. |
4 | 4 |
5 ## Source directory information | 5 ## Source directory information |
6 srcdir = @srcdir@ | 6 srcdir = @srcdir@ |
7 top_srcdir = @top_srcdir@ | 7 top_srcdir = @top_srcdir@ |
8 | 8 |
9 top_builddir = .. | 9 top_builddir = .. |
10 | 10 |
11 include $(top_builddir)/icudefs.mk | 11 include $(top_builddir)/icudefs.mk |
12 | 12 |
13 ## Build directory information | 13 ## Build directory information |
14 subdir = test | 14 subdir = test |
15 | 15 |
16 @ICUIO_TRUE@IOTEST = iotest | 16 @ICUIO_TRUE@IOTEST = iotest |
17 | 17 |
| 18 # the letest directory depends on layoutex. |
| 19 # If you have layoutex but not layout, you will be using |
| 20 # harfbuzz. |
| 21 @LAYOUTEX_TRUE@LETEST = letest |
| 22 |
18 # status dir | 23 # status dir |
19 STATUS_TMP = tmp | 24 STATUS_TMP = tmp |
20 STATUS_FULL = $(shell pwd)/$(STATUS_TMP) | 25 STATUS_FULL = $(shell pwd)/$(STATUS_TMP) |
21 | 26 |
22 ## Files to remove for 'make clean' | 27 ## Files to remove for 'make clean' |
23 CLEANFILES = *~ $(STATUS_TMP) | 28 CLEANFILES = *~ $(STATUS_TMP) |
24 | 29 |
25 SUBDIRS = testdata intltest $(IOTEST) cintltst | 30 SUBDIRS = testdata intltest $(IOTEST) cintltst $(LETEST) |
26 | 31 |
27 ## List of phony targets | 32 ## List of phony targets |
28 .PHONY : everything all all-local all-recursive install install-local
\ | 33 .PHONY : everything all all-local all-recursive install install-local
\ |
29 install-recursive clean clean-local clean-recursive distclean \ | 34 install-recursive clean clean-local clean-recursive distclean \ |
30 distclean-local distclean-recursive dist dist-recursive dist-local \ | 35 distclean-local distclean-recursive dist dist-recursive dist-local \ |
31 check check-recursive check-local xcheck xcheck-recursive xcheck-local \ | 36 check check-recursive check-local xcheck xcheck-recursive xcheck-local \ |
32 check-exhaustive check-exhaustive-recursive | 37 check-exhaustive check-exhaustive-recursive |
33 | 38 |
34 ## Clear suffix list | 39 ## Clear suffix list |
35 .SUFFIXES : | 40 .SUFFIXES : |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 STATUS_NUM:=$(shell echo $$$$) | 119 STATUS_NUM:=$(shell echo $$$$) |
115 MYSTATUS_R=$(STATUS_FULL)/status.$(STATUS_NUM).deleteme | 120 MYSTATUS_R=$(STATUS_FULL)/status.$(STATUS_NUM).deleteme |
116 STATUS_FILES=$(SUBDIRS:%=$(MYSTATUS_R).%) | 121 STATUS_FILES=$(SUBDIRS:%=$(MYSTATUS_R).%) |
117 | 122 |
118 pcheck_setup: testdata | 123 pcheck_setup: testdata |
119 @$(MKINSTALLDIRS) $(STATUS_TMP) | 124 @$(MKINSTALLDIRS) $(STATUS_TMP) |
120 $(RMV) "$(MYSTATUS_R)".* | 125 $(RMV) "$(MYSTATUS_R)".* |
121 @echo Beginning parallel make. Output may be interleaved! | 126 @echo Beginning parallel make. Output may be interleaved! |
122 | 127 |
123 $(STATUS_FULL)/status.$(STATUS_NUM).deleteme.%: pcheck_setup | 128 $(STATUS_FULL)/status.$(STATUS_NUM).deleteme.%: pcheck_setup |
124 » @$(MAKE) -C $* TEST_STATUS_FILE=$@ check || ( echo "FAILED: $* (other te
sts may still be running..)" ; touch $@.FAIL ; false ) | 129 » -@$(MAKE) -C $* TEST_STATUS_FILE=$@ check || ( echo "FAILED: $* (other t
ests may still be running..)" ; touch $@ ; cp $@ $@.FAIL ; false ) |
125 » -@touch $@.PASS | 130 » -@[ ! -f $@.FAIL ] && touch $@.PASS && echo "PASSED: $* (other tests may
still be running..)" |
126 » -@echo "PASSED: $* (other tests may still be running..)" | 131 » -@touch $@ |
127 | 132 |
128 # print out status | 133 # print out status |
129 pcheck: $(STATUS_FILES) | 134 pcheck: $(STATUS_FILES) |
130 @goods= ; \ | 135 @goods= ; \ |
131 bads= ; \ | 136 bads= ; \ |
132 » echo "---------------"; \ | 137 » echo "----------------------------------------"; \ |
| 138 » for subdir in $(SUBDIRS); do \ |
| 139 » if [ -s "$(MYSTATUS_R).$$subdir" ]; then \ |
| 140 » echo "-------------" ; \ |
| 141 » echo "| *** FAILING TEST SUMMARY FOR: $$subdir " ;
\ |
| 142 » cat "$(MYSTATUS_R).$$subdir" ; \ |
| 143 » echo "| *** END FAILING TEST SUMMARY FOR: $$subdir" ; \ |
| 144 » $(RMV) "$(MYSTATUS_R).$$subdir" ; \ |
| 145 » fi; \ |
| 146 » done; \ |
133 for subdir in $(SUBDIRS); do \ | 147 for subdir in $(SUBDIRS); do \ |
134 if [ -f "$(MYSTATUS_R).$$subdir.FAIL" ]; \ | 148 if [ -f "$(MYSTATUS_R).$$subdir.FAIL" ]; \ |
135 then \ | 149 then \ |
136 bads="$$bads $$subdir" ; \ | 150 bads="$$bads $$subdir" ; \ |
137 elif [ -f "$(MYSTATUS_R).$$subdir.PASS" ]; \ | 151 elif [ -f "$(MYSTATUS_R).$$subdir.PASS" ]; \ |
138 then \ | 152 then \ |
139 goods="$$goods $$subdir" ; \ | 153 goods="$$goods $$subdir" ; \ |
140 else \ | 154 else \ |
141 echo "*** subtest did not complete - $$subdir" ; \ | 155 echo "*** subtest did not complete - $$subdir" ; \ |
142 bads="$$bads $$subdir" ; \ | 156 bads="$$bads $$subdir" ; \ |
(...skipping 20 matching lines...) Expand all Loading... |
163 | 177 |
164 distclean-local: clean-local | 178 distclean-local: clean-local |
165 $(RMV) Makefile | 179 $(RMV) Makefile |
166 | 180 |
167 xcheck-local check-local: all-local | 181 xcheck-local check-local: all-local |
168 | 182 |
169 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | 183 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
170 cd $(top_builddir) \ | 184 cd $(top_builddir) \ |
171 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | 185 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
172 | 186 |
OLD | NEW |