diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-05-24 16:50:58 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-05-24 16:50:58 -0500 |
commit | d8484ce5caf9fd5f4efb30368ccc9b70b1f38710 (patch) | |
tree | f4e80aaafadfc65baefda38972080359fd59a5c7 /tests/Makefile.am | |
parent | caae4241b85412d6914d6fd1e0a9bac9da35c6f3 (diff) | |
download | ayatana-indicator-power-d8484ce5caf9fd5f4efb30368ccc9b70b1f38710.tar.gz ayatana-indicator-power-d8484ce5caf9fd5f4efb30368ccc9b70b1f38710.tar.bz2 ayatana-indicator-power-d8484ce5caf9fd5f4efb30368ccc9b70b1f38710.zip |
first draft of getting GSettings working in the unit tests before the schema is installed.
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 341abdd..8169e3a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,5 +1,6 @@ TESTS = -CLEANFILES = +CLEANFILES = +BUILT_SOURCES = check_PROGRAMS = ### @@ -34,6 +35,11 @@ TEST_CPPFLAGS = \ $(INDICATOR_CFLAGS) \ $(COVERAGE_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 @@ -44,7 +50,7 @@ TESTS += test-indicator check_PROGRAMS += test-indicator test_indicator_SOURCES = test-indicator.cc test_indicator_LDADD = $(TEST_LIBS) -test_indicator_CPPFLAGS = $(TEST_CPPFLAGS) +test_indicator_CPPFLAGS = $(TEST_CPPFLAGS) -DSCHEMA_DIR="\"$(top_builddir)/tests/\"" ### ### |