122
155
n|no|NO) false;; \
123
156
*) (install-info --version) >/dev/null 2>&1;; \
126
red=; grn=; lgn=; blu=; std=
158
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
159
am__tty_colors_dummy = \
160
mgn= red= grn= lgn= blu= brg= std=; \
163
$(am__tty_colors_dummy); \
164
if test "X$(AM_COLOR_TESTS)" = Xno; then \
165
am__color_tests=no; \
166
elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
167
am__color_tests=yes; \
168
elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
169
am__color_tests=yes; \
171
if test $$am__color_tests = yes; then \
181
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
182
am__vpath_adj = case $$p in \
183
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
186
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
188
am__nobase_strip_setup = \
189
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
191
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
192
am__nobase_list = $(am__nobase_strip_setup); \
193
for p in $$list; do echo "$$p $$p"; done | \
194
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
195
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
196
if (++n[$$2] == $(am__install_max)) \
197
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
198
END { for (dir in files) print dir, files[dir] }'
200
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
201
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
202
am__uninstall_files_from_dir = { \
204
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
205
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
206
$(am__cd) "$$dir" && rm -f $$files; }; \
208
am__recheck_rx = ^[ ]*:recheck:[ ]*
209
am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
210
am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
211
# A command that, given a newline-separated list of test names on the
212
# standard input, print the name of the tests that are to be re-run
213
# upon "make recheck".
214
am__list_recheck_tests = $(AWK) '{ \
216
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
220
if ((getline line2 < ($$0 ".log")) < 0) \
224
else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
229
else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
236
close ($$0 ".trs"); \
237
close ($$0 ".log"); \
239
# A command that, given a newline-separated list of test names on the
240
# standard input, create the global log from their .trs and .log files.
241
am__create_global_log = $(AWK) ' \
242
function fatal(msg) \
244
print "fatal: making $@: " msg | "cat >&2"; \
247
function rst_section(header) \
250
len = length(header); \
251
for (i = 1; i <= len; i = i + 1) \
256
copy_in_global_log = 1; \
257
global_test_result = "RUN"; \
258
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
261
fatal("failed to read from " $$0 ".trs"); \
262
if (line ~ /$(am__global_test_result_rx)/) \
264
sub("$(am__global_test_result_rx)", "", line); \
265
sub("[ ]*$$", "", line); \
266
global_test_result = line; \
268
else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
269
copy_in_global_log = 0; \
271
if (copy_in_global_log) \
273
rst_section(global_test_result ": " $$0); \
274
while ((rc = (getline line < ($$0 ".log"))) != 0) \
277
fatal("failed to read from " $$0 ".log"); \
282
close ($$0 ".trs"); \
283
close ($$0 ".log"); \
285
# Restructured Text title.
286
am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
287
# Solaris 10 'make', and several other traditional 'make' implementations,
288
# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
289
# by disabling -e (using the XSI extension "set +e") if it's set.
290
am__sh_e_setup = case $$- in *e*) set +e;; esac
291
# Default flags passed to test drivers.
292
am__common_driver_flags = \
293
--color-tests "$$am__color_tests" \
294
--enable-hard-errors "$$am__enable_hard_errors" \
295
--expect-failure "$$am__expect_failure"
296
# To be inserted before the command running the test. Creates the
297
# directory for the log if needed. Stores in $dir the directory
298
# containing $f, in $tst the test, in $log the log. Executes the
299
# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
300
# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
301
# will run the test scripts (or their associated LOG_COMPILER, if
305
$(am__vpath_adj_setup) $(am__vpath_adj) \
307
srcdir=$(srcdir); export srcdir; \
309
*/*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
312
test "x$$am__odir" = x"." || test -d "$$am__odir" \
313
|| $(MKDIR_P) "$$am__odir" || exit $$?; \
314
if test -f "./$$f"; then dir=./; \
315
elif test -f "$$f"; then dir=; \
316
else dir="$(srcdir)/"; fi; \
317
tst=$$dir$$f; log='$@'; \
318
if test -n '$(DISABLE_HARD_ERRORS)'; then \
319
am__enable_hard_errors=no; \
321
am__enable_hard_errors=yes; \
323
case " $(XFAIL_TESTS) " in \
324
*[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
325
am__expect_failure=yes;; \
327
am__expect_failure=no;; \
329
$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
330
# A shell command to get the names of the tests scripts with any registered
331
# extension removed (i.e., equivalently, the names of the test logs, with
332
# the '.log' extension removed). The result is saved in the shell variable
333
# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
334
# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
335
# since that might cause problem with VPATH rewrites for suffix-less tests.
336
# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
337
am__set_TESTS_bases = \
338
bases='$(TEST_LOGS)'; \
339
bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
341
RECHECK_LOGS = $(TEST_LOGS)
342
AM_RECURSIVE_TARGETS = check recheck
343
TEST_SUITE_LOG = test-suite.log
344
TEST_EXTENSIONS = @EXEEXT@ .test
345
LOG_DRIVER = $(SHELL) $(top_srcdir)/scripts/test-driver
346
LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
352
*) b=`echo '$@' | sed 's/\.log$$//'`; \
357
am__test_logs1 = $(TESTS:=.log)
358
am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
359
TEST_LOGS = $(am__test_logs2:.test.log=.log)
360
TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/scripts/test-driver
361
TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
127
363
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
128
364
ACLOCAL = @ACLOCAL@
307
544
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
308
545
sbuild: $(top_builddir)/config.status $(srcdir)/sbuild.in
309
546
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
317
check-TESTS: $(TESTS)
318
@failed=0; all=0; xfail=0; xpass=0; skip=0; \
319
srcdir=$(srcdir); export srcdir; \
322
if test -n "$$list"; then \
323
for tst in $$list; do \
324
if test -f ./$$tst; then dir=./; \
325
elif test -f $$tst; then dir=; \
326
else dir="$(srcdir)/"; fi; \
327
if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
328
all=`expr $$all + 1`; \
329
case " $(XFAIL_TESTS) " in \
330
*[\ \ ]$$tst[\ \ ]*) \
331
xpass=`expr $$xpass + 1`; \
332
failed=`expr $$failed + 1`; \
333
col=$$red; res=XPASS; \
336
col=$$grn; res=PASS; \
339
elif test $$? -ne 77; then \
340
all=`expr $$all + 1`; \
341
case " $(XFAIL_TESTS) " in \
342
*[\ \ ]$$tst[\ \ ]*) \
343
xfail=`expr $$xfail + 1`; \
344
col=$$lgn; res=XFAIL; \
347
failed=`expr $$failed + 1`; \
348
col=$$red; res=FAIL; \
352
skip=`expr $$skip + 1`; \
353
col=$$blu; res=SKIP; \
355
echo "$${col}$$res$${std}: $$tst"; \
554
# Recover from deleted '.trs' file; this should ensure that
555
# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
556
# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
557
# to avoid problems with "make -n".
560
$(MAKE) $(AM_MAKEFLAGS) $<
562
# Leading 'am--fnord' is there to ensure the list of targets does not
563
# expand to empty, as could happen e.g. with make check TESTS=''.
564
am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
568
$(TEST_SUITE_LOG): $(TEST_LOGS)
569
@$(am__set_TESTS_bases); \
570
am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
571
redo_bases=`for i in $$bases; do \
572
am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
574
if test -n "$$redo_bases"; then \
575
redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
576
redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
577
if $(am__make_dryrun); then :; else \
578
rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
581
if test -n "$$am__remaking_logs"; then \
582
echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
583
"recursion detected" >&2; \
585
am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
587
if $(am__make_dryrun); then :; else \
589
errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
590
for i in $$redo_bases; do \
591
test -f $$i.trs && test -r $$i.trs \
592
|| { echo "$$errmsg $$i.trs" >&2; st=1; }; \
593
test -f $$i.log && test -r $$i.log \
594
|| { echo "$$errmsg $$i.log" >&2; st=1; }; \
357
if test "$$all" -eq 1; then \
364
if test "$$failed" -eq 0; then \
365
if test "$$xfail" -eq 0; then \
366
banner="$$All$$all $$tests passed"; \
368
if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
369
banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
372
if test "$$xpass" -eq 0; then \
373
banner="$$failed of $$all $$tests failed"; \
375
if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
376
banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
381
if test "$$skip" -ne 0; then \
382
if test "$$skip" -eq 1; then \
383
skipped="($$skip test was not run)"; \
385
skipped="($$skip tests were not run)"; \
387
test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
388
dashes="$$skipped"; \
391
if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
392
report="Please report to $(PACKAGE_BUGREPORT)"; \
393
test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
396
dashes=`echo "$$dashes" | sed s/./=/g`; \
397
if test "$$failed" -eq 0; then \
402
echo "$${col}$$dashes$${std}"; \
403
echo "$${col}$$banner$${std}"; \
404
test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
405
test -z "$$report" || echo "$${col}$$report$${std}"; \
406
echo "$${col}$$dashes$${std}"; \
407
test "$$failed" -eq 0; \
596
test $$st -eq 0 || exit 1; \
598
@$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
600
results=`for b in $$bases; do echo $$b.trs; done`; \
601
test -n "$$results" || results=/dev/null; \
602
all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
603
pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
604
fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
605
skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
606
xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
607
xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
608
error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
609
if test `expr $$fail + $$xpass + $$error` -eq 0; then \
614
br='==================='; br=$$br$$br$$br$$br; \
617
if test x"$$1" = x"--maybe-color"; then \
618
maybe_colorize=yes; \
619
elif test x"$$1" = x"--no-color"; then \
622
echo "$@: invalid 'result_count' usage" >&2; exit 4; \
625
desc=$$1 count=$$2; \
626
if test $$maybe_colorize = yes && test $$count -gt 0; then \
627
color_start=$$3 color_end=$$std; \
629
color_start= color_end=; \
631
echo "$${color_start}# $$desc $$count$${color_end}"; \
633
create_testsuite_report () \
635
result_count $$1 "TOTAL:" $$all "$$brg"; \
636
result_count $$1 "PASS: " $$pass "$$grn"; \
637
result_count $$1 "SKIP: " $$skip "$$blu"; \
638
result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
639
result_count $$1 "FAIL: " $$fail "$$red"; \
640
result_count $$1 "XPASS:" $$xpass "$$red"; \
641
result_count $$1 "ERROR:" $$error "$$mgn"; \
644
echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
646
create_testsuite_report --no-color; \
648
echo ".. contents:: :depth: 2"; \
650
for b in $$bases; do echo $$b; done \
651
| $(am__create_global_log); \
652
} >$(TEST_SUITE_LOG).tmp || exit 1; \
653
mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
658
test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
660
echo "$${col}$$br$${std}"; \
661
echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
662
echo "$${col}$$br$${std}"; \
663
create_testsuite_report --maybe-color; \
664
echo "$$col$$br$$std"; \
665
if $$success; then :; else \
666
echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
667
if test -n "$(PACKAGE_BUGREPORT)"; then \
668
echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
670
echo "$$col$$br$$std"; \
675
@list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
676
@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
677
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
678
@set +e; $(am__set_TESTS_bases); \
679
log_list=`for i in $$bases; do echo $$i.log; done`; \
680
trs_list=`for i in $$bases; do echo $$i.trs; done`; \
681
log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
682
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
685
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
686
@set +e; $(am__set_TESTS_bases); \
687
bases=`for i in $$bases; do echo $$i; done \
688
| $(am__list_recheck_tests)` || exit 1; \
689
log_list=`for i in $$bases; do echo $$i.log; done`; \
690
log_list=`echo $$log_list`; \
691
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
692
am__force_recheck=am--force-recheck \
693
TEST_LOGS="$$log_list"; \
695
perl-syntax.log: perl-syntax
698
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
699
--log-file $$b.log --trs-file $$b.trs \
700
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
701
"$$tst" $(AM_TESTS_FD_REDIRECT)
702
sbuild-hold.log: sbuild-hold
705
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
706
--log-file $$b.log --trs-file $$b.trs \
707
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
708
"$$tst" $(AM_TESTS_FD_REDIRECT)
709
sbuild-update.log: sbuild-update
710
@p='sbuild-update'; \
712
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
713
--log-file $$b.log --trs-file $$b.trs \
714
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
715
"$$tst" $(AM_TESTS_FD_REDIRECT)
716
sbuild-upgrade.log: sbuild-upgrade
717
@p='sbuild-upgrade'; \
718
b='sbuild-upgrade'; \
719
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
720
--log-file $$b.log --trs-file $$b.trs \
721
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
722
"$$tst" $(AM_TESTS_FD_REDIRECT)
723
sbuild-distupgrade.log: sbuild-distupgrade
724
@p='sbuild-distupgrade'; \
725
b='sbuild-distupgrade'; \
726
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
727
--log-file $$b.log --trs-file $$b.trs \
728
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
729
"$$tst" $(AM_TESTS_FD_REDIRECT)
730
sbuild-clean.log: sbuild-clean
733
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
734
--log-file $$b.log --trs-file $$b.trs \
735
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
736
"$$tst" $(AM_TESTS_FD_REDIRECT)
737
sbuild-checkpackages.log: sbuild-checkpackages
738
@p='sbuild-checkpackages'; \
739
b='sbuild-checkpackages'; \
740
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
741
--log-file $$b.log --trs-file $$b.trs \
742
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
743
"$$tst" $(AM_TESTS_FD_REDIRECT)
747
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
748
--log-file $$b.log --trs-file $$b.trs \
749
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
750
"$$tst" $(AM_TESTS_FD_REDIRECT)
754
$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
755
--log-file $$b.log --trs-file $$b.trs \
756
$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
757
"$$tst" $(AM_TESTS_FD_REDIRECT)
758
@am__EXEEXT_TRUE@.test$(EXEEXT).log:
759
@am__EXEEXT_TRUE@ @p='$<'; \
760
@am__EXEEXT_TRUE@ $(am__set_b); \
761
@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
762
@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
763
@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
764
@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
410
766
distdir: $(DISTFILES)
411
767
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \