~snaggen/rhythmbox/bpm

« back to all changes in this revision

Viewing changes to tests/Makefile.am

  • Committer: James Livingston
  • Author(s): James Livingston
  • Date: 2006-06-02 13:46:16 UTC
  • Revision ID: git-v1:3a79c0fb2234303984ff8bf896d7067dca65f740
+ macros/check.m4: add support for using check for unit tests, the .m4

2006-06-02  James Livingston  <doclivingston@gmail.com>

        * configure.ac:
        + macros/check.m4: add support for using check for unit tests, the .m4
        files is so autogen can run without check being installed

        * tests/Makefile.am:
        + tests/test-rhythmdb.c: update the tests to new rhythmdb API, port
        some of the old tests, and add some new ones. Currently
        deserialisation tests 2 and 3 fail, for reasons I haven't figured out
        yet (the query doesn't return any entries).

        - tests/deserialization-test1.xml:
        - tests/deserialization-test2.xml:
        - tests/deserialization-test3.xml:
        - tests/test-rhythmdb-indexing.c:
        - tests/test-rhythmdb-simple.c:
        - tests/test-rhythmdb-tree-deserialization.c: remove old tests that
        have been ported

        - tests/test-cd.c:
        - tests/test-cmdline.c: remove obsolete tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
## arch-tag: Automake rules for test programs
2
2
## Process this file with automake to produce Makefile.in
3
3
 
4
 
if FALSE
5
 
 
6
 
#TESTS = test-rhythmdb-simple test-rhythmdb-indexing \
7
 
#                 test-rhythmdb-query test-rhythmdb-tree-serialization \
8
 
#                 test-rhythmdb-tree-deserialization \
9
 
#                 test-rhythmdb-view
10
 
 
11
 
TESTS = 
12
 
 
13
 
noinst_PROGRAMS = test-cmdline $(TESTS)
14
 
 
15
 
test_rhythmdb_simple_SOURCES = test-rhythmdb-simple.c
16
 
test_rhythmdb_simple_LDADD =                                    \
17
 
        $(top_builddir)/rhythmdb/librhythmdb.la                 \
18
 
        $(top_builddir)/lib/librb.la                            \
19
 
        $(RHYTHMBOX_LIBS)
20
 
 
21
 
test_rhythmdb_indexing_SOURCES = test-rhythmdb-indexing.c
22
 
test_rhythmdb_indexing_LDADD =                                  \
23
 
        $(top_builddir)/rhythmdb/librhythmdb.la                 \
24
 
        $(top_builddir)/lib/librb.la                            \
25
 
        $(RHYTHMBOX_LIBS)
26
 
 
27
 
test_rhythmdb_query_SOURCES = test-rhythmdb-query.c
28
 
test_rhythmdb_query_LDADD =                                     \
29
 
        $(top_builddir)/rhythmdb/librhythmdb.la                 \
30
 
        $(top_builddir)/lib/librb.la                            \
31
 
        $(RHYTHMBOX_LIBS)
32
 
 
33
 
test_rhythmdb_tree_serialization_SOURCES = test-rhythmdb-tree-serialization.c
34
 
test_rhythmdb_tree_serialization_LDADD =                                \
35
 
        $(top_builddir)/rhythmdb/librhythmdb.la                 \
36
 
        $(top_builddir)/lib/librb.la                            \
37
 
        $(RHYTHMBOX_LIBS)
38
 
 
39
 
test_rhythmdb_tree_deserialization_SOURCES = test-rhythmdb-tree-deserialization.c
40
 
test_rhythmdb_tree_deserialization_LDADD =                      \
41
 
        $(top_builddir)/rhythmdb/librhythmdb.la                 \
42
 
        $(top_builddir)/lib/librb.la                            \
43
 
        $(RHYTHMBOX_LIBS)
44
 
 
45
 
test_rhythmdb_view_SOURCES = test-rhythmdb-view.c
46
 
test_rhythmdb_view_LDADD =                                      \
47
 
        $(top_builddir)/rhythmdb/librhythmdb.la                 \
48
 
        $(top_builddir)/lib/librb.la                            \
 
4
TESTS =
 
5
 
 
6
test_rhythmdb_SOURCES = test-rhythmdb.c
 
7
test_rhythmdb_LDADD = \
 
8
        $(CHECK_LIBS)                                           \
 
9
        $(top_builddir)/rhythmdb/librhythmdb.la                 \
 
10
        $(top_builddir)/lib/librb.la                            \
 
11
        $(top_builddir)/metadata/librbmetadata.la               \
49
12
        $(top_builddir)/widgets/librbwidgets.la                 \
50
13
        $(RHYTHMBOX_LIBS)
51
14
 
52
 
test_cmdline_SOURCES = test-cmdline.c
53
 
 
54
 
test_cmdline_LDADD =                                            \
55
 
        $(top_builddir)/monkey-media/libmonkey-media.la         \
56
 
        $(RHYTHMBOX_LIBS)
57
 
 
58
 
test_cmdline_LDFLAGS = -export-dynamic
59
 
 
60
15
INCLUDES =                                                      \
61
16
        -DGNOMELOCALEDIR=\""$(datadir)/locale"\"                \
62
17
        -DG_LOG_DOMAIN=\"Rhythmbox-tests\"                      \
63
18
        -I$(top_srcdir)                                         \
64
19
        $(RHYTHMBOX_CFLAGS)                                     \
65
20
        -I$(top_srcdir)/lib                                     \
66
 
        -I$(top_srcdir)/monkey-media                            \
67
 
        -I$(top_srcdir)/rhythmdb                                \
68
 
        -I$(top_srcdir)/widgets
69
 
 
 
21
        -I$(top_srcdir)/metadata                                \
 
22
        -I$(top_srcdir)/widgets                                 \
 
23
        -I$(top_srcdir)/rhythmdb
 
24
 
 
25
 
 
26
if HAVE_CHECK
 
27
TESTS += test-rhythmdb
70
28
endif
71
29
 
72
 
EXTRA_DIST = deserialization-test1.xml deserialization-test2.xml deserialization-test3.xml
 
30
OLD_TESTS = \
 
31
        test-rhythmdb-query.c                                   \
 
32
        test-rhythmdb-tree-serialization.c                      \
 
33
        test-rhythmdb-view.c
 
34
 
 
35
noinst_PROGRAMS = $(TESTS)
 
36
 
 
37
 
 
38
EXTRA_DIST = deserialization-test1.xml deserialization-test2.xml deserialization-test3.xml $(OLD_TESTS)