[gnome-desktop] tests: Turn the tests into installed tests
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] tests: Turn the tests into installed tests
- Date: Wed, 5 Nov 2014 14:56:46 +0000 (UTC)
commit 5e0514ced283326d79e781f0c86b684764201580
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 5 15:53:01 2014 +0100
tests: Turn the tests into installed tests
https://bugzilla.gnome.org/show_bug.cgi?id=737140
tests/Makefile.am | 5 +++--
tests/gtk-reftest.c | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 22b94ea..6bfd36d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -6,18 +6,19 @@ AM_CPPFLAGS = \
-I$(top_srcdir) \
$(GNOME_DESKTOP_CFLAGS) \
-DG_LOG_DOMAIN=\"GnomeDesktop\" \
+ -DINSTALLED_TEST_DIR=\"$(installed_testdir)\" \
$(NULL)
AM_CFLAGS = -g $(WARN_CFLAGS)
TESTS_ENVIRONMENT += G_ENABLE_DIAGNOSTIC=0
-test_programs = \
+installed_test_programs = \
wall-clock \
gtk-reftest \
$(NULL)
-EXTRA_DIST += \
+dist_installed_test_data = \
C.ref.ui \
C.ui \
en_US.utf-8.ref.ui \
diff --git a/tests/gtk-reftest.c b/tests/gtk-reftest.c
index 724cc73..e6e44f6 100644
--- a/tests/gtk-reftest.c
+++ b/tests/gtk-reftest.c
@@ -559,7 +559,7 @@ main (int argc, char **argv)
g_test_init (&argc, &argv, NULL);
gtk_init (&argc, &argv);
- basedir = g_test_get_dir (G_TEST_DIST);
+ basedir = INSTALLED_TEST_DIR;
file = g_file_new_for_commandline_arg (basedir);
add_test_for_file (file);
g_object_unref (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]