~ps-jenkins/indicator-power/latestsnapshot-12.10.6+13.10.20131008-0ubuntu1

« back to all changes in this revision

Viewing changes to tests/Makefile.am

  • Committer: Tarmac
  • Author(s): Charles Kerr
  • Date: 2013-06-19 21:13:09 UTC
  • mfrom: (167.1.32 gmenuify)
  • Revision ID: tarmac-20130619211309-nj444ogmrhsi7r9f
Convert the power indicator into a service that exports GMenus and GActions in accordance with our indicator-ng design.

Approved by PS Jenkins bot, Ted Gould.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
check_PROGRAMS =
5
5
 
6
6
###
7
 
###
 
7
###  tests: stock tests on user-visible strings
8
8
###
9
9
 
10
 
# stock UMB tests on user-visible strings
11
10
include $(srcdir)/Makefile.am.strings
12
11
 
 
12
###
 
13
###  gtest library
 
14
###
 
15
 
13
16
check_LIBRARIES = libgtest.a
14
17
nodist_libgtest_a_SOURCES = \
15
 
  $(GTEST_SOURCE)/gtest-all.cc \
16
 
  $(GTEST_SOURCE)/gtest_main.cc
 
18
  $(GTEST_SOURCE)/src/gtest-all.cc \
 
19
  $(GTEST_SOURCE)/src/gtest_main.cc
17
20
 
18
21
AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I${top_srcdir}/src -Wall -Werror
19
22
AM_CXXFLAGS = $(GTEST_CXXFLAGS)
20
23
 
21
24
###
22
 
###
23
 
###
24
 
 
25
 
TEST_LIBS = \
26
 
        $(top_builddir)/src/.libs/libpower.a \
27
 
        $(INDICATOR_LIBS) \
28
 
        $(UPOWER_LIBS) \
29
 
        $(COVERAGE_LDFLAGS) \
30
 
        $(XORG_GTEST_LDFLAGS) \
31
 
        libgtest.a
32
 
 
33
 
TEST_CPPFLAGS = \
34
 
        $(AM_CPPFLAGS) \
35
 
        $(UPOWER_CFLAGS) \
36
 
        $(INDICATOR_CFLAGS)
37
 
 
38
 
BUILT_SOURCES += gschemas.compiled
39
 
CLEANFILES += gschemas.compiled
40
 
gschemas.compiled: Makefile
41
 
        @glib-compile-schemas --targetdir=$(abs_builddir) $(top_builddir)/data
 
25
###  tests: indicator-power-device
 
26
###
 
27
 
 
28
TEST_LIBS = $(COVERAGE_LDFLAGS) libgtest.a -lpthread
 
29
TEST_CPPFLAGS = $(SERVICE_DEPS_CFLAGS) $(AM_CPPFLAGS)
42
30
 
43
31
TESTS += test-device
44
32
check_PROGRAMS += test-device
45
33
test_device_SOURCES = test-device.cc
46
 
test_device_LDADD = $(TEST_LIBS)
47
 
test_device_CPPFLAGS = $(TEST_CPPFLAGS)
48
 
 
 
34
test_device_CPPFLAGS = $(TEST_CPPFLAGS) -Wall -Werror -Wextra
 
35
test_device_LDADD = \
 
36
  $(top_builddir)/src/libindicatorpower-service.a \
 
37
  $(SERVICE_DEPS_LIBS) \
 
38
  $(TEST_LIBS)
 
39
 
 
40
 
 
41
# (FIXME: incomplete)
 
42
#
 
43
###
 
44
###  tests: indicator-power-service
 
45
###
 
46
#
 
47
# build a local copy of the GSettings schemas
 
48
#BUILT_SOURCES += gschemas.compiled
 
49
#CLEANFILES += gschemas.compiled
 
50
#gschemas.compiled: Makefile
 
51
#       @glib-compile-schemas --targetdir=$(abs_builddir) $(top_builddir)/data
 
52
#
 
53
#TESTS += test-service
 
54
#check_PROGRAMS += test-service
 
55
#test_service_SOURCES = test-service.cc
 
56
#test_service_LDADD = $(TEST_LIBS)
 
57
#test_service_CPPFLAGS = $(TEST_CPPFLAGS) -DSCHEMA_DIR="\"$(top_builddir)/tests/\""
 
58
#
49
59
#TESTS += test-dbus-listener
50
60
#check_PROGRAMS += test-dbus-listener
51
61
#test_dbus_listener_SOURCES = test-dbus-listener.cc
52
62
#test_dbus_listener_LDADD = $(TEST_LIBS)
53
63
#test_dbus_listener_CPPFLAGS = $(TEST_CPPFLAGS)
54
 
 
55
 
TESTS += test-indicator
56
 
check_PROGRAMS += test-indicator
57
 
test_indicator_SOURCES = test-indicator.cc
58
 
test_indicator_LDADD = $(TEST_LIBS)
59
 
test_indicator_CPPFLAGS = $(TEST_CPPFLAGS) -DSCHEMA_DIR="\"$(top_builddir)/tests/\""
60
 
 
61
 
###
62
 
###
63
 
###
 
64
#