meson.build 674 Bytes
Newer Older
1 2
subdir('unit')

3 4
test_name = 'basic.py'

5
if photos_installed_tests_enabled
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
  test_conf = configuration_data()
  test_conf.set('installed_testdir', photos_installed_test_execdir)
  test_conf.set('program', test_name)

  configure_file(
    input: 'template.test.in',
    output: test_name + '.test',
    configuration: test_conf,
    install: true,
    install_dir: photos_installed_test_metadir,
  )

  install_data(
    [test_name, 'testutil.py'],
    install_dir: photos_installed_test_execdir,
  )
endif

if get_option('dogtail')
  test_env = [
    'LC_ALL=C',
    'GSETTINGS_BACKEND=memory',
  ]

  test(
    test_name,
    files(test_name),
    env: test_env,
  )
endif