Commit 668d8212 authored by Debarshi Ray's avatar Debarshi Ray

build: Cache the value of the 'installed_tests' option globally

This will be used in a subsequent commit to add unit tests.
parent 0ce96a49
Pipeline #38627 passed with stage
in 11 minutes and 34 seconds
......@@ -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')
......
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment