Debian Codegraph @

tests/Makefile.in

raw
1 # Makefile.in generated by automake 1.15 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
5
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 #
18 # Makefile.am
19 #
20 # Copyright (C) 2011-2012 Kamal Mostafa <[email protected]>
21 #
22 # This program is free software: you can redistribute it and/or modify
23 # it under the terms of the GNU General Public License as published by
24 # the Free Software Foundation, either version 3 of the License, or
25 # (at your option) any later version.
26 #
27 # This program is distributed in the hope that it will be useful,
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 # GNU General Public License for more details.
31 #
32 # You should have received a copy of the GNU General Public License
33 # along with this program. If not, see <http://www.gnu.org/licenses/>.
34 #
35 VPATH = @srcdir@
36 am__is_gnu_make = { \
37 if test -z '$(MAKELEVEL)'; then \
38 false; \
39 elif test -n '$(MAKE_HOST)'; then \
40 true; \
41 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
42 true; \
43 else \
44 false; \
45 fi; \
46 }
47 am__make_running_with_option = \
48 case $${target_option-} in \
49 ?) ;; \
50 *) echo "am__make_running_with_option: internal error: invalid" \
51 "target option '$${target_option-}' specified" >&2; \
52 exit 1;; \
53 esac; \
54 has_opt=no; \
55 sane_makeflags=$$MAKEFLAGS; \
56 if $(am__is_gnu_make); then \
57 sane_makeflags=$$MFLAGS; \
58 else \
59 case $$MAKEFLAGS in \
60 *\\[\ \ ]*) \
61 bs=\\; \
62 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
63 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
64 esac; \
65 fi; \
66 skip_next=no; \
67 strip_trailopt () \
68 { \
69 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
70 }; \
71 for flg in $$sane_makeflags; do \
72 test $$skip_next = yes && { skip_next=no; continue; }; \
73 case $$flg in \
74 *=*|--*) continue;; \
75 -*I) strip_trailopt 'I'; skip_next=yes;; \
76 -*I?*) strip_trailopt 'I';; \
77 -*O) strip_trailopt 'O'; skip_next=yes;; \
78 -*O?*) strip_trailopt 'O';; \
79 -*l) strip_trailopt 'l'; skip_next=yes;; \
80 -*l?*) strip_trailopt 'l';; \
81 -[dEDm]) skip_next=yes;; \
82 -[JT]) skip_next=yes;; \
83 esac; \
84 case $$flg in \
85 *$$target_option*) has_opt=yes; break;; \
86 esac; \
87 done; \
88 test $$has_opt = yes
89 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
90 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
91 pkgdatadir = $(datadir)/@PACKAGE@
92 pkgincludedir = $(includedir)/@PACKAGE@
93 pkglibdir = $(libdir)/@PACKAGE@
94 pkglibexecdir = $(libexecdir)/@PACKAGE@
95 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
96 install_sh_DATA = $(install_sh) -c -m 644
97 install_sh_PROGRAM = $(install_sh) -c
98 install_sh_SCRIPT = $(install_sh) -c
99 INSTALL_HEADER = $(INSTALL_DATA)
100 transform = $(program_transform_name)
101 NORMAL_INSTALL = :
102 PRE_INSTALL = :
103 POST_INSTALL = :
104 NORMAL_UNINSTALL = :
105 PRE_UNINSTALL = :
106 POST_UNINSTALL = :
107 subdir = tests
108 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
109 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
110 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
111 $(ACLOCAL_M4)
112 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
113 mkinstalldirs = $(install_sh) -d
114 CONFIG_HEADER = $(top_builddir)/config.h
115 CONFIG_CLEAN_FILES =
116 CONFIG_CLEAN_VPATH_FILES =
117 AM_V_P = $(am__v_P_@AM_V@)
118 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
119 am__v_P_0 = false
120 am__v_P_1 = :
121 AM_V_GEN = $(am__v_GEN_@AM_V@)
122 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
123 am__v_GEN_0 = @echo " GEN " $@;
124 am__v_GEN_1 =
125 AM_V_at = $(am__v_at_@AM_V@)
126 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
127 am__v_at_0 = @
128 am__v_at_1 =
129 SOURCES =
130 DIST_SOURCES =
131 am__can_run_installinfo = \
132 case $$AM_UPDATE_INFO_DIR in \
133 n|no|NO) false;; \
134 *) (install-info --version) >/dev/null 2>&1;; \
135 esac
136 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
137 am__tty_colors_dummy = \
138 mgn= red= grn= lgn= blu= brg= std=; \
139 am__color_tests=no
140 am__tty_colors = { \
141 $(am__tty_colors_dummy); \
142 if test "X$(AM_COLOR_TESTS)" = Xno; then \
143 am__color_tests=no; \
144 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
145 am__color_tests=yes; \
146 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
147 am__color_tests=yes; \
148 fi; \
149 if test $$am__color_tests = yes; then \
150 red=''; \
151 grn=''; \
152 lgn=''; \
153 blu=''; \
154 mgn=''; \
155 brg=''; \
156 std=''; \
157 fi; \
158 }
159 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
160 am__vpath_adj = case $$p in \
161 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
162 *) f=$$p;; \
163 esac;
164 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
165 am__install_max = 40
166 am__nobase_strip_setup = \
167 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
168 am__nobase_strip = \
169 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
170 am__nobase_list = $(am__nobase_strip_setup); \
171 for p in $$list; do echo "$$p $$p"; done | \
172 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
173 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
174 if (++n[$$2] == $(am__install_max)) \
175 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
176 END { for (dir in files) print dir, files[dir] }'
177 am__base_list = \
178 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
179 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
180 am__uninstall_files_from_dir = { \
181 test -z "$$files" \
182 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
183 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
184 $(am__cd) "$$dir" && rm -f $$files; }; \
185 }
186 am__recheck_rx = ^[ ]*:recheck:[ ]*
187 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
188 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
189 # A command that, given a newline-separated list of test names on the
190 # standard input, print the name of the tests that are to be re-run
191 # upon "make recheck".
192 am__list_recheck_tests = $(AWK) '{ \
193 recheck = 1; \
194 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
195 { \
196 if (rc < 0) \
197 { \
198 if ((getline line2 < ($$0 ".log")) < 0) \
199 recheck = 0; \
200 break; \
201 } \
202 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
203 { \
204 recheck = 0; \
205 break; \
206 } \
207 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
208 { \
209 break; \
210 } \
211 }; \
212 if (recheck) \
213 print $$0; \
214 close ($$0 ".trs"); \
215 close ($$0 ".log"); \
216 }'
217 # A command that, given a newline-separated list of test names on the
218 # standard input, create the global log from their .trs and .log files.
219 am__create_global_log = $(AWK) ' \
220 function fatal(msg) \
221 { \
222 print "fatal: making $@: " msg | "cat >&2"; \
223 exit 1; \
224 } \
225 function rst_section(header) \
226 { \
227 print header; \
228 len = length(header); \
229 for (i = 1; i <= len; i = i + 1) \
230 printf "="; \
231 printf "\n\n"; \
232 } \
233 { \
234 copy_in_global_log = 1; \
235 global_test_result = "RUN"; \
236 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
237 { \
238 if (rc < 0) \
239 fatal("failed to read from " $$0 ".trs"); \
240 if (line ~ /$(am__global_test_result_rx)/) \
241 { \
242 sub("$(am__global_test_result_rx)", "", line); \
243 sub("[ ]*$$", "", line); \
244 global_test_result = line; \
245 } \
246 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
247 copy_in_global_log = 0; \
248 }; \
249 if (copy_in_global_log) \
250 { \
251 rst_section(global_test_result ": " $$0); \
252 while ((rc = (getline line < ($$0 ".log"))) != 0) \
253 { \
254 if (rc < 0) \
255 fatal("failed to read from " $$0 ".log"); \
256 print line; \
257 }; \
258 printf "\n"; \
259 }; \
260 close ($$0 ".trs"); \
261 close ($$0 ".log"); \
262 }'
263 # Restructured Text title.
264 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
265 # Solaris 10 'make', and several other traditional 'make' implementations,
266 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
267 # by disabling -e (using the XSI extension "set +e") if it's set.
268 am__sh_e_setup = case $$- in *e*) set +e;; esac
269 # Default flags passed to test drivers.
270 am__common_driver_flags = \
271 --color-tests "$$am__color_tests" \
272 --enable-hard-errors "$$am__enable_hard_errors" \
273 --expect-failure "$$am__expect_failure"
274 # To be inserted before the command running the test. Creates the
275 # directory for the log if needed. Stores in $dir the directory
276 # containing $f, in $tst the test, in $log the log. Executes the
277 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
278 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
279 # will run the test scripts (or their associated LOG_COMPILER, if
280 # thy have one).
281 am__check_pre = \
282 $(am__sh_e_setup); \
283 $(am__vpath_adj_setup) $(am__vpath_adj) \
284 $(am__tty_colors); \
285 srcdir=$(srcdir); export srcdir; \
286 case "$@" in \
287 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
288 *) am__odir=.;; \
289 esac; \
290 test "x$$am__odir" = x"." || test -d "$$am__odir" \
291 || $(MKDIR_P) "$$am__odir" || exit $$?; \
292 if test -f "./$$f"; then dir=./; \
293 elif test -f "$$f"; then dir=; \
294 else dir="$(srcdir)/"; fi; \
295 tst=$$dir$$f; log='$@'; \
296 if test -n '$(DISABLE_HARD_ERRORS)'; then \
297 am__enable_hard_errors=no; \
298 else \
299 am__enable_hard_errors=yes; \
300 fi; \
301 case " $(XFAIL_TESTS) " in \
302 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
303 am__expect_failure=yes;; \
304 *) \
305 am__expect_failure=no;; \
306 esac; \
307 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
308 # A shell command to get the names of the tests scripts with any registered
309 # extension removed (i.e., equivalently, the names of the test logs, with
310 # the '.log' extension removed). The result is saved in the shell variable
311 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
312 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
313 # since that might cause problem with VPATH rewrites for suffix-less tests.
314 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
315 am__set_TESTS_bases = \
316 bases='$(TEST_LOGS)'; \
317 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
318 bases=`echo $$bases`
319 RECHECK_LOGS = $(TEST_LOGS)
320 AM_RECURSIVE_TARGETS = check recheck
321 TEST_SUITE_LOG = test-suite.log
322 TEST_EXTENSIONS = @EXEEXT@ .test
323 am__test_logs1 = $(TESTS:=.log)
324 am__test_logs2 = $(am__test_logs1:@[email protected]=.log)
325 TEST_LOGS = $(am__test_logs2:.test.log=.log)
326 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
327 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
328 $(TEST_LOG_FLAGS)
329 am__set_b = \
330 case '$@' in \
331 */*) \
332 case '$*' in \
333 */*) b='$*';; \
334 *) b=`echo '$@' | sed 's/\.log$$//'`; \
335 esac;; \
336 *) \
337 b='$*';; \
338 esac
339 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
340 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
341 ACLOCAL = @ACLOCAL@
342 AMTAR = @AMTAR@
343 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
344 AUTOCONF = @AUTOCONF@
345 AUTOHEADER = @AUTOHEADER@
346 AUTOMAKE = @AUTOMAKE@
347 AWK = @AWK@
348 CC = @CC@
349 CCDEPMODE = @CCDEPMODE@
350 CFLAGS = @CFLAGS@
351 CPPFLAGS = @CPPFLAGS@
352 CYGPATH_W = @CYGPATH_W@
353 DEFS = @DEFS@
354 DEPDIR = @DEPDIR@
355 DEPS_CFLAGS = @DEPS_CFLAGS@
356 DEPS_LIBS = @DEPS_LIBS@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 PKG_CONFIG = @PKG_CONFIG@
382 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
383 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
384 SET_MAKE = @SET_MAKE@
385 SHELL = @SHELL@
386 STRIP = @STRIP@
387 VERSION = @VERSION@
388 abs_builddir = @abs_builddir@
389 abs_srcdir = @abs_srcdir@
390 abs_top_builddir = @abs_top_builddir@
391 abs_top_srcdir = @abs_top_srcdir@
392 ac_ct_CC = @ac_ct_CC@
393 am__include = @am__include@
394 am__leading_dot = @am__leading_dot@
395 am__quote = @am__quote@
396 am__tar = @am__tar@
397 am__untar = @am__untar@
398 auto_find_tests = @auto_find_tests@
399 bindir = @bindir@
400 build_alias = @build_alias@
401 builddir = @builddir@
402 datadir = @datadir@
403 datarootdir = @datarootdir@
404 docdir = @docdir@
405 dvidir = @dvidir@
406 exec_prefix = @exec_prefix@
407 host_alias = @host_alias@
408 htmldir = @htmldir@
409 includedir = @includedir@
410 infodir = @infodir@
411 install_sh = @install_sh@
412 libdir = @libdir@
413 libexecdir = @libexecdir@
414 localedir = @localedir@
415 localstatedir = @localstatedir@
416 mandir = @mandir@
417 mkdir_p = @mkdir_p@
418 oldincludedir = @oldincludedir@
419 pdfdir = @pdfdir@
420 prefix = @prefix@
421 program_transform_name = @program_transform_name@
422 psdir = @psdir@
423 runstatedir = @runstatedir@
424 sbindir = @sbindir@
425 sharedstatedir = @sharedstatedir@
426 srcdir = @srcdir@
427 sysconfdir = @sysconfdir@
428 target_alias = @target_alias@
429 top_build_prefix = @top_build_prefix@
430 top_builddir = @top_builddir@
431 top_srcdir = @top_srcdir@
432 EXTRA_DIST = \
433 run-self-tests \
434 self-test \
435 *.test \
436 testdata-*
437
438 TESTS = @auto_find_tests@
439 all: all-am
440
441 .SUFFIXES:
442 .SUFFIXES: .log .test .test$(EXEEXT) .trs
443 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
444 @for dep in $?; do \
445 case '$(am__configure_deps)' in \
446 *$$dep*) \
447 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
448 && { if test -f $@; then exit 0; else break; fi; }; \
449 exit 1;; \
450 esac; \
451 done; \
452 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
453 $(am__cd) $(top_srcdir) && \
454 $(AUTOMAKE) --gnu tests/Makefile
455 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
456 @case '$?' in \
457 *config.status*) \
458 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
459 *) \
460 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
461 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
462 esac;
463
464 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
465 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
466
467 $(top_srcdir)/configure: $(am__configure_deps)
468 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
469 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
470 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
471 $(am__aclocal_m4_deps):
472 tags TAGS:
473
474 ctags CTAGS:
475
476 cscope cscopelist:
477
478
479 # Recover from deleted '.trs' file; this should ensure that
480 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
481 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
482 # to avoid problems with "make -n".
483 .log.trs:
484 rm -f $< $@
485 $(MAKE) $(AM_MAKEFLAGS) $<
486
487 # Leading 'am--fnord' is there to ensure the list of targets does not
488 # expand to empty, as could happen e.g. with make check TESTS=''.
489 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
490 am--force-recheck:
491 @:
492
493 $(TEST_SUITE_LOG): $(TEST_LOGS)
494 @$(am__set_TESTS_bases); \
495 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
496 redo_bases=`for i in $$bases; do \
497 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
498 done`; \
499 if test -n "$$redo_bases"; then \
500 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
501 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
502 if $(am__make_dryrun); then :; else \
503 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
504 fi; \
505 fi; \
506 if test -n "$$am__remaking_logs"; then \
507 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
508 "recursion detected" >&2; \
509 elif test -n "$$redo_logs"; then \
510 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
511 fi; \
512 if $(am__make_dryrun); then :; else \
513 st=0; \
514 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
515 for i in $$redo_bases; do \
516 test -f $$i.trs && test -r $$i.trs \
517 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
518 test -f $$i.log && test -r $$i.log \
519 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
520 done; \
521 test $$st -eq 0 || exit 1; \
522 fi
523 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
524 ws='[ ]'; \
525 results=`for b in $$bases; do echo $$b.trs; done`; \
526 test -n "$$results" || results=/dev/null; \
527 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
528 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
529 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
530 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
531 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
532 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
533 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
534 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
535 success=true; \
536 else \
537 success=false; \
538 fi; \
539 br='==================='; br=$$br$$br$$br$$br; \
540 result_count () \
541 { \
542 if test x"$$1" = x"--maybe-color"; then \
543 maybe_colorize=yes; \
544 elif test x"$$1" = x"--no-color"; then \
545 maybe_colorize=no; \
546 else \
547 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
548 fi; \
549 shift; \
550 desc=$$1 count=$$2; \
551 if test $$maybe_colorize = yes && test $$count -gt 0; then \
552 color_start=$$3 color_end=$$std; \
553 else \
554 color_start= color_end=; \
555 fi; \
556 echo "$${color_start}# $$desc $$count$${color_end}"; \
557 }; \
558 create_testsuite_report () \
559 { \
560 result_count $$1 "TOTAL:" $$all "$$brg"; \
561 result_count $$1 "PASS: " $$pass "$$grn"; \
562 result_count $$1 "SKIP: " $$skip "$$blu"; \
563 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
564 result_count $$1 "FAIL: " $$fail "$$red"; \
565 result_count $$1 "XPASS:" $$xpass "$$red"; \
566 result_count $$1 "ERROR:" $$error "$$mgn"; \
567 }; \
568 { \
569 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
570 $(am__rst_title); \
571 create_testsuite_report --no-color; \
572 echo; \
573 echo ".. contents:: :depth: 2"; \
574 echo; \
575 for b in $$bases; do echo $$b; done \
576 | $(am__create_global_log); \
577 } >$(TEST_SUITE_LOG).tmp || exit 1; \
578 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
579 if $$success; then \
580 col="$$grn"; \
581 else \
582 col="$$red"; \
583 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
584 fi; \
585 echo "$${col}$$br$${std}"; \
586 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
587 echo "$${col}$$br$${std}"; \
588 create_testsuite_report --maybe-color; \
589 echo "$$col$$br$$std"; \
590 if $$success; then :; else \
591 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
592 if test -n "$(PACKAGE_BUGREPORT)"; then \
593 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
594 fi; \
595 echo "$$col$$br$$std"; \
596 fi; \
597 $$success || exit 1
598
599 check-TESTS:
600 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
601 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
602 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
603 @set +e; $(am__set_TESTS_bases); \
604 log_list=`for i in $$bases; do echo $$i.log; done`; \
605 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
606 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
607 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
608 exit $$?;
609 recheck: all
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 bases=`for i in $$bases; do echo $$i; done \
613 | $(am__list_recheck_tests)` || exit 1; \
614 log_list=`for i in $$bases; do echo $$i.log; done`; \
615 log_list=`echo $$log_list`; \
616 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
617 am__force_recheck=am--force-recheck \
618 TEST_LOGS="$$log_list"; \
619 exit $$?
620 .test.log:
621 @p='$<'; \
622 $(am__set_b); \
623 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
624 --log-file $$b.log --trs-file $$b.trs \
625 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
626 "$$tst" $(AM_TESTS_FD_REDIRECT)
627 @[email protected]$(EXEEXT).log:
628 @am__EXEEXT_TRUE@ @p='$<'; \
629 @am__EXEEXT_TRUE@ $(am__set_b); \
630 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
631 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
632 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
633 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
634
635 distdir: $(DISTFILES)
636 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
637 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
638 list='$(DISTFILES)'; \
639 dist_files=`for file in $$list; do echo $$file; done | \
640 sed -e "s|^$$srcdirstrip/||;t" \
641 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
642 case $$dist_files in \
643 */*) $(MKDIR_P) `echo "$$dist_files" | \
644 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
645 sort -u` ;; \
646 esac; \
647 for file in $$dist_files; do \
648 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
649 if test -d $$d/$$file; then \
650 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
651 if test -d "$(distdir)/$$file"; then \
652 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
653 fi; \
654 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
655 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
656 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
657 fi; \
658 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
659 else \
660 test -f "$(distdir)/$$file" \
661 || cp -p $$d/$$file "$(distdir)/$$file" \
662 || exit 1; \
663 fi; \
664 done
665 check-am: all-am
666 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
667 check: check-am
668 all-am: Makefile
669 installdirs:
670 install: install-am
671 install-exec: install-exec-am
672 install-data: install-data-am
673 uninstall: uninstall-am
674
675 install-am: all-am
676 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
677
678 installcheck: installcheck-am
679 install-strip:
680 if test -z '$(STRIP)'; then \
681 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
682 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
683 install; \
684 else \
685 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
686 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
687 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
688 fi
689 mostlyclean-generic:
690 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
691 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
692 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
693
694 clean-generic:
695
696 distclean-generic:
697 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
698 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
699
700 maintainer-clean-generic:
701 @echo "This command is intended for maintainers to use"
702 @echo "it deletes files that may require special tools to rebuild."
703 clean: clean-am
704
705 clean-am: clean-generic mostlyclean-am
706
707 distclean: distclean-am
708 -rm -f Makefile
709 distclean-am: clean-am distclean-generic
710
711 dvi: dvi-am
712
713 dvi-am:
714
715 html: html-am
716
717 html-am:
718
719 info: info-am
720
721 info-am:
722
723 install-data-am:
724
725 install-dvi: install-dvi-am
726
727 install-dvi-am:
728
729 install-exec-am:
730
731 install-html: install-html-am
732
733 install-html-am:
734
735 install-info: install-info-am
736
737 install-info-am:
738
739 install-man:
740
741 install-pdf: install-pdf-am
742
743 install-pdf-am:
744
745 install-ps: install-ps-am
746
747 install-ps-am:
748
749 installcheck-am:
750
751 maintainer-clean: maintainer-clean-am
752 -rm -f Makefile
753 maintainer-clean-am: distclean-am maintainer-clean-generic
754
755 mostlyclean: mostlyclean-am
756
757 mostlyclean-am: mostlyclean-generic
758
759 pdf: pdf-am
760
761 pdf-am:
762
763 ps: ps-am
764
765 ps-am:
766
767 uninstall-am:
768
769 .MAKE: check-am install-am install-strip
770
771 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
772 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
773 dvi-am html html-am info info-am install install-am \
774 install-data install-data-am install-dvi install-dvi-am \
775 install-exec install-exec-am install-html install-html-am \
776 install-info install-info-am install-man install-pdf \
777 install-pdf-am install-ps install-ps-am install-strip \
778 installcheck installcheck-am installdirs maintainer-clean \
779 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
780 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
781
782 .PRECIOUS: Makefile
783
784
785 # Tell versions [3.59,3.63) of GNU make to not export all variables.
786 # Otherwise a system limit (for SysV at least) may be exceeded.
787 .NOEXPORT: