diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2012-07-11 21:46:25 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2012-07-11 21:46:25 +0200 |
commit | 2e4ec4a2a7b6f23dbe979c67ffe5abf471609f93 (patch) | |
tree | a7e41f73c1b539824cc443641343db00fca347b8 /tests/Makefile.am | |
parent | bd7a606363967333bc33e4c0ab7a1c50824e96ef (diff) | |
parent | 4af0bd2bf3acca2dc08656ba0e7105a28e2d0d1b (diff) | |
download | ayatana-indicator-power-2e4ec4a2a7b6f23dbe979c67ffe5abf471609f93.tar.gz ayatana-indicator-power-2e4ec4a2a7b6f23dbe979c67ffe5abf471609f93.tar.bz2 ayatana-indicator-power-2e4ec4a2a7b6f23dbe979c67ffe5abf471609f93.zip |
* New upstream release.
* debian/control: updated glib requirement
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..0c60247 --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,62 @@ +TESTS = +CLEANFILES = +BUILT_SOURCES = +check_PROGRAMS = + +### +### +### + +# 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) + +### +### +### + +TEST_LIBS = \ + $(top_builddir)/src/.libs/libpower.a \ + $(INDICATOR_LIBS) \ + $(UPOWER_LIBS) \ + $(COVERAGE_LDFLAGS) \ + libgtest.a + +TEST_CPPFLAGS = \ + $(AM_CPPFLAGS) \ + $(UPOWER_CFLAGS) \ + $(INDICATOR_CFLAGS) + +BUILT_SOURCES += gschemas.compiled +CLEANFILES += gschemas.compiled +gschemas.compiled: Makefile + @glib-compile-schemas --targetdir=$(abs_builddir) $(top_builddir)/data + +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-dbus-listener +#check_PROGRAMS += test-dbus-listener +#test_dbus_listener_SOURCES = test-dbus-listener.cc +#test_dbus_listener_LDADD = $(TEST_LIBS) +#test_dbus_listener_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) -DSCHEMA_DIR="\"$(top_builddir)/tests/\"" + +### +### +### |