aboutsummaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-08-16 15:53:26 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-08-16 17:40:03 -0400
commit3c7ab542c0c4770241eae149b0d4cd8de329aee0 (patch)
tree5f6959dd4d0d74ddf854d6c07237a3be4705d634 /run_project_tests.py
parent25b0988d4e40d22d907169b4f73ff07b4cb7fd0e (diff)
downloadmeson-3c7ab542c0c4770241eae149b0d4cd8de329aee0.zip
meson-3c7ab542c0c4770241eae149b0d4cd8de329aee0.tar.gz
meson-3c7ab542c0c4770241eae149b0d4cd8de329aee0.tar.bz2
deprecate running "meson builddir" without setup subcommand
This is ambiguous, if the build directory has the same name as a subcommand then we end up running the subcommand. It also means we have a hard time adding *new* subcommands, because if it is a popular name of a build directory then suddenly scripts that try to set up a build directory end up running a subcommand instead. The fact that we support this at all is a legacy design. Back in the day, the "meson" program was for setting up a build directory and all other tools were their own entry points, e.g. `mesontest` or `mesonconf`. Then in commit fa278f351fe3d6924b4d1961f77b5b4a36e133f8 we migrated to the subcommand mechanism. So, for backwards compatibility, we made those tools print a warning and then invoke `meson <tool>`. We also made the `meson` tool default to setup. However, we only warned for the other tools whose entry points were eventually deleted. We never warned for setup itself, we just continued to silently default to setup if no tool was provided. `meson setup` has worked since 0.42, which is 5 years old this week. It's available essentially everywhere. No one needs to use the old backwards-compatible invocation method, but it continues to drag down our ability to innovate. Let's finally do what we should have done a long time ago, and sunset it.
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index fc5a969..f125a80 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -635,7 +635,7 @@ def _run_test(test: TestDef,
should_fail: str) -> TestResult:
gen_start = time.time()
# Configure in-process
- gen_args = [] # type: T.List[str]
+ gen_args = ['setup']
if 'prefix' not in test.do_not_set_opts:
gen_args += ['--prefix', 'x:/usr'] if mesonlib.is_windows() else ['--prefix', '/usr']
if 'libdir' not in test.do_not_set_opts: