From ed325fd09b05ed97b8f2b34f7aef3d9e97ffce80 Mon Sep 17 00:00:00 2001 From: Luc <luc@bijl.us> Date: Sun, 22 Dec 2024 13:29:11 +0100 Subject: [PATCH] src/meson.build: added find and test scripts functionality --- src/meson.build | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index 145e509..509d9af 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,4 +1,14 @@ +# Find scripts +encrypt = find_program('zlevis-encrypt') +decrypt = find_program('zlevis-decrypt') +fetch = find_program('zlevis-fetch') + +# Test the scripts +test('zlevis-encrypt', encrypt, args: '--summary') +test('zlevis-decrypt', decrypt, args: '--summary') +test('zlevis-fetch', fetch, args: '--summary') + # Add paths of scripts to bins bins += join_paths(meson.current_source_dir(), 'zlevis-encrypt') bins += join_paths(meson.current_source_dir(), 'zlevis-decrypt') -bins += join_paths(meson.current_source_dir(), 'zlevis-fetch') +bins += join_paths(meson.current_source_dir(), 'zlevis-fetch') \ No newline at end of file