aboutsummaryrefslogtreecommitdiff
path: root/run_single_test.py
AgeCommit message (Collapse)AuthorFilesLines
2023-12-13Use SPDX-License-Identifier consistentlyDylan Baker1-2/+2
This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field
2023-08-17tests: consolidate MESON_SKIP_TEST reporting and use it in unittestsEli Schwartz1-10/+3
Previously, we only reported the skip reason when running project tests.
2023-05-25run_single_test: add a --quick option to skip compiler/tool checkingDylan Baker1-2/+5
This can be the longest part of the entire test process, often with no benefit because we already know the environment is sane. So, let's have an option save some time.
2022-07-11run_single_test: Allow passing extra args like run_project_testDylan Baker1-1/+4
So you can do things like `run_single_test.py <path> -- -Ddefault_library=both`
2022-04-03project tests: log the reason why a test is skippedEli Schwartz1-2/+18
We expose a reason after the string 'MESON_SKIP_TEST', but it is actually ignored when running the test, so it is only useful as documentation and really might as well be a comment. Make it even more useful by actually printing that string after the '[SKIPPED]' message. Also, sometimes a test can be skipped for multiple reasons, and it would be useful to know which one occurred.
2021-11-22run_single_test: honor the --use-tmpdir flagDylan Baker1-1/+1
2021-11-22run_single_test: fix running failing testsDylan Baker1-1/+10
2021-07-07Drop checking skippable() in run_single_testJon Turney1-2/+2
Drop checking skippable() in run_single_test. It always returns True unless we are under CI, so checking it here is pointless.
2021-06-18tests: Always enable the traceback in run_project_tests.pyDaniel Mensinger1-1/+1
2021-06-09tests: Reduce complexity of the run_tests signatureDaniel Mensinger1-24/+12
2021-06-09typing: Fully annotate run_project_tests.pyDaniel Mensinger1-1/+1
2021-03-23run_single_test: Handle MESON_SKIP_TEST correctlyDylan Baker1-3/+3
2021-02-23add a script to run a single testDylan Baker1-0/+89
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.