From bdc563862767b3b8e7edcd0e68b9f0d395cd28da Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 6 Jul 2023 10:11:34 +0200 Subject: [PATCH] linux: Add installed-tests manifest This will allow running the tests to target installed binaries. --- src/meson.build | 17 +++++++++++++++++ src/upower-integration.test.in | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 src/upower-integration.test.in diff --git a/src/meson.build b/src/meson.build index acbe4d1..a2352ac 100644 --- a/src/meson.build +++ b/src/meson.build @@ -142,4 +142,21 @@ if os_backend == 'linux' and gobject_introspection.found() timeout: 80, ) endforeach + + install_data( [ + 'linux/integration-test.py', + 'linux/output_checker.py', + ], + install_dir: get_option('prefix') / get_option('libexecdir') / 'upower' + ) + install_subdir('linux/tests/', + install_dir: get_option('prefix') / get_option('libexecdir') / 'upower' + ) + + configure_file( + input: 'upower-integration.test.in', + output: 'upower-integration.test', + install_dir: get_option('datadir') / 'installed-tests' / 'upower', + configuration: cdata + ) endif diff --git a/src/upower-integration.test.in b/src/upower-integration.test.in new file mode 100644 index 0000000..151ded0 --- /dev/null +++ b/src/upower-integration.test.in @@ -0,0 +1,3 @@ +[Test] +Type=session +Exec=@libexecdir@/upower/integration-test.py