~ubuntu-branches/debian/sid/sbuild/sid

« back to all changes in this revision

Viewing changes to test/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Roger Leigh, Roger Leigh
  • Date: 2013-10-13 19:35:57 UTC
  • mfrom: (0.3.25)
  • Revision ID: package-import@ubuntu.com-20131013193557-g43dvwdy189ivv41
Tags: 0.64.1-1
[ Roger Leigh ]
* New release.
* sbuild:
  - sbuild-createchroot now works with perl 5.18 (Closes: #724858).
    Thanks to Alexander Chernyakhovsky for this patch, which corrects
    the use of File::Temp.  Thanks also to Paul Elliott and Václav
    Ovsík who also provided an equivalent patches.
  - Sbuild::Conf: Add missing File::Spec (Closes: #722012).  Thanks to
    Václav Ovsík for this patch.
  - Sbuild::Build: Remove perl 5.10 autoflush workaround; flushing works
    correctly wih perl 5.18.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile.in generated by automake 1.11.6 from Makefile.am.
 
1
# Makefile.in generated by automake 1.14 from Makefile.am.
2
2
# @configure_input@
3
3
 
4
 
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
 
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6
 
# Foundation, Inc.
 
4
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
 
5
 
7
6
# This Makefile.in is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy and/or distribute it,
9
8
# with or without modifications, as long as this notice is preserved.
57
56
#
58
57
#####################################################################
59
58
VPATH = @srcdir@
60
 
am__make_dryrun = \
61
 
  { \
62
 
    am__dry=no; \
 
59
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
 
60
am__make_running_with_option = \
 
61
  case $${target_option-} in \
 
62
      ?) ;; \
 
63
      *) echo "am__make_running_with_option: internal error: invalid" \
 
64
              "target option '$${target_option-}' specified" >&2; \
 
65
         exit 1;; \
 
66
  esac; \
 
67
  has_opt=no; \
 
68
  sane_makeflags=$$MAKEFLAGS; \
 
69
  if $(am__is_gnu_make); then \
 
70
    sane_makeflags=$$MFLAGS; \
 
71
  else \
63
72
    case $$MAKEFLAGS in \
64
73
      *\\[\ \   ]*) \
65
 
        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
66
 
          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
67
 
      *) \
68
 
        for am__flg in $$MAKEFLAGS; do \
69
 
          case $$am__flg in \
70
 
            *=*|--*) ;; \
71
 
            *n*) am__dry=yes; break;; \
72
 
          esac; \
73
 
        done;; \
74
 
    esac; \
75
 
    test $$am__dry = yes; \
76
 
  }
 
74
        bs=\\; \
 
75
        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
 
76
          | sed "s/$$bs$$bs[$$bs $$bs   ]*//g"`;; \
 
77
    esac; \
 
78
  fi; \
 
79
  skip_next=no; \
 
80
  strip_trailopt () \
 
81
  { \
 
82
    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
 
83
  }; \
 
84
  for flg in $$sane_makeflags; do \
 
85
    test $$skip_next = yes && { skip_next=no; continue; }; \
 
86
    case $$flg in \
 
87
      *=*|--*) continue;; \
 
88
        -*I) strip_trailopt 'I'; skip_next=yes;; \
 
89
      -*I?*) strip_trailopt 'I';; \
 
90
        -*O) strip_trailopt 'O'; skip_next=yes;; \
 
91
      -*O?*) strip_trailopt 'O';; \
 
92
        -*l) strip_trailopt 'l'; skip_next=yes;; \
 
93
      -*l?*) strip_trailopt 'l';; \
 
94
      -[dEDm]) skip_next=yes;; \
 
95
      -[JT]) skip_next=yes;; \
 
96
    esac; \
 
97
    case $$flg in \
 
98
      *$$target_option*) has_opt=yes; break;; \
 
99
    esac; \
 
100
  done; \
 
101
  test $$has_opt = yes
 
102
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
 
103
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
77
104
pkgdatadir = $(datadir)/@PACKAGE@
78
105
pkgincludedir = $(includedir)/@PACKAGE@
79
106
pkglibdir = $(libdir)/@PACKAGE@
92
119
POST_UNINSTALL = :
93
120
build_triplet = @build@
94
121
host_triplet = @host@
95
 
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
96
 
        $(srcdir)/perl-syntax.in $(srcdir)/sbuild-checkpackages.in \
97
 
        $(srcdir)/sbuild-clean.in $(srcdir)/sbuild-distupgrade.in \
98
 
        $(srcdir)/sbuild-hold.in $(srcdir)/sbuild-update.in \
99
 
        $(srcdir)/sbuild-upgrade.in $(srcdir)/sbuild.in \
100
 
        $(top_srcdir)/scripts/global.mk
 
122
DIST_COMMON = $(top_srcdir)/scripts/global.mk $(srcdir)/Makefile.in \
 
123
        $(srcdir)/Makefile.am $(srcdir)/perl-syntax.in \
 
124
        $(srcdir)/sbuild-checkpackages.in $(srcdir)/sbuild-hold.in \
 
125
        $(srcdir)/sbuild-update.in $(srcdir)/sbuild-upgrade.in \
 
126
        $(srcdir)/sbuild-distupgrade.in $(srcdir)/sbuild-clean.in \
 
127
        $(srcdir)/sbuild.in $(top_srcdir)/scripts/test-driver
101
128
subdir = test
102
129
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
103
130
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109
136
        sbuild-update sbuild-upgrade sbuild-distupgrade sbuild-clean \
110
137
        sbuild
111
138
CONFIG_CLEAN_VPATH_FILES =
 
139
AM_V_P = $(am__v_P_@AM_V@)
 
140
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
 
141
am__v_P_0 = false
 
142
am__v_P_1 = :
112
143
AM_V_GEN = $(am__v_GEN_@AM_V@)
113
144
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
114
 
am__v_GEN_0 = @echo "  GEN   " $@;
 
145
am__v_GEN_0 = @echo "  GEN     " $@;
 
146
am__v_GEN_1 = 
115
147
AM_V_at = $(am__v_at_@AM_V@)
116
148
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
117
149
am__v_at_0 = @
 
150
am__v_at_1 = 
118
151
SOURCES =
119
152
DIST_SOURCES =
120
153
am__can_run_installinfo = \
122
155
    n|no|NO) false;; \
123
156
    *) (install-info --version) >/dev/null 2>&1;; \
124
157
  esac
125
 
am__tty_colors = \
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=; \
 
161
  am__color_tests=no
 
162
am__tty_colors = { \
 
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; \
 
170
  fi; \
 
171
  if test $$am__color_tests = yes; then \
 
172
    red=''; \
 
173
    grn=''; \
 
174
    lgn=''; \
 
175
    blu=''; \
 
176
    mgn=''; \
 
177
    brg=''; \
 
178
    std=''; \
 
179
  fi; \
 
180
}
 
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/||"`;; \
 
184
    *) f=$$p;; \
 
185
  esac;
 
186
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
 
187
am__install_max = 40
 
188
am__nobase_strip_setup = \
 
189
  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
 
190
am__nobase_strip = \
 
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] }'
 
199
am__base_list = \
 
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 = { \
 
203
  test -z "$$files" \
 
204
    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
 
205
    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
 
206
         $(am__cd) "$$dir" && rm -f $$files; }; \
 
207
  }
 
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) '{ \
 
215
  recheck = 1; \
 
216
  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
 
217
    { \
 
218
      if (rc < 0) \
 
219
        { \
 
220
          if ((getline line2 < ($$0 ".log")) < 0) \
 
221
            recheck = 0; \
 
222
          break; \
 
223
        } \
 
224
      else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
 
225
        { \
 
226
          recheck = 0; \
 
227
          break; \
 
228
        } \
 
229
      else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
 
230
        { \
 
231
          break; \
 
232
        } \
 
233
    }; \
 
