diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-11-25 17:21:40 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-12-07 15:52:37 +0100 |
commit | a1d6dbb1c94685d7972f63ed2762fe4ba0251287 (patch) | |
tree | d0dbeff3b4b24b7a093349f0612036ceba9a7072 /meson.build | |
parent | 30ec2eaef5f1e3c6639304316a12bf01a5cd7150 (diff) | |
download | systemd-a1d6dbb1c94685d7972f63ed2762fe4ba0251287.tar.gz |
tests: add pytest tests for ukify
Some gymnastics were needed to import ukify as a module. Before the file
was templated, this was trivial: insert the directory in sys.path, call import.
But it's a real pain to import the unsuffixed file after processing. Instead,
the untemplated file is imported, which works well enough for tests and is
very simple.
The tests can be called via pytest:
PATH=build/:$PATH pytest -v src/ukify/test/test_ukify.py
or directly:
PATH=build/:$PATH src/ukify/test/test_ukify.py
or via the meson test machinery output:
meson test -C build test-ukify -v
or without verbose output:
meson test -C build test-ukify
Zekret files are obfuscated using base64.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 84b2a22ebe..9f8556ff96 100644 --- a/meson.build +++ b/meson.build @@ -2198,6 +2198,7 @@ subdir('src/test') subdir('src/fuzz') subdir('rules.d') subdir('test') +subdir('src/ukify/test') # needs to be last for test_env variable ############################################################ |