src/meson.build: added find and test scripts functionality

This commit is contained in:
Luc Bijl 2024-12-22 13:29:11 +01:00
parent f2405d842b
commit ed325fd09b

View file

@ -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')