From 44c836e0d9cf5bec0288a5b0eefc2692471f3b20 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 19 Feb 2021 12:19:27 -0800 Subject: add a script to run a single test As a Meson developer it's often frustrating to have a single functional test with a regression. These tests can be awkward to reproduce, especially when they make use of a test.json file. This script provides a simmple interface to call functional tests 1 at a time, regardless of whether they use a test.json or not. If they do use a test.json, and have a matrix, then the `--subtest` option can be used to select spcific combinations, for example: ```sh ./run_single_test.py "test cases/frameworks/15 llvm" --subtest 1 ``` will run only the second (zero indexed of course) subtest from the llvm test cases. This is not a super elegent script, but this is super useful. --- run_mypy.py | 1 + 1 file changed, 1 insertion(+) (limited to 'run_mypy.py') diff --git a/run_mypy.py b/run_mypy.py index e6900c7..1c886f8 100755 --- a/run_mypy.py +++ b/run_mypy.py @@ -39,6 +39,7 @@ modules = [ 'mesonbuild/optinterpreter.py', 'run_mypy.py', + 'run_single_test.py', 'tools' ] -- cgit v1.1