234
  if (recheck) \
 
235
    print $$0; \
 
236
  close ($$0 ".trs"); \
 
237
  close ($$0 ".log"); \
 
238
}'
 
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) \
 
243
{ \
 
244
  print "fatal: making $@: " msg | "cat >&2"; \
 
245
  exit 1; \
 
246
} \
 
247
function rst_section(header) \
 
248
{ \
 
249
  print header; \
 
250
  len = length(header); \
 
251
  for (i = 1; i <= len; i = i + 1) \
 
252
    printf "="; \
 
253
  printf "\n\n"; \
 
254
} \
 
255
{ \
 
256
  copy_in_global_log = 1; \
 
257
  global_test_result = "RUN"; \
 
258
  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
 
259
    { \
 
260
      if (rc < 0) \
 
261
         fatal("failed to read from " $$0 ".trs"); \
 
262
      if (line ~ /$(am__global_test_result_rx)/) \
 
263
        { \
 
264
          sub("$(am__global_test_result_rx)", "", line); \
 
265
          sub("[        ]*$$", "", line); \
 
266
          global_test_result = line; \
 
267
        } \
 
268
      else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
 
269
        copy_in_global_log = 0; \
 
270
    }; \
 
271
  if (copy_in_global_log) \
 
272
    { \
 
273
      rst_section(global_test_result ": " $$0); \
 
274
      while ((rc = (getline line < ($$0 ".log"))) != 0) \
 
275
      { \
 
276
        if (rc < 0) \
 
277
          fatal("failed to read from " $$0 ".log"); \
 
278
        print line; \
 
279
      }; \
 
280
      printf "\n"; \
 
281
    }; \
 
282
  close ($$0 ".trs"); \
 
283
  close ($$0 ".log"); \
 
284
}'
 
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
 
302
# thy have one).
 
303
am__check_pre = \
 
304
$(am__sh_e_setup);                                      \
 
305
$(am__vpath_adj_setup) $(am__vpath_adj)                 \
 
306
$(am__tty_colors);                                      \
 
307
srcdir=$(srcdir); export srcdir;                        \
 
308
case "$@" in                                            \
 
309
  */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;;    \
 
310
    *) am__odir=.;;                                     \
 
311
esac;                                                   \
 
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;                            \
 
320
else                                                    \
 
321
  am__enable_hard_errors=yes;                           \
 
322
fi;                                                     \
 
323
case " $(XFAIL_TESTS) " in                              \
 
324
  *[\ \ ]$$f[\ \        ]* | *[\ \      ]$$dir$$f[\ \   ]*) \
 
325
    am__expect_failure=yes;;                            \
 
326
  *)                                                    \
 
327
    am__expect_failure=no;;                             \
 
328
esac;                                                   \
 
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$$//'`; \
 
340
  bases=`echo $$bases`
 
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)
 
347
am__set_b = \
 
348
  case '$@' in \
 
349
    */*) \
 
350
      case '$*' in \
 
351
        */*) b='$*';; \
 
352
          *) b=`echo '$@' | sed 's/\.log$$//'`; \
 
353
       esac;; \
 
354
    *) \
 
355
      b='$*';; \
 
356
  esac
 
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) \
 
362
        $(TEST_LOG_FLAGS)
127
363
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
128
364
ACLOCAL = @ACLOCAL@
129
365
AMTAR = @AMTAR@
260
496
all: all-am
261
497
 
262
498
.SUFFIXES:
 
499
.SUFFIXES: .log .test .test$(EXEEXT) .trs
263
500
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am $(top_srcdir)/scripts/global.mk $(am__configure_deps)
264
501
        @for dep in $?; do \
265
502
          case '$(am__configure_deps)' in \
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)/$@
310
 
tags: TAGS
311
 
TAGS:
312
 
 
313
 
ctags: CTAGS
314
 
CTAGS:
315
 
 
316
 
 
317
 
check-TESTS: $(TESTS)
318
 
        @failed=0; all=0; xfail=0; xpass=0; skip=0; \
319
 
        srcdir=$(srcdir); export srcdir; \
320
 
        list=' $(TESTS) '; \
321
 
        $(am__tty_colors); \
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; \
334
 
              ;; \
335
 
              *) \
336
 
                col=$$grn; res=PASS; \
337
 
              ;; \
338
 
              esac; \
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; \
345
 
              ;; \
346
 
              *) \
347
 
                failed=`expr $$failed + 1`; \
348
 
                col=$$red; res=FAIL; \
349
 
              ;; \
350
 
              esac; \
351
 
            else \
352
 
              skip=`expr $$skip + 1`; \
353
 
              col=$$blu; res=SKIP; \
354
 
            fi; \
355
 
            echo "$${col}$$res$${std}: $$tst"; \
 
547
tags TAGS:
 
548
 
 
549
ctags CTAGS:
 
550
 
 
551
cscope cscopelist:
 
552
 
 
553
 
 
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".
 
558
.log.trs:
 
559
        rm -f $< $@
 
560
        $(MAKE) $(AM_MAKEFLAGS) $<
 
561
 
 
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)
 
565
am--force-recheck:
 
566
        @:
 
567
 
 
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; \
 
573
                    done`; \
 
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; \
 
579
          fi; \
 
580
        fi; \
 
581
        if test -n "$$am__remaking_logs"; then \
 
582
          echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
 
583
               "recursion detected" >&2; \
 
584
        else \
 
585
          am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
 
586
        fi; \
 
587
        if $(am__make_dryrun); then :; else \
 
588
          st=0;  \
 
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; }; \
356
595
          done; \
357
 
          if test "$$all" -eq 1; then \
358
 
            tests="test"; \
359
 
            All=""; \
360
 
          else \
361
 
            tests="tests"; \
362
 
            All="All "; \
363
 
          fi; \
364
 
          if test "$$failed" -eq 0; then \
365
 
            if test "$$xfail" -eq 0; then \
366
 
              banner="$$All$$all $$tests passed"; \
367
 
            else \
368
 
              if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
369
 
              banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
370
 
            fi; \
371
 
          else \
372
 
            if test "$$xpass" -eq 0; then \
373
 
              banner="$$failed of $$all $$tests failed"; \
374
 
            else \
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)"; \
377
 
            fi; \
378
 
          fi; \
379
 
          dashes="$$banner"; \
380
 
          skipped=""; \
381
 
          if test "$$skip" -ne 0; then \
382
 
            if test "$$skip" -eq 1; then \
383
 
              skipped="($$skip test was not run)"; \
384
 
            else \
385
 
              skipped="($$skip tests were not run)"; \
386
 
            fi; \
387
 
            test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
388
 
              dashes="$$skipped"; \
389
 
          fi; \
390
 
          report=""; \
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` || \
394
 
              dashes="$$report"; \
395
 
          fi; \
396
 
          dashes=`echo "$$dashes" | sed s/./=/g`; \
397
 
          if test "$$failed" -eq 0; then \
398
 
            col="$$grn"; \
399
 
          else \
400
 
            col="$$red"; \
401
 
          fi; \
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; \
408
 
        else :; fi
 
596
          test $$st -eq 0 || exit 1; \
 
597
        fi
 
598
        @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
 
599
        ws='[   ]'; \
 
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 \
 
610
          success=true; \
 
611
        else \
 
612
          success=false; \
 
613
        fi; \
 
614
        br='==================='; br=$$br$$br$$br$$br; \
 
615
        result_count () \
 
