38
37
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
39
38
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
40
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
41
am__make_running_with_option = \
42
case $${target_option-} in \
44
*) echo "am__make_running_with_option: internal error: invalid" \
45
"target option '$${target_option-}' specified" >&2; \
49
sane_makeflags=$$MAKEFLAGS; \
50
if $(am__is_gnu_make); then \
51
sane_makeflags=$$MFLAGS; \
44
53
case $$MAKEFLAGS in \
46
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
47
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
49
for am__flg in $$MAKEFLAGS; do \
52
*n*) am__dry=yes; break;; \
56
test $$am__dry = yes; \
56
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
57
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
63
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
65
for flg in $$sane_makeflags; do \
66
test $$skip_next = yes && { skip_next=no; continue; }; \
69
-*I) strip_trailopt 'I'; skip_next=yes;; \
70
-*I?*) strip_trailopt 'I';; \
71
-*O) strip_trailopt 'O'; skip_next=yes;; \
72
-*O?*) strip_trailopt 'O';; \
73
-*l) strip_trailopt 'l'; skip_next=yes;; \
74
-*l?*) strip_trailopt 'l';; \
75
-[dEDm]) skip_next=yes;; \
76
-[JT]) skip_next=yes;; \
79
*$$target_option*) has_opt=yes; break;; \
83
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
84
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
58
85
pkgdatadir = $(datadir)/@PACKAGE@
59
86
pkgincludedir = $(includedir)/@PACKAGE@
60
87
pkglibdir = $(libdir)/@PACKAGE@
100
128
@HAVE_CUNIT_TRUE@am_main_OBJECTS = $(am__objects_1) $(am__objects_2)
101
129
main_OBJECTS = $(am_main_OBJECTS)
102
130
@HAVE_CUNIT_TRUE@main_DEPENDENCIES = ${top_builddir}/lib/libwslay.la
103
main_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
104
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(main_LDFLAGS) \
131
AM_V_lt = $(am__v_lt_@AM_V@)
132
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
133
am__v_lt_0 = --silent
135
main_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
136
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
137
$(main_LDFLAGS) $(LDFLAGS) -o $@
138
AM_V_P = $(am__v_P_@AM_V@)
139
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
142
AM_V_GEN = $(am__v_GEN_@AM_V@)
143
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
144
am__v_GEN_0 = @echo " GEN " $@;
146
AM_V_at = $(am__v_at_@AM_V@)
147
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
106
150
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
107
151
depcomp = $(SHELL) $(top_srcdir)/depcomp
108
152
am__depfiles_maybe = depfiles
110
154
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
111
155
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
112
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
113
--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
114
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
156
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
157
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
158
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
159
$(AM_CFLAGS) $(CFLAGS)
160
AM_V_CC = $(am__v_CC_@AM_V@)
161
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
162
am__v_CC_0 = @echo " CC " $@;
116
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
117
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
165
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
166
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
167
$(AM_LDFLAGS) $(LDFLAGS) -o $@
168
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
169
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
170
am__v_CCLD_0 = @echo " CCLD " $@;
119
172
SOURCES = $(main_SOURCES)
120
173
DIST_SOURCES = $(am__main_SOURCES_DIST)
121
174
am__can_run_installinfo = \
123
176
n|no|NO) false;; \
124
177
*) (install-info --version) >/dev/null 2>&1;; \
179
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
180
# Read a list of newline-separated strings from the standard input,
181
# and print each of them once, without duplicates. Input order is
183
am__uniquify_input = $(AWK) '\
184
BEGIN { nonempty = 0; } \
185
{ items[$$0] = 1; nonempty = 1; } \
186
END { if (nonempty) { for (i in items) print i; }; } \
188
# Make sure the list of sources is unique. This is necessary because,
189
# e.g., the same source file might be shared among _SOURCES variables
190
# for different programs/libraries.
191
am__define_uniq_tagged_files = \
192
list='$(am__tagged_files)'; \
193
unique=`for i in $$list; do \
194
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
195
done | $(am__uniquify_input)`
129
red=; grn=; lgn=; blu=; std=
198
am__tty_colors_dummy = \
199
mgn= red= grn= lgn= blu= brg= std=; \
202
$(am__tty_colors_dummy); \
203
if test "X$(AM_COLOR_TESTS)" = Xno; then \
204
am__color_tests=no; \
205
elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
206
am__color_tests=yes; \
207
elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
208
am__color_tests=yes; \
210
if test $$am__color_tests = yes; then \
220
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
221
am__vpath_adj = case $$p in \
222
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
225
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
227
am__nobase_strip_setup = \
228
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
230
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
231
am__nobase_list = $(am__nobase_strip_setup); \
232
for p in $$list; do echo "$$p $$p"; done | \
233
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
234
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
235
if (++n[$$2] == $(am__install_max)) \
236
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
237
END { for (dir in files) print dir, files[dir] }'
239
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
240
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
241
am__uninstall_files_from_dir = { \
243
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
244
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
245
$(am__cd) "$$dir" && rm -f $$files; }; \
247
am__recheck_rx = ^[ ]*:recheck:[ ]*
248
am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
249
am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
250
# A command that, given a newline-separated list of test names on the
251
# standard input, print the name of the tests that are to be re-run
252
# upon "make recheck".
253
am__list_recheck_tests = $(AWK) '{ \
255
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
259
if ((getline line2 < ($$0 ".log")) < 0) \
263
else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
268
else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
275
close ($$0 ".trs"); \
276
close ($$0 ".log"); \
278
# A command that, given a newline-separated list of test names on the
279
# standard input, create the global log from their .trs and .log files.
280
am__create_global_log = $(AWK) ' \
281
function fatal(msg) \
283
print "fatal: making $@: " msg | "cat >&2"; \
286
function rst_section(header) \
289
len = length(header); \
290
for (i = 1; i <= len; i = i + 1) \
295
copy_in_global_log = 1; \
296
global_test_result = "RUN"; \
297
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
300
fatal("failed to read from " $$0 ".trs"); \
301
if (line ~ /$(am__global_test_result_rx)/) \
303
sub("$(am__global_test_result_rx)", "", line); \
304
sub("[ ]*$$", "", line); \
305
global_test_result = line; \
307
else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
308
copy_in_global_log = 0; \
310
if (copy_in_global_log) \
312
rst_section(global_test_result ": " $$0); \
313
while ((rc = (getline line < ($$0 ".log"))) != 0) \
316
fatal("failed to read from " $$0 ".log"); \
321
close ($$0 ".trs"); \
322
close ($$0 ".log"); \
324
# Restructured Text title.
325
am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
326
# Solaris 10 'make', and several other traditional 'make' implementations,
327
# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
328
# by disabling -e (using the XSI extension "set +e") if it's set.
329
am__sh_e_setup = case $$- in *e*) set +e;; esac
330
# Default flags passed to test drivers.
331
am__common_driver_flags = \
332
--color-tests "$$am__color_tests" \
333
--enable-hard-errors "$$am__enable_hard_errors" \
334
--expect-failure "$$am__expect_failure"
335
# To be inserted before the command running the test. Creates the
336
# directory for the log if needed. Stores in $dir the directory
337
# containing $f, in $tst the test, in $log the log. Executes the
338
# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
339
# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
340
# will run the test scripts (or their associated LOG_COMPILER, if
344
$(am__vpath_adj_setup) $(am__vpath_adj) \
346
srcdir=$(srcdir); export srcdir; \
348
*/*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
351
test "x$$am__odir" = x"." || test -d "$$am__odir" \
352
|| $(MKDIR_P) "$$am__odir" || exit $$?; \
353
if test -f "./$$f"; then dir=./; \
354
elif test -f "$$f"; then dir=; \
355
else dir="$(srcdir)/"; fi; \
356
tst=$$dir$$f; log='$@'; \
357
if test -n '$(DISABLE_HARD_ERRORS)'; then \
358
am__enable_hard_errors=no; \
360
am__enable_hard_errors=yes; \
362
case " $(XFAIL_TESTS) " in \
363
*[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
364
am__expect_failure=yes;; \
366
am__expect_failure=no;; \
368
$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
369
# A shell command to get the names of the tests scripts with any registered
370
# extension removed (i.e., equivalently, the names of the test logs, with
371
# the '.log' extension removed). The result is saved in the shell variable
372
# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
373
# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
374
# since that might cause problem with VPATH rewrites for suffix-less tests.
375
# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
376
am__set_TESTS_bases = \
377
bases='$(TEST_LOGS)'; \
378
bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
380
RECHECK_LOGS = $(TEST_LOGS)
381
AM_RECURSIVE_TARGETS = check recheck
382
TEST_SUITE_LOG = test-suite.log
383
TEST_EXTENSIONS = @EXEEXT@ .test
384
LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
385
LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
391
*) b=`echo '$@' | sed 's/\.log$$//'`; \
396
am__test_logs1 = $(TESTS:=.log)
397
am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
398
TEST_LOGS = $(am__test_logs2:.test.log=.log)
399
TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
400
TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
130
402
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
131
403
ACLOCAL = @ACLOCAL@
405
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
134
407
AUTOCONF = @AUTOCONF@
135
408
AUTOHEADER = @AUTOHEADER@
322
596
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wslay_queue_test.Po@am__quote@
325
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
327
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
599
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
600
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
601
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
328
602
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
603
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
332
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
333
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
334
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
606
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
607
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
608
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
335
609
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
336
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
610
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
339
@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
340
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
341
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
613
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
614
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
615
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
342
616
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
343
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
617
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
345
619
mostlyclean-libtool:
396
655
here=`$(am__cd) $(top_builddir) && pwd` \
397
656
&& $(am__cd) $(top_srcdir) \
398
657
&& gtags -i $(GTAGS_ARGS) "$$here"
658
cscopelist: cscopelist-am
660
cscopelist-am: $(am__tagged_files)
661
list='$(am__tagged_files)'; \
662
case "$(srcdir)" in \
663
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
664
*) sdir=$(subdir)/$(srcdir) ;; \
666
for i in $$list; do \
667
if test -f "$$i"; then \
668
echo "$(subdir)/$$i"; \
672
done >> $(top_builddir)/cscope.files
401
675
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
403
check-TESTS: $(TESTS)
404
@failed=0; all=0; xfail=0; xpass=0; skip=0; \
405
srcdir=$(srcdir); export srcdir; \
408
if test -n "$$list"; then \
409
for tst in $$list; do \
410
if test -f ./$$tst; then dir=./; \
411
elif test -f $$tst; then dir=; \
412
else dir="$(srcdir)/"; fi; \
413
if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
414
all=`expr $$all + 1`; \
415
case " $(XFAIL_TESTS) " in \
416
*[\ \ ]$$tst[\ \ ]*) \
417
xpass=`expr $$xpass + 1`; \
418
failed=`expr $$failed + 1`; \
419
col=$$red; res=XPASS; \
422
col=$$grn; res=PASS; \
425
elif test $$? -ne 77; then \
426
all=`expr $$all + 1`; \
427
case " $(XFAIL_TESTS) " in \
428
*[\ \ ]$$tst[\ \ ]*) \
429
xfail=`expr $$xfail + 1`; \
430
col=$$lgn; res=XFAIL; \
433
failed=`expr $$failed + 1`; \
434
col=$$red; res=FAIL; \
438
skip=`expr $$skip + 1`; \
439
col=$$blu; res=SKIP; \
441
echo "$${col}$$res$${std}: $$tst"; \
677
# Recover from deleted '.trs' file; this should ensure that
678
# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
679
# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
680
# to avoid problems with "make -n".
683
$(MAKE) $(AM_MAKEFLAGS) $<
685
# Leading 'am--fnord' is there to ensure the list of targets does not
686
# expand to empty, as could happen e.g. with make check TESTS=''.
687
am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
691
$(TEST_SUITE_LOG): $(TEST_LOGS)
692
@$(am__set_TESTS_bases); \
693
am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
694
redo_bases=`for i in $$bases; do \
695
am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
697
if test -n "$$redo_bases"; then \
698
redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
699
redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
700
if $(am__make_dryrun); then :; else \
701
rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
704
if test -n "$$am__remaking_logs"; then \
705
echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
706
"recursion detected" >&2; \
708
am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
710
if $(am__make_dryrun); then :; else \
712
errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
713
for i in $$redo_bases; do \
714
test -f $$i.trs && test -r $$i.trs \
715
|| { echo "$$errmsg $$i.trs" >&2; st=1; }; \
716
test -f $$i.log && test -r $$i.log \
717
|| { echo "$$errmsg $$i.log" >&2; st=1; }; \
443
if test "$$all" -eq 1; then \
450
if test "$$failed" -eq 0; then \
451
if test "$$xfail" -eq 0; then \
452
banner="$$All$$all $$tests passed"; \
454
if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
455
banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
458
if test "$$xpass" -eq 0; then \
459
banner="$$failed of $$all $$tests failed"; \
461
if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
462
banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
467
if test "$$skip" -ne 0; then \
468
if test "$$skip" -eq 1; then \
469
skipped="($$skip test was not run)"; \
471
skipped="($$skip tests were not run)"; \
473
test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
474
dashes="$$skipped"; \
477
if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
478
report="Please report to $(PACKAGE_BUGREPORT)"; \
479
test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
482
dashes=`echo "$$dashes" | sed s/./=/g`; \
483
if test "$$failed" -eq 0; then \
488
echo "$${col}$$dashes$${std}"; \
489
echo "$${col}$$banner$${std}"; \
490
test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
491
test -z "$$report" || echo "$${col}$$report$${std}"; \
492
echo "$${col}$$dashes$${std}"; \
493
test "$$failed" -eq 0; \
719
test $$st -eq 0 || exit 1; \
721
@$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
723
results=`for b in $$bases; do echo $$b.trs; done`; \
724
test -n "$$results" || results=/dev/null; \
725
all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
726
pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
727
fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
728
skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
729
xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
730
xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
731
error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
732
if test `expr $$fail + $$xpass + $$error` -eq 0; then \
737
br='==================='; br=$$br$$br$$br$$br; \
740
if test x"$$1" = x"--maybe-color"; then \
741
maybe_colorize=yes; \
742
elif test x"$$1" = x"--no-color"; then \
745
echo "$@: invalid 'result_count' usage" >&2; exit 4; \
748
desc=$$1 count=$$2; \
749
if test $$maybe_colorize = yes && test $$count -gt 0; then \
750
color_start=$$3 color_end=$$std; \
752
color_start= color_end=; \
754
echo "$${color_start}# $$desc $$count$${color_end}"; \
756
create_testsuite_report () \
758
result_count $$1 "TOTAL:" $$all "$$brg"; \
759
result_count $$1 "PASS: " $$pass "$$grn"; \
760
result_count $$1 "SKIP: " $$skip "$$blu"; \
761
result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
762
result_count $$1 "FAIL: " $$fail "$$red"; \
763
result_count $$1 "XPASS:" $$xpass "$$red"; \
764
result_count $$1 "ERROR:" $$error "$$mgn"; \
767
echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
769
create_testsuite_report --no-color; \
771
echo ".. contents:: :depth: 2"; \
773
for b in $$bases; do echo $$b; done \
774
| $(am__create_global_log); \
775
} >$(TEST_SUITE_LOG).tmp || exit 1; \
776
mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
781
test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
783
echo "$${col}$$br$${std}"; \
784
echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
785
echo "$${col}$$br$${std}"; \
786
create_testsuite_report --maybe-color; \
787
echo "$$col$$br$$std"; \
788
if $$success; then :; else \
789
echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
790
if test -n "$(PACKAGE_BUGREPORT)"; then \
791
echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
793
echo "$$col$$br$$std"; \
798
@list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
799
@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
800
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
801
@set +e; $(am__set_TESTS_bases); \
802
log_list=`for i in $$bases; do echo $$i.log; done`; \
803
trs_list=`for i in $$bases; do echo $$i.trs; done`; \
804
log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
805
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
807
recheck: all $(check_PROGRAMS)
808
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
809
@set +e; $(am__set_TESTS_bases); \
810
bases=`for i in $$bases; do echo $$i; done \
811
| $(am__list_recheck_tests)` || exit 1; \
812
log_list=`for i in $$bases; do echo $$i.log; done`; \
813
log_list=`echo $$log_list`; \
814
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
815
am__force_recheck=am--force-recheck \
816
TEST_LOGS="$$log_list"; \
818
main.log: main$(EXEEXT)
819
@p='main$(EXEEXT)'; \
821
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
822
--log-file $$b.log --trs-file $$b.trs \
823
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
824
"$$tst" $(AM_TESTS_FD_REDIRECT)
828
$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
829
--log-file $$b.log --trs-file $$b.trs \
830
$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
831
"$$tst" $(AM_TESTS_FD_REDIRECT)
832
@am__EXEEXT_TRUE@.test$(EXEEXT).log:
833
@am__EXEEXT_TRUE@ @p='$<'; \
834
@am__EXEEXT_TRUE@ $(am__set_b); \
835
@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
836
@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
837
@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
838
@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
496
840
distdir: $(DISTFILES)
497
841
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \