~ubuntu-branches/ubuntu/precise/libgnome-keyring/precise-201110220705

« back to all changes in this revision

Viewing changes to tests/gtest.make

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Josselin Mouette
  • Date: 2011-04-21 19:35:19 UTC
  • mfrom: (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110421193519-cukx1vu0olus12tk
Tags: 3.0.0-2
[ Josselin Mouette ]
Break gnome-keyring < 3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
# The following need to be declared before this file is included:
3
 
#   TEST_AUTO     A list of C files with tests
4
 
#   TEST_LIBS     Libraries to link the tests to
5
 
#   TEST_FLAGS    Flags for the tests
6
 
 
7
 
# ------------------------------------------------------------------------------
8
 
 
9
 
INCLUDES= \
10
 
        -I$(top_srcdir) \
11
 
        -I$(top_builddir) \
12
 
        -I$(srcdir)/.. \
13
 
        -I$(srcdir)/../.. \
14
 
        $(GLIB_CFLAGS)
15
 
 
16
 
LIBS = \
17
 
        $(GLIB_LIBS)
18
 
 
19
 
noinst_PROGRAMS= \
20
 
        run-auto-test
21
 
 
22
 
run-auto-test.h: $(TEST_AUTO) Makefile.am $(top_srcdir)/tests/prep-gtest.sh
23
 
        sh $(top_srcdir)/tests/prep-gtest.sh -b run-auto-test $(TEST_AUTO)
24
 
 
25
 
run-auto-test.c: run-auto-test.h
26
 
 
27
 
run_auto_test_SOURCES = \
28
 
        run-auto-test.c run-auto-test.h \
29
 
        $(TEST_AUTO)
30
 
 
31
 
run_auto_test_LDADD = \
32
 
        $(TEST_LIBS) \
33
 
        $(LIBRARY_LIBS)
34
 
 
35
 
run_auto_test_CFLAGS = \
36
 
        $(TEST_FLAGS)
37
 
 
38
 
BUILT_SOURCES = \
39
 
        run-auto-test.c \
40
 
        run-auto-test.h
41
 
 
42
 
# ------------------------------------------------------------------------------
43
 
# Run the tests
44
 
 
45
 
test-auto: $(noinst_PROGRAMS)
46
 
        gtester --verbose -k -m=slow ./run-auto-test
47
 
 
48
 
check-am: $(noinst_PROGRAMS)
49
 
        TEST_DATA=$(srcdir)/test-data gtester -m=slow ./run-auto-test