~ubuntu-branches/ubuntu/lucid/bogofilter/lucid-security

« back to all changes in this revision

Viewing changes to src/tests/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-06 05:41:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090506054152-tgameecssbuv4np6
Tags: 1.2.0-2ubuntu1
* Merge from debian unstable, remaining changes: LP: #372497
  - don't build qdbm.
  - Don't build tokyocabinet support as it's in universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile.in generated by automake 1.10.1 from Makefile.am.
 
1
# Makefile.in generated by automake 1.10.2 from Makefile.am.
2
2
# @configure_input@
3
3
 
4
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
14
14
 
15
15
@SET_MAKE@
16
16
 
17
 
# $Id: Makefile.am 6708 2008-03-21 15:07:12Z m-a $
 
17
# $Id: Makefile.am 6802 2009-02-16 19:48:23Z m-a $
18
18
VPATH = @srcdir@
19
19
pkgdatadir = $(datadir)/@PACKAGE@
20
20
pkglibdir = $(libdir)/@PACKAGE@
239
239
target_cpu = @target_cpu@
240
240
target_os = @target_os@
241
241
target_vendor = @target_vendor@
 
242
top_build_prefix = @top_build_prefix@
242
243
top_builddir = @top_builddir@
243
244
top_srcdir = @top_srcdir@
 
245
transformed_bogofilter = @transformed_bogofilter@
 
246
transformed_bogoutil = @transformed_bogoutil@
244
247
AM_CPPFLAGS = -I$(srcdir)/..
245
248
AM_LDFLAGS = -L..
246
249
LDADD = -lbogofilter
259
262
        t.lexer t.lexer.mbx \
260
263
        t.spam.header.place \
261
264
        t.block.on.subnets \
262
 
        t.multiple.tokens.head t.multiple.tokens.body t.token.min.mul \
 
265
        t.token.count \
 
266
        t.multiple.tokens.head t.multiple.tokens.body t.multiple.tokens.min.mul \
263
267
        $(ENCODING_TESTS) \
264
268
        t.rfc2047_broken t.rfc2047_folded \
265
269
        t.message_addr t.message_id t.queue_id
270
274
INTEGRITY_TESTS = t.lock1 t.lock3 t.valgrind
271
275
# INTEGRITY_TESTS += t.lock2
272
276
TESTSCRIPTS = ${ENVIRON_TESTS} ${PARSING_TESTS} ${WORDLIST_TESTS} ${SCORING_TESTS} ${BULKMODE_TESTS} ${INTEGRITY_TESTS}
273
 
TESTS_ENVIRONMENT = RUN_FROM_MAKE=1 AWK=$(AWK) srcdir=$(srcdir) SHELL=$(SHELL) $(SHELL) $(VERBOSE)
 
277
TESTS_ENVIRONMENT = RUN_FROM_MAKE=1 AWK=$(AWK) srcdir=$(srcdir) SHELL="$(SHELL)" $(SHELL) $(VERBOSE)
274
278
EXTRA_DIST = $(TESTSCRIPTS) t.frame t.save t.skel \
275
279
        printcore t._abort unsort.pl \
276
280
        t.query.config.in \
321
325
        outputs/multiple.wordlists.ref \
322
326
        outputs/parsing.out \
323
327
        outputs/queue_id.ref \
324
 
        outputs/split.out
 
328
        outputs/split.out \
 
329
        outputs/token.count.ref
325
330
 
326
331
all: $(BUILT_SOURCES)
327
332
        $(MAKE) $(AM_MAKEFLAGS) all-am
332
337
        @for dep in $?; do \
333
338
          case '$(am__configure_deps)' in \
334
339
            *$$dep*) \
335
 
              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
336
 
                && exit 0; \
 
340
              ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
 
341
                && { if test -f $@; then exit 0; else break; fi; }; \
337
342
              exit 1;; \
338
343
          esac; \
339
344
        done; \
431
436
        unique=`for i in $$list; do \
432
437
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
433
438
          done | \
434
 
          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
 
439
          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
435
440
              END { if (nonempty) { for (i in files) print i; }; }'`; \
436
441
        mkid -fID $$unique
437
442
tags: TAGS
474
479
        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
475
480
 
476
481
check-TESTS: $(TESTS)
477
 
        @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[        ]'; \
 
482
        @failed=0; all=0; xfail=0; xpass=0; skip=0; \
478
483
        srcdir=$(srcdir); export srcdir; \
479
484
        list=' $(TESTS) '; \
480
485
        if test -n "$$list"; then \
485
490
            if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
486
491
              all=`expr $$all + 1`; \
487
492
              case " $(XFAIL_TESTS) " in \
488
 
              *$$ws$$tst$$ws*) \
 
493
              *[\ \     ]$$tst[\ \      ]*) \
489
494
                xpass=`expr $$xpass + 1`; \
490
495
                failed=`expr $$failed + 1`; \
491
496
                echo "XPASS: $$tst"; \
497
502
            elif test $$? -ne 77; then \
498
503
              all=`expr $$all + 1`; \
499
504
              case " $(XFAIL_TESTS) " in \
500
 
              *$$ws$$tst$$ws*) \
 
505
              *[\ \     ]$$tst[\ \      ]*) \
501
506
                xfail=`expr $$xfail + 1`; \
502
507
                echo "XFAIL: $$tst"; \
503
508
              ;; \
511
516
              echo "SKIP: $$tst"; \
512
517
            fi; \
513
518
          done; \
 
519
          if test "$$all" -eq 1; then \
 
520
            tests="test"; \
 
521
            All=""; \
 
522
          else \
 
523
            tests="tests"; \
 
524
            All="All "; \
 
525
          fi; \
514
526
          if test "$$failed" -eq 0; then \
515
527
            if test "$$xfail" -eq 0; then \
516
 
              banner="All $$all tests passed"; \
 
528
              banner="$$All$$all $$tests passed"; \
517
529
            else \
518
 
              banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
 
530
              if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
 
531
              banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
519
532
            fi; \
520
533
          else \
521
534
            if test "$$xpass" -eq 0; then \
522
 
              banner="$$failed of $$all tests failed"; \
 
535
              banner="$$failed of $$all $$tests failed"; \
523
536
            else \
524
 
              banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
 
537
              if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
 
538
              banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
525
539
            fi; \
526
540
          fi; \
527
541
          dashes="$$banner"; \
528
542
          skipped=""; \
529
543
          if test "$$skip" -ne 0; then \
530
 
            skipped="($$skip tests were not run)"; \
 
544
            if test "$$skip" -eq 1; then \
 
545
              skipped="($$skip test was not run)"; \
 
546
            else \
 
547
              skipped="($$skip tests were not run)"; \
 
548
            fi; \
531
549
            test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
532
550
              dashes="$$skipped"; \
533
551
          fi; \