[gnome-photos/wip/rishi/unit-tests: 3/4] build: Cache the value of the 'installed_tests' option globally



commit 49addaef13f77723391aa29e7539b85110e59873
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 2 11:08:35 2018 +0100

    build: Cache the value of the 'installed_tests' option globally
    
    This will be used in a subsequent commit to add unit tests.

 meson.build       | 1 +
 tests/meson.build | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index ca10374a..2b492062 100644
--- a/meson.build
+++ b/meson.build
@@ -21,6 +21,7 @@ photos_installed_test_execdir = join_paths(photos_libexecdir, 'installed-tests',
 photos_namespace = 'org.gnome.Photos'
 
 photos_buildtype = get_option('buildtype')
+photos_installed_tests_enabled = get_option('installed_tests')
 
 gnome = import('gnome')
 i18n = import('i18n')
diff --git a/tests/meson.build b/tests/meson.build
index 79e24530..e4396f05 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,6 +1,6 @@
 test_name = 'basic.py'
 
-if get_option('installed_tests')
+if photos_installed_tests_enabled
   test_conf = configuration_data()
   test_conf.set('installed_testdir', photos_installed_test_execdir)
   test_conf.set('program', test_name)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]