18
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19
am__make_running_with_option = \
20
case $${target_option-} in \
22
*) echo "am__make_running_with_option: internal error: invalid" \
23
"target option '$${target_option-}' specified" >&2; \
27
sane_makeflags=$$MAKEFLAGS; \
28
if $(am__is_gnu_make); then \
29
sane_makeflags=$$MFLAGS; \
21
31
case $$MAKEFLAGS in \
23
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26
for am__flg in $$MAKEFLAGS; do \
29
*n*) am__dry=yes; break;; \
33
test $$am__dry = yes; \
34
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
41
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
43
for flg in $$sane_makeflags; do \
44
test $$skip_next = yes && { skip_next=no; continue; }; \
47
-*I) strip_trailopt 'I'; skip_next=yes;; \
48
-*I?*) strip_trailopt 'I';; \
49
-*O) strip_trailopt 'O'; skip_next=yes;; \
50
-*O?*) strip_trailopt 'O';; \
51
-*l) strip_trailopt 'l'; skip_next=yes;; \
52
-*l?*) strip_trailopt 'l';; \
53
-[dEDm]) skip_next=yes;; \
54
-[JT]) skip_next=yes;; \
57
*$$target_option*) has_opt=yes; break;; \
61
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
35
63
pkgdatadir = $(datadir)/@PACKAGE@
36
64
pkgincludedir = $(includedir)/@PACKAGE@
37
65
pkglibdir = $(libdir)/@PACKAGE@
117
146
am__installdirs = "$(DESTDIR)$(stylesdir)"
118
147
DATA = $(styles_DATA)
148
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
119
149
am__tty_colors_dummy = \
120
150
mgn= red= grn= lgn= blu= brg= std=; \
121
151
am__color_tests=no
122
am__tty_colors = $(am__tty_colors_dummy)
153
$(am__tty_colors_dummy); \
154
if test "X$(AM_COLOR_TESTS)" = Xno; then \
155
am__color_tests=no; \
156
elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
157
am__color_tests=yes; \
158
elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
159
am__color_tests=yes; \
161
if test $$am__color_tests = yes; then \
171
am__recheck_rx = ^[ ]*:recheck:[ ]*
172
am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
173
am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
174
# A command that, given a newline-separated list of test names on the
175
# standard input, print the name of the tests that are to be re-run
176
# upon "make recheck".
177
am__list_recheck_tests = $(AWK) '{ \
179
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
183
if ((getline line2 < ($$0 ".log")) < 0) \
187
else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
192
else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
199
close ($$0 ".trs"); \
200
close ($$0 ".log"); \
202
# A command that, given a newline-separated list of test names on the
203
# standard input, create the global log from their .trs and .log files.
204
am__create_global_log = $(AWK) ' \
205
function fatal(msg) \
207
print "fatal: making $@: " msg | "cat >&2"; \
210
function rst_section(header) \
213
len = length(header); \
214
for (i = 1; i <= len; i = i + 1) \
219
copy_in_global_log = 1; \
220
global_test_result = "RUN"; \
221
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
224
fatal("failed to read from " $$0 ".trs"); \
225
if (line ~ /$(am__global_test_result_rx)/) \
227
sub("$(am__global_test_result_rx)", "", line); \
228
sub("[ ]*$$", "", line); \
229
global_test_result = line; \
231
else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
232
copy_in_global_log = 0; \
234
if (copy_in_global_log) \
236
rst_section(global_test_result ": " $$0); \
237
while ((rc = (getline line < ($$0 ".log"))) != 0) \
240
fatal("failed to read from " $$0 ".log"); \
245
close ($$0 ".trs"); \
246
close ($$0 ".log"); \
248
# Restructured Text title.
249
am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
250
# Solaris 10 'make', and several other traditional 'make' implementations,
251
# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
252
# by disabling -e (using the XSI extension "set +e") if it's set.
253
am__sh_e_setup = case $$- in *e*) set +e;; esac
254
# Default flags passed to test drivers.
255
am__common_driver_flags = \
256
--color-tests "$$am__color_tests" \
257
--enable-hard-errors "$$am__enable_hard_errors" \
258
--expect-failure "$$am__expect_failure"
259
# To be inserted before the command running the test. Creates the
260
# directory for the log if needed. Stores in $dir the directory
261
# containing $f, in $tst the test, in $log the log. Executes the
262
# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
263
# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
264
# will run the test scripts (or their associated LOG_COMPILER, if
268
$(am__vpath_adj_setup) $(am__vpath_adj) \
270
srcdir=$(srcdir); export srcdir; \
272
*/*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
275
test "x$$am__odir" = x"." || test -d "$$am__odir" \
276
|| $(MKDIR_P) "$$am__odir" || exit $$?; \
277
if test -f "./$$f"; then dir=./; \
278
elif test -f "$$f"; then dir=; \
279
else dir="$(srcdir)/"; fi; \
280
tst=$$dir$$f; log='$@'; \
281
if test -n '$(DISABLE_HARD_ERRORS)'; then \
282
am__enable_hard_errors=no; \
284
am__enable_hard_errors=yes; \
286
case " $(XFAIL_TESTS) " in \
287
*[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
288
am__expect_failure=yes;; \
290
am__expect_failure=no;; \
292
$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
293
# A shell command to get the names of the tests scripts with any registered
294
# extension removed (i.e., equivalently, the names of the test logs, with
295
# the '.log' extension removed). The result is saved in the shell variable
296
# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
297
# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
298
# since that might cause problem with VPATH rewrites for suffix-less tests.
299
# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
300
am__set_TESTS_bases = \
301
bases='$(TEST_LOGS)'; \
302
bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
304
RECHECK_LOGS = $(TEST_LOGS)
305
AM_RECURSIVE_TARGETS = check recheck
306
TEST_SUITE_LOG = test-suite.log
307
TEST_EXTENSIONS = @EXEEXT@ .test
308
LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
309
LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
315
*) b=`echo '$@' | sed 's/\.log$$//'`; \
320
am__test_logs1 = $(TESTS:=.log)
321
am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
322
TEST_LOGS = $(am__test_logs2:.test.log=.log)
323
TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
324
TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
123
326
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
124
327
ABS_TOP_SRCDIR = @ABS_TOP_SRCDIR@
125
328
ACLOCAL = @ACLOCAL@
377
581
@list='$(styles_DATA)'; test -n "$(stylesdir)" || list=; \
378
582
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
379
583
dir='$(DESTDIR)$(stylesdir)'; $(am__uninstall_files_from_dir)
386
588
cscope cscopelist:
389
check-TESTS: $(TESTS)
390
@failed=0; all=0; xfail=0; xpass=0; skip=0; \
391
srcdir=$(srcdir); export srcdir; \
394
if test -n "$$list"; then \
395
for tst in $$list; do \
396
if test -f ./$$tst; then dir=./; \
397
elif test -f $$tst; then dir=; \
398
else dir="$(srcdir)/"; fi; \
399
if $(TESTS_ENVIRONMENT) $${dir}$$tst $(AM_TESTS_FD_REDIRECT); then \
400
all=`expr $$all + 1`; \
401
case " $(XFAIL_TESTS) " in \
402
*[\ \ ]$$tst[\ \ ]*) \
403
xpass=`expr $$xpass + 1`; \
404
failed=`expr $$failed + 1`; \
405
col=$$red; res=XPASS; \
408
col=$$grn; res=PASS; \
411
elif test $$? -ne 77; then \
412
all=`expr $$all + 1`; \
413
case " $(XFAIL_TESTS) " in \
414
*[\ \ ]$$tst[\ \ ]*) \
415
xfail=`expr $$xfail + 1`; \
416
col=$$lgn; res=XFAIL; \
419
failed=`expr $$failed + 1`; \
420
col=$$red; res=FAIL; \
424
skip=`expr $$skip + 1`; \
425
col=$$blu; res=SKIP; \
427
echo "$${col}$$res$${std}: $$tst"; \
591
# Recover from deleted '.trs' file; this should ensure that
592
# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
593
# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
594
# to avoid problems with "make -n".
597
$(MAKE) $(AM_MAKEFLAGS) $<
599
# Leading 'am--fnord' is there to ensure the list of targets does not
600
# expand to empty, as could happen e.g. with make check TESTS=''.
601
am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
605
$(TEST_SUITE_LOG): $(TEST_LOGS)
606
@$(am__set_TESTS_bases); \
607
am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
608
redo_bases=`for i in $$bases; do \
609
am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
611
if test -n "$$redo_bases"; then \
612
redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
613
redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
614
if $(am__make_dryrun); then :; else \
615
rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
618
if test -n "$$am__remaking_logs"; then \
619
echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
620
"recursion detected" >&2; \
622
am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
624
if $(am__make_dryrun); then :; else \
626
errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
627
for i in $$redo_bases; do \
628
test -f $$i.trs && test -r $$i.trs \
629
|| { echo "$$errmsg $$i.trs" >&2; st=1; }; \
630
test -f $$i.log && test -r $$i.log \
631
|| { echo "$$errmsg $$i.log" >&2; st=1; }; \
429
if test "$$all" -eq 1; then \
436
if test "$$failed" -eq 0; then \
437
if test "$$xfail" -eq 0; then \
438
banner="$$All$$all $$tests passed"; \
440
if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
441
banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
444
if test "$$xpass" -eq 0; then \
445
banner="$$failed of $$all $$tests failed"; \
447
if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
448
banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
453
if test "$$skip" -ne 0; then \
454
if test "$$skip" -eq 1; then \
455
skipped="($$skip test was not run)"; \
457
skipped="($$skip tests were not run)"; \
459
test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
460
dashes="$$skipped"; \
463
if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
464
report="Please report to $(PACKAGE_BUGREPORT)"; \
465
test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
468
dashes=`echo "$$dashes" | sed s/./=/g`; \
469
if test "$$failed" -eq 0; then \
474
echo "$${col}$$dashes$${std}"; \
475
echo "$${col}$$banner$${std}"; \
476
test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
477
test -z "$$report" || echo "$${col}$$report$${std}"; \
478
echo "$${col}$$dashes$${std}"; \
479
test "$$failed" -eq 0; \
633
test $$st -eq 0 || exit 1; \
635
@$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
637
results=`for b in $$bases; do echo $$b.trs; done`; \
638
test -n "$$results" || results=/dev/null; \
639
all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
640
pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
641
fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
642
skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
643
xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
644
xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
645
error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
646
if test `expr $$fail + $$xpass + $$error` -eq 0; then \
651
br='==================='; br=$$br$$br$$br$$br; \
654
if test x"$$1" = x"--maybe-color"; then \
655
maybe_colorize=yes; \
656
elif test x"$$1" = x"--no-color"; then \
659
echo "$@: invalid 'result_count' usage" >&2; exit 4; \
662
desc=$$1 count=$$2; \
663
if test $$maybe_colorize = yes && test $$count -gt 0; then \
664
color_start=$$3 color_end=$$std; \
666
color_start= color_end=; \
668
echo "$${color_start}# $$desc $$count$${color_end}"; \
670
create_testsuite_report () \
672
result_count $$1 "TOTAL:" $$all "$$brg"; \
673
result_count $$1 "PASS: " $$pass "$$grn"; \
674
result_count $$1 "SKIP: " $$skip "$$blu"; \
675
result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
676
result_count $$1 "FAIL: " $$fail "$$red"; \
677
result_count $$1 "XPASS:" $$xpass "$$red"; \
678
result_count $$1 "ERROR:" $$error "$$mgn"; \
681
echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
683
create_testsuite_report --no-color; \
685
echo ".. contents:: :depth: 2"; \
687
for b in $$bases; do echo $$b; done \
688
| $(am__create_global_log); \
689
} >$(TEST_SUITE_LOG).tmp || exit 1; \
690
mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
695
test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
697
echo "$${col}$$br$${std}"; \
698
echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
699
echo "$${col}$$br$${std}"; \
700
create_testsuite_report --maybe-color; \
701
echo "$$col$$br$$std"; \
702
if $$success; then :; else \
703
echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
704
if test -n "$(PACKAGE_BUGREPORT)"; then \
705
echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
707
echo "$$col$$br$$std"; \
712
@list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
713
@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
714
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
715
@set +e; $(am__set_TESTS_bases); \
716
log_list=`for i in $$bases; do echo $$i.log; done`; \
717
trs_list=`for i in $$bases; do echo $$i.trs; done`; \
718
log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
719
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
722
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
723
@set +e; $(am__set_TESTS_bases); \
724
bases=`for i in $$bases; do echo $$i; done \
725
| $(am__list_recheck_tests)` || exit 1; \
726
log_list=`for i in $$bases; do echo $$i.log; done`; \
727
log_list=`echo $$log_list`; \
728
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
729
am__force_recheck=am--force-recheck \
730
TEST_LOGS="$$log_list"; \
732
check-style.sh.log: check-style.sh
733
@p='check-style.sh'; \
734
b='check-style.sh'; \
735
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
736
--log-file $$b.log --trs-file $$b.trs \
737
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
738
"$$tst" $(AM_TESTS_FD_REDIRECT)
742
$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
743
--log-file $$b.log --trs-file $$b.trs \
744
$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
745
"$$tst" $(AM_TESTS_FD_REDIRECT)
746
@am__EXEEXT_TRUE@.test$(EXEEXT).log:
747
@am__EXEEXT_TRUE@ @p='$<'; \
748
@am__EXEEXT_TRUE@ $(am__set_b); \
749
@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
750
@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
751
@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
752
@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
482
754
distdir: $(DISTFILES)
483
755
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \