/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to test/Makefile.in

  • Committer: edam
  • Date: 2010-02-08 22:08:57 UTC
  • Revision ID: edam@waxworlds.org-20100208220857-5up6fi4y6jh5bz4k
- removed "OK" from test-main when test is successful
- aranged for test/test-main to buld properly and be called from "make check"
- added include/Makefile.am to arrange for installation of library headers
- added project website to configure.ac
- added library interface configuration variable to configure.ac

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
build_triplet = @build@
37
37
host_triplet = @host@
38
38
check_PROGRAMS = test-main$(EXEEXT)
 
39
TESTS = test-main$(EXEEXT)
39
40
subdir = test
40
41
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
41
42
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
51
52
CONFIG_CLEAN_VPATH_FILES =
52
53
am_test_main_OBJECTS = test-main.$(OBJEXT)
53
54
test_main_OBJECTS = $(am_test_main_OBJECTS)
54
 
test_main_DEPENDENCIES =
 
55
test_main_DEPENDENCIES = ../src/libsqlite3cc.la
55
56
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
56
57
depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
57
58
am__depfiles_maybe = depfiles
69
70
DIST_SOURCES = $(test_main_SOURCES)
70
71
ETAGS = etags
71
72
CTAGS = ctags
 
73
am__tty_colors = \
 
74
red=; grn=; lgn=; blu=; std=
72
75
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
73
76
ACLOCAL = @ACLOCAL@
74
77
AMTAR = @AMTAR@
81
84
CCDEPMODE = @CCDEPMODE@
82
85
CFLAGS = @CFLAGS@
83
86
CPP = @CPP@
84
 
CPPFLAGS = @CPPFLAGS@
 
87
CPPFLAGS = -I$(top_srcdir)/include
85
88
CXX = @CXX@
86
89
CXXCPP = @CXXCPP@
87
90
CXXDEPMODE = @CXXDEPMODE@
107
110
LDFLAGS = @LDFLAGS@
108
111
LIBOBJS = @LIBOBJS@
109
112
LIBS = @LIBS@
 
113
LIBSQLITE3CC_INTERFACE = @LIBSQLITE3CC_INTERFACE@
110
114
LIBTOOL = @LIBTOOL@
111
115
LIPO = @LIPO@
112
116
LN_S = @LN_S@
186
190
top_build_prefix = @top_build_prefix@
187
191
top_builddir = @top_builddir@
188
192
top_srcdir = @top_srcdir@
189
 
AM_CPPFLAGS = -I$(top_srcdir)/include
190
193
test_main_SOURCES = test-main.cc
191
 
test_main_LDADD = -L$(top_srcdir)/src -lsqlite3cc
 
194
test_main_LDADD = ../src/libsqlite3cc.la
192
195
all: all-am
193
196
 
194
197
.SUFFIXES:
323
326
distclean-tags:
324
327
        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
325
328
 
 
329
check-TESTS: $(TESTS)
 
330
        @failed=0; all=0; xfail=0; xpass=0; skip=0; \
 
331
        srcdir=$(srcdir); export srcdir; \
 
332
        list=' $(TESTS) '; \
 
333
        $(am__tty_colors); \
 
334
        if test -n "$$list"; then \
 
335
          for tst in $$list; do \
 
336
            if test -f ./$$tst; then dir=./; \
 
337
            elif test -f $$tst; then dir=; \
 
338
            else dir="$(srcdir)/"; fi; \
 
339
            if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
 
340
              all=`expr $$all + 1`; \
 
341
              case " $(XFAIL_TESTS) " in \
 
342
              *[\ \     ]$$tst[\ \      ]*) \
 
343
                xpass=`expr $$xpass + 1`; \
 
344
                failed=`expr $$failed + 1`; \
 
345
                col=$$red; res=XPASS; \
 
346
              ;; \
 
347
              *) \
 
348
                col=$$grn; res=PASS; \
 
349
              ;; \
 
350
              esac; \
 
351
            elif test $$? -ne 77; then \
 
352
              all=`expr $$all + 1`; \
 
353
              case " $(XFAIL_TESTS) " in \
 
354
              *[\ \     ]$$tst[\ \      ]*) \
 
355
                xfail=`expr $$xfail + 1`; \
 
356
                col=$$lgn; res=XFAIL; \
 
357
              ;; \
 
358
              *) \
 
359
                failed=`expr $$failed + 1`; \
 
360
                col=$$red; res=FAIL; \
 
361
              ;; \
 
362
              esac; \
 
363
            else \
 
364
              skip=`expr $$skip + 1`; \
 
365
              col=$$blu; res=SKIP; \
 
366
            fi; \
 
367
            echo "$${col}$$res$${std}: $$tst"; \
 
368
          done; \
 
369
          if test "$$all" -eq 1; then \
 
370
            tests="test"; \
 
371
            All=""; \
 
372
          else \
 
373
            tests="tests"; \
 
374
            All="All "; \
 
375
          fi; \
 
376
          if test "$$failed" -eq 0; then \
 
377
            if test "$$xfail" -eq 0; then \
 
378
              banner="$$All$$all $$tests passed"; \
 
379
            else \
 
380
              if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
 
381
              banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
 
382
            fi; \
 
383
          else \
 
384
            if test "$$xpass" -eq 0; then \
 
385
              banner="$$failed of $$all $$tests failed"; \
 
386
            else \
 
387
              if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
 
388
              banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
 
389
            fi; \
 
390
          fi; \
 
391
          dashes="$$banner"; \
 
392
          skipped=""; \
 
393
          if test "$$skip" -ne 0; then \
 
394
            if test "$$skip" -eq 1; then \
 
395
              skipped="($$skip test was not run)"; \
 
396
            else \
 
397
              skipped="($$skip tests were not run)"; \
 
398
            fi; \
 
399
            test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
 
400
              dashes="$$skipped"; \
 
401
          fi; \
 
402
          report=""; \
 
403
          if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
 
404
            report="Please report to $(PACKAGE_BUGREPORT)"; \
 
405
            test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
 
406
              dashes="$$report"; \
 
407
          fi; \
 
408
          dashes=`echo "$$dashes" | sed s/./=/g`; \
 
409
          if test "$$failed" -eq 0; then \
 
410
            echo "$$grn$$dashes"; \
 
411
          else \
 
412
            echo "$$red$$dashes"; \
 
413
          fi; \
 
414
          echo "$$banner"; \
 
415
          test -z "$$skipped" || echo "$$skipped"; \
 
416
          test -z "$$report" || echo "$$report"; \
 
417
          echo "$$dashes$$std"; \
 
418
          test "$$failed" -eq 0; \
 
419
        else :; fi
 
420
 
326
421
distdir: $(DISTFILES)
327
422
        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
328
423
        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
355
450
        done
356
451
check-am: all-am
357
452
        $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
 
453
        $(MAKE) $(AM_MAKEFLAGS) check-TESTS
358
454
check: check-am
359
455
all-am: Makefile
360
456
installdirs:
456
552
 
457
553
.MAKE: check-am install-am install-strip
458
554
 
459
 
.PHONY: CTAGS GTAGS all all-am check check-am clean \
 
555
.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
460
556
        clean-checkPROGRAMS clean-generic clean-libtool ctags \
461
557
        distclean distclean-compile distclean-generic \
462
558
        distclean-libtool distclean-tags distdir dvi dvi-am html \