diff options
author | Bastien Nocera <hadess@hadess.net> | 2023-07-06 10:11:34 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2023-07-06 10:31:46 +0200 |
commit | bdc563862767b3b8e7edcd0e68b9f0d395cd28da (patch) | |
tree | 5e9473ed794614ba1c8ceb09c01fee14f455a788 | |
parent | e4e498e1983617a7c045e0cd8cdfb1dc199165bf (diff) |
linux: Add installed-tests manifest
This will allow running the tests to target installed binaries.
-rw-r--r-- | src/meson.build | 17 | ||||
-rw-r--r-- | src/upower-integration.test.in | 3 |
2 files changed, 20 insertions, 0 deletions
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 |