From 63b21386787648c69b0bc49a0d72c9df0af768e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 21 Mar 2024 22:54:13 +0100 Subject: [PATCH] meson: Wire up test-suite --- meson.build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/meson.build b/meson.build index 505f85cb..12b979dc 100644 --- a/meson.build +++ b/meson.build @@ -8,3 +8,17 @@ subdir('agents') subdir('frida_tools') subdir('scripts') subdir('completions') + +pathsep = host_machine.system() == 'windows' ? ';' : ':' + +test('frida-tools', python, + args: ['-m', 'unittest', 'discover'], + workdir: meson.current_source_dir(), + env: { + 'PYTHONPATH': pathsep.join([ + meson.current_source_dir() / 'subprojects' / 'frida-python', + meson.current_build_dir() / 'subprojects' / 'frida-python' / 'src', + ]), + }, + timeout: 30, +)