616
        { \
 
617
            if test x"$$1" = x"--maybe-color"; then \
 
618
              maybe_colorize=yes; \
 
619
            elif test x"$$1" = x"--no-color"; then \
 
620
              maybe_colorize=no; \
 
621
            else \
 
622
              echo "$@: invalid 'result_count' usage" >&2; exit 4; \
 
623
            fi; \
 
624
            shift; \
 
625
            desc=$$1 count=$$2; \
 
626
            if test $$maybe_colorize = yes && test $$count -gt 0; then \
 
627
              color_start=$$3 color_end=$$std; \
 
628
            else \
 
629
              color_start= color_end=; \
 
630
            fi; \
 
631
            echo "$${color_start}# $$desc $$count$${color_end}"; \
 
632
        }; \
 
633
        create_testsuite_report () \
 
634
        { \
 
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"; \
 
642
        }; \
 
643
        {                                                               \
 
644
          echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" |       \
 
645
            $(am__rst_title);                                           \
 
646
          create_testsuite_report --no-color;                           \
 
647
          echo;                                                         \
 
648
          echo ".. contents:: :depth: 2";                               \
 
649
          echo;                                                         \
 
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);                     \
 
654
        if $$success; then                                              \
 
655
          col="$$grn";                                                  \
 
656
         else                                                           \
 
657
          col="$$red";                                                  \
 
658
          test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG);               \
 
659
        fi;                                                             \
 
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}"; \
 
669
          fi;                                                           \
 
670
          echo "$$col$$br$$std";                                        \
 
671
        fi;                                                             \
 
672
        $$success || exit 1
 
673
 
 
674
check-TESTS:
 
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"; \
 
683
        exit $$?;
 
684
recheck: all 
 
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"; \
 
694
        exit $$?
 
695
perl-syntax.log: perl-syntax
 
696
        @p='perl-syntax'; \
 
697
        b='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
 
703
        @p='sbuild-hold'; \
 
704
        b='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'; \
 
711
        b='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
 
731
        @p='sbuild-clean'; \
 
732
        b='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)
 
744
sbuild.log: sbuild
 
745
        @p='sbuild'; \
 
746
        b='sbuild'; \
 
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)
 
751
.test.log:
 
752
        @p='$<'; \
 
753
        $(am__set_b); \
 
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)
409
765
 
410
766
distdir: $(DISTFILES)
411
767
        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
462
818
            "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
463
819
        fi
464
820
mostlyclean-generic:
 
821
        -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
 
822
        -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
 
823
        -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
465
824
 
466
825
clean-generic:
467
826
 
541
900
.MAKE: check-am install-am install-strip
542
901
 
543
902
.PHONY: all all-am check check-TESTS check-am clean clean-generic \
544
 
        distclean distclean-generic distdir dvi dvi-am html html-am \
545
 
        info info-am install install-am install-data install-data-am \
546
 
        install-dvi install-dvi-am install-exec install-exec-am \
547
 
        install-html install-html-am install-info install-info-am \
548
 
        install-man install-pdf install-pdf-am install-ps \
549
 
        install-ps-am install-strip installcheck installcheck-am \
550
 
        installdirs maintainer-clean maintainer-clean-generic \
551
 
        mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
552
 
        uninstall-am
 
903
        cscopelist-am ctags-am distclean distclean-generic distdir dvi \
 
904
        dvi-am html html-am info info-am install install-am \
 
905
        install-data install-data-am install-dvi install-dvi-am \
 
906
        install-exec install-exec-am install-html install-html-am \
 
907
        install-info install-info-am install-man install-pdf \
 
908
        install-pdf-am install-ps install-ps-am install-strip \
 
909
        installcheck installcheck-am installdirs maintainer-clean \
 
910
        maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
 
911
        pdf-am ps ps-am recheck tags-am uninstall uninstall-am
553
912
 
554
913
 
555
914
# Tell versions [3.59,3.63) of GNU make to not export all variables.