summaryrefslogtreecommitdiff
path: root/run_meson_command_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* setuptools: don't hardcode list of modules to install, use find_packagesEli Schwartz2021-03-091-15/+0
| | | | | | And don't run a pointless test to verify that the hardcoded list has been manually maintained correctly. The same test rules used there can translate directly to find_packages pattern rules.
* mass rewrite of string formatting to use f-strings everywhereEli Schwartz2021-03-041-1/+1
| | | | performed by running "pyupgrade --py36-plus" and committing the results
* Add script to create a zipapp.Eli Schwartz2020-11-271-2/+3
| | | | | | | | | | | Invoke create_zipapp.py from the root of the repository and it will create a minimal zipapp with only the mesonbuild module code and a __main__.py directly copied from meson.py The meson.py launcher already tracks the desired entry point, and its only other effect is to add the mesonbuild directory to the path if it exists, which it won't in the zipapp. So there's no need to duplicate this into another __main__.py
* use real pathlib moduleDylan Baker2020-11-201-1/+1
| | | | | We added the _pathlib module to work around defeciencies in python 3.5's implementation, since we now rely on 3.6 lets drop this
* pathlib: Fix resolve() by overriding it in Python 3.5Daniel Mensinger2020-10-041-1/+1
|
* Fix setuptools 49 test. (fixes #7452)Daniel Mensinger2020-07-191-0/+4
|
* pep8: add missing import, remove unused variableMichael Hirsch2020-06-151-1/+1
|
* run_*tests*.py: print Meson version at start of test suiteMichael Hirsch2020-06-151-2/+4
| | | | | | | | | | on some systems, tests may take over an hour to run--only to find you might have used an unintended Meson version (e.g. release instead of dev). This change prints the Meson version at the start of the run_*tests*.py scripts. Also, raise SystemExit(main()) is preferred in general over sys.exit(main())
* tests: Ignore all files in 'data' directoriesDaniel Mensinger2019-06-281-0/+2
|
* tests: fix test_meson_installed after the recent appveyor image updateChristoph Reiter2018-11-141-1/+3
| | | | | | | | | | Since the last appveyor image update which also included a msys2 update test_meson_installed() fails for the msys2 mingw jobs complaining that the install path isn't included in PYTHONPATH. It complains that "site-packages\" isn't included in "site-packages" ignoring that the separator should be ignored here. Work around the issue by making sure that the path set as PYTHONPATH always ends with os.sep.
* Consider 'samu' when looking for ninja commandMichael Forney2018-11-111-4/+3
| | | | | | | | | | | | | | samu prints a different message when the build is a no-op, so make assertBuildIsNoop consider that as well. Also, if compile_commands.json cannot be found, just skip the test. This seems reasonable since meson just produces a warning if `ninja -t compdb` fails. Finally, only capture stdout in run_meson_command_tests.py, since the backend may print messages the tests don't recognize to stderr. Fixes #3405.
* tests runners: Refactor out global variables and add argparseNiklas Claesson2018-10-101-8/+4
|
* meson_command_tests: Don't pass pathlib.Path to open [skip appveyor]Nirbheek Chauhan2018-08-181-1/+1
| | | | Closes https://github.com/mesonbuild/meson/issues/4047
* setup: Add tests for the installed files listNirbheek Chauhan2018-08-121-1/+15
| | | | | Ensure that the installed files list matches what we expect, to avoid surprises at release time.
* Install meson.exe as the entrypoint on WindowsNirbheek Chauhan2018-08-111-18/+8
| | | | | | Thanks to Rafael Rivera for the suggestion Fixes https://github.com/mesonbuild/meson/issues/1877
* Fix __main__.py for zipapp to workChristoph Burger-Scheidlin2018-08-071-0/+9
| | | | | | | | | | | | 0a035de removed main from meson.py breaking the call from __main__.py. This causes zipapps to fail, since the call to meson.main() fails. Copying the invocation from meson.py fixes this issue. Additionally, add a test to run_meson_command_tests.py that builds a zipapp from the source and attempts executing this zipapp with --help to ensure that the resulting zipapp is properly executable.
* Set the meson command to use when we know what it isNirbheek Chauhan2018-06-011-0/+186
Instead of using fragile guessing to figure out how to invoke meson, set the value when meson is run. Also rework how we pass of meson_script_launcher to regenchecker.py -- it wasn't even being used With this change, we only need to guess the meson path when running the tests, and in that case: 1. If MESON_EXE is set in the env, we know how to run meson for project tests. 2. MESON_EXE is not set, which means we run the configure in-process for project tests and need to guess what meson to run, so either - meson.py is found next to run_tests.py, or - meson, meson.py, or meson.exe is in PATH Otherwise, you can invoke meson in the following ways: 1. meson is installed, and mesonbuild is available in PYTHONPATH: - meson, meson.py, meson.exe from PATH - python3 -m mesonbuild.mesonmain - python3 /path/to/meson.py - meson is a shell wrapper to meson.real 2. meson is not installed, and is run from git: - Absolute path to meson.py - Relative path to meson.py - Symlink to meson.py All these are tested in test_meson_commands.py, except meson.exe since that involves building the meson msi and installing it.