aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-05-24 10:00:15 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-05-24 10:00:15 -0500
commitf434dc2f9579aeea0c7afe6fa8b78d56c560707f (patch)
tree8164c8ac42cc0989f082f4dfaa388158c828ffbb /tests
parent622c18549745d3824713fd9d7a4a0d89b31257a5 (diff)
downloadayatana-indicator-power-f434dc2f9579aeea0c7afe6fa8b78d56c560707f.tar.gz
ayatana-indicator-power-f434dc2f9579aeea0c7afe6fa8b78d56c560707f.tar.bz2
ayatana-indicator-power-f434dc2f9579aeea0c7afe6fa8b78d56c560707f.zip
add a 'hello world' test for instantiating IndicatorPower
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am37
1 files changed, 25 insertions, 12 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 87dd606..341abdd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,9 +2,6 @@ TESTS =
CLEANFILES =
check_PROGRAMS =
-AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I${top_srcdir}/src -Wall -Werror
-AM_CXXFLAGS = $(GTEST_CXXFLAGS)
-
###
###
###
@@ -12,27 +9,43 @@ AM_CXXFLAGS = $(GTEST_CXXFLAGS)
# stock UMB tests on user-visible strings
include $(srcdir)/Makefile.am.strings
+check_LIBRARIES = libgtest.a
+nodist_libgtest_a_SOURCES = \
+ $(GTEST_SOURCE)/src/gtest-all.cc \
+ $(GTEST_SOURCE)/src/gtest_main.cc
+
+AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I${top_srcdir}/src -Wall -Werror
+AM_CXXFLAGS = $(GTEST_CXXFLAGS)
+
###
###
###
-TESTS += test-device
-check_PROGRAMS += test-device
-test_device_SOURCES = test-device.cc
-test_device_LDADD = \
+TEST_LIBS = \
$(top_builddir)/src/libpower.la \
$(INDICATOR_LIBS) \
$(UPOWER_LIBS) \
$(COVERAGE_LDFLAGS) \
libgtest.a
-test_device_CPPFLAGS = \
+TEST_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(UPOWER_CFLAGS) \
$(INDICATOR_CFLAGS) \
$(COVERAGE_CFLAGS)
-check_LIBRARIES = libgtest.a
-nodist_libgtest_a_SOURCES = \
- $(GTEST_SOURCE)/src/gtest-all.cc \
- $(GTEST_SOURCE)/src/gtest_main.cc
+TESTS += test-device
+check_PROGRAMS += test-device
+test_device_SOURCES = test-device.cc
+test_device_LDADD = $(TEST_LIBS)
+test_device_CPPFLAGS = $(TEST_CPPFLAGS)
+
+TESTS += test-indicator
+check_PROGRAMS += test-indicator
+test_indicator_SOURCES = test-indicator.cc
+test_indicator_LDADD = $(TEST_LIBS)
+test_indicator_CPPFLAGS = $(TEST_CPPFLAGS)
+
+###
+###
+###