~noskcaj/ubuntu/vivid/gnome-keyring/3.15.90

« back to all changes in this revision

Viewing changes to pkcs11/gnome2-store/tests/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-14 22:13:02 UTC
  • mfrom: (1.3.1)
  • mto: (80.2.8 experimental) (1.1.77)
  • mto: This revision was merged to the branch mainline in revision 148.
  • Revision ID: package-import@ubuntu.com-20120514221302-0l3gjmqpe6xopond
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
TESTING_FILES = \
3
 
        unit-test-gnome2-file.c \
4
 
        test-module.c
5
 
 
6
 
TESTING_LIBS = \
 
1
include $(top_srcdir)/Makefile.decl
 
2
 
 
3
INCLUDES = \
 
4
        -I$(top_builddir) \
 
5
        -I$(top_srcdir) \
 
6
        -I$(top_srcdir)/pkcs11 \
 
7
        -DSRCDIR="\"@abs_srcdir@\"" \
 
8
        $(GLIB_CFLAGS) \
 
9
        $(LIBGCRYPT_CFLAGS)
 
10
 
 
11
LDADD = \
7
12
        $(top_builddir)/pkcs11/gnome2-store/libgkm-gnome2-store.la \
8
13
        $(top_builddir)/pkcs11/gkm/libgkm.la \
9
 
        $(top_builddir)/egg/libegg.la
10
 
 
11
 
include $(top_srcdir)/testing/testing.make
12
 
 
13
 
EXTRA_DIST += \
14
 
        test-data \
 
14
        $(top_builddir)/egg/libegg.la \
 
15
        $(GLIB_LIBS) \
 
16
        $(LIBGCRYPT_LIBS)
 
17
 
 
18
if WITH_P11_TESTS
 
19
CHECK_PROGS = check-gnome2-module
 
20
else
 
21
CHECK_PROGS =
 
22
endif
 
23
 
 
24
CHECK_FILES = \
15
25
        p11-tests.conf
16
26
 
17
 
# ---------------------------------------------------------------------
18
 
 
19
 
noinst_PROGRAMS += \
20
 
        dump-gnome2-file
21
 
 
22
 
dump_gnome2_file_SOURCES = \
23
 
        dump-gnome2-file.c
24
 
 
25
 
dump_gnome2_file_LDADD = \
26
 
        $(top_builddir)/pkcs11/gkm/libgkm.la \
27
 
        $(top_builddir)/pkcs11/gnome2-store/libgkm-gnome2-store.la \
28
 
        $(top_builddir)/egg/libegg.la \
29
 
        $(DAEMON_LIBS)
 
27
TEST_PROGS = \
 
28
        test-gnome2-file \
 
29
        test-gnome2-storage \
 
30
        test-gnome2-private-key
 
31
 
 
32
test_gnome2_storage_SOURCES = \
 
33
        test-gnome2-storage.c \
 
34
        mock-gnome2-module.c mock-gnome2-module.h
 
35
 
 
36
test_gnome2_private_key_SOURCES = \
 
37
        test-gnome2-private-key.c \
 
38
        mock-gnome2-module.c mock-gnome2-module.h
 
39
 
 
40
check_PROGRAMS = $(TEST_PROGS)
 
41
 
 
42
test: $(TEST_PROGS) $(CHECK_PROGS) $(CHECK_FILES)
 
43
        gtester --verbose -m $(TEST_MODE) --g-fatal-warnings $(TEST_PROGS)
 
44
        @for prog in $(CHECK_PROGS); do SRCDIR='.' ./$$prog || exit 1; done
 
45
 
 
46
check-local: test
 
47
 
 
48
all-local: $(check_PROGRAMS)
 
49
 
 
50
noinst_PROGRAMS = \
 
51
        frob-gnome2-file \
 
52
        $(CHECK_PROGS)
 
53
 
 
54
check_gnome2_module_CFLAGS = $(P11_TESTS_CFLAGS)
 
55
check_gnome2_module_LDADD = $(P11_TESTS_LIBS) $(LDADD)
 
56
 
 
57
EXTRA_DIST = \
 
58
        p11-tests.conf.in \
 
59
        files
 
60
 
 
61
CLEANFILES = \
 
62
        $(CHECK_FILES)