We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b2fbff commit 4f80429Copy full SHA for 4f80429
2 files changed
meson.build
@@ -21,7 +21,11 @@ install_data(
21
)
22
23
python_paths = [join_paths(meson.current_build_dir(), '../src/')]
24
-run_tests = find_program('tests/run_tests.sh')
+if host_machine.system() == 'darwin'
25
+ run_tests = find_program('tests/run_tests_macos.sh')
26
+else
27
+ run_tests = find_program('tests/run_tests.sh')
28
+endif
29
test('unit-tests',
30
run_tests,
31
args: ['../tests'],
tests/run_tests_macos.sh
@@ -0,0 +1,5 @@
1
+#!/bin/sh
2
+
3
+mkdir -p /tmp/test_env
4
+DESTDIR=/tmp/test_env meson install
5
+PYTHONPATH=$(find /tmp/test_env -name pyxcrypt -exec dirname {} +) python3 -P -m unittest discover -s "$1" -v
0 commit comments