summaryrefslogtreecommitdiff
path: root/run_unittests.py
Commit message (Collapse)AuthorAgeFilesLines
* remove unused importsEli Schwartz2021-10-261-2/+0
|
* Add --vsenv command line option and active VS only when neededXavier Claessens2021-10-101-5/+1
|
* Add platform agnostic testsXavier Claessens2021-09-211-1/+2
| | | | | | This adds a new category of tests that does not need to run on all platforms during CI. For now only run them on Linux runners because they are not the bottleneck.
* Split run_unittests.py fileXavier Claessens2021-07-261-10209/+14
|
* coredata: throw a MesonException on unknown optionsFlorian Schmaus2021-07-261-5/+5
| | | | Fixes #7288.
* ast: Add dummy "support" for fstrings in the ast packageDaniel Mensinger2021-07-251-0/+1
|
* Merge pull request #8992 from dcbaker/submit/modernize-python-module-dependencyJussi Pakkanen2021-07-221-18/+0
|\ | | | | Cleanup the python module
| * modules/pkgconfig: remove handling of .pcdepDylan Baker2021-07-131-18/+0
| | | | | | | | Nothing uses this anymore, so don't check for it.
* | Merge pull request #8972 from bonzini/C-symlinkJussi Pakkanen2021-07-181-0/+12
|\ \ | | | | | | resolve symlinks passed to -C
| * | run_unittests: add test for passing symlinks to setup and testPaolo Bonzini2021-07-131-0/+12
| |/
* | Condense test directory names for next release.Jussi Pakkanen2021-07-151-4/+4
|/
* Delete redirected wrap files in subprojects purgeTristan Partin2021-07-031-3/+33
| | | | | We need to store the original filename as well as whether the wrap was redirected in order to properly purge the redirected wrap.
* Flatten test suite valueTristan Partin2021-07-021-1/+1
| | | | This behavior is more inline with the rest of Meson
* fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger2021-06-291-86/+77
|
* pathlib: Patch pathlib to work around some bugs (fixes #7295)Daniel Mensinger2021-06-291-1/+5
|
* Split compiler detection from EnvironmentDaniel Mensinger2021-06-251-78/+78
| | | | | | This moves all the compiler detection logic into the new compilers.detect module. This dramatically reduces the size and complexity of Environment.
* Merge pull request #8884 from dcbaker/submit/type-and-annotate-install-functionsJussi Pakkanen2021-06-231-0/+12
|\ | | | | Add annotations for the various install_* functions
| * interpreterbase: Add evolve to KwargInfoDylan Baker2021-06-221-0/+12
| | | | | | | | | | | | This works just like OptionKey.evolve, pass new keyword arguments to override old ones, otherwise the original versions are copied to the new one.
* | coverage: Enable coverage reportsDaniel Mensinger2021-06-221-0/+7
|/
* holders: remove unholderDaniel Mensinger2021-06-181-11/+0
|
* holders: Introduce HoldableObjectDaniel Mensinger2021-06-181-3/+18
|
* tests: Always enable the traceback in run_project_tests.pyDaniel Mensinger2021-06-181-1/+1
|
* doc: Add missing modules to dropdown listXavier Claessens2021-06-171-0/+16
|
* interpreter: Extract dependency() logic into its own helper classXavier Claessens2021-06-161-1/+1
| | | | | | | The dependency lookup is a lot of complex code. This refactor it all into a single file/class outside of interpreter main class. This new design allows adding more fallbacks candidates in the future (e.g. using cc.find_library()) but does not yet add any extra API.
* docs: Use an include for the qt modulesDylan Baker2021-06-151-1/+1
| | | | | Insteadf of qt4 referencing the Qt5 page, include the same content in both.
* interpreterbase: Add deprecated_values and since_values to KwargInfoDylan Baker2021-06-141-0/+39
| | | | | | This allows checking specific values that are added or deprecated, which we do a surprising amount of. This works with both containers and scalar values
* run_unittests: mock meson global before changingDylan Baker2021-06-141-0/+1
| | | | For safety
* tests: Force colorize CI outputDaniel Mensinger2021-06-091-0/+3
|
* Merge pull request #8512 from bonzini/feature-methodsJussi Pakkanen2021-06-081-1/+1
|\ | | | | Utility methods for feature objects
| * run_unittests.sh: fix Python DeprecationWarningPaolo Bonzini2021-06-081-1/+1
| | | | | | | | | | | | | | | | | | Fix the following Python error: D:\a\1\s\run_unittests.py:6654: DeprecationWarning: invalid escape sequence \ self.assertEqual(libhello_nolib.get_pkgconfig_variable(escaped_var, {}), hello world) Use a raw string literal.
* | intperperterbase: Add a convertor keyword argumentDylan Baker2021-06-081-0/+10
| | | | | | | | | | | | | | This is meant to allow simple type conversions to happen before the interpreter function is called. This should simplify some cases like the "native" keyword arugment that are booleans in the Meson DSL, but an Enum in the implementation
* | interpreterbase: Add validator keyword argument to typed_kwargsDylan Baker2021-06-081-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This attribute is a callable that returns a string if the value is invalid, otherwise None. This intended for cases like the `install_*` function's `install_mode` paramater, which is either an int or the string "preserve", which allows us to do nice things like: ```python class Kwargs(TypedDict): install_mode: T.Union[int, T.Literal['preserve']] @typed_kwargs( 'foo', KwargInfo('install_mode', ..., validator=lambda x: None if isinstance(x, int) or x == 'preserve' else 'must be the literal "preserve"), ) def install_data(self, node, args, kwargs: 'Kwargs'): ... ``` In this case mypy *knows* that the string is preserve, as do we, and we can simply do tests like: ```python if kwargs['install_mode'] == 'preserve': ... else: # this is an int ```
* | run_unittests.py: Use mock for monkey patchingDylan Baker2021-06-081-22/+20
| | | | | | | | it's what mock is for afterall
* | interpreterbase: Allow safely using mutable default values with typed_kwargsDylan Baker2021-06-041-0/+11
| | | | | | | | | | | | | | | | It's really inconvenient to want a thing that is always a list, but not be able to provide a default value of a list because of mutation. To that end the typed_kwargs method now makes a shallow copy of the default when using a `ContainerTypeInfo` as the type. This mean that using a default of `[]` is perfectly safe.
* | deps: Split dependencies.baseDaniel Mensinger2021-06-031-2/+4
| | | | | | | | | | Split the Factory and dependency classes out of the base.py script to improve maintainability.
* | typed_kwargs: Add since and deprecated annotationsXavier Claessens2021-06-011-0/+32
|/
* interpreterbase: Add a function for type checking keyword argumentsDylan Baker2021-05-301-0/+103
|
* Fix text used to validate test output.Jussi Pakkanen2021-05-231-1/+1
|
* Merge pull request #8786 from jon-turney/cygwin-tests-reenableJussi Pakkanen2021-05-231-2/+0
|\ | | | | Re-enable various tests on Cygwin
| * Fix LTO test on CygwinJon Turney2021-05-211-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This partially reverts commit add502c6483bde9dc6a0ba80b3c79163304465a4. In 'linkshared' test, annotate cppfunc() as imported, so an indirection through an import stub is generated, avoiding a relocation size error when building using gcc for Cygwin with LTO on. Align with the example of how to write this portably in [1]. The 'c' language part of that test already gets this right. [1] http://gcc.gnu.org/wiki/Visibility
* | Disable D test on macOS as it fails mysteriously.Jussi Pakkanen2021-05-231-0/+5
| |
* | It seems ld64 is the default linker name on macOS now.Jussi Pakkanen2021-05-231-1/+5
|/
* pkgconfig: Do not escape custom variablesXavier Claessens2021-05-181-0/+2
| | | | | | | | We need to escape space in variables that gets into cflags or libs because otherwise we cannot split compiler args when paths contains spaces. But custom variables are unlikely to be path that gets used in cflags/libs, and escaping them cause regression in GStreamer that use space as separator in a list variable.
* Set up VS environment automatically when run.Jussi Pakkanen2021-05-131-2/+3
|
* Make objective C use C standard version. Closes #5495.Jussi Pakkanen2021-05-111-0/+15
|
* Set unittest backend with an argument rather than an envvar.Jussi Pakkanen2021-05-081-3/+17
|
* Clarify incorrect configuration format messageNellie Zhang2021-05-031-1/+1
| | | | | Print the path and line where the problem occurred to make it more clear what the error message means.
* Do not accidentally format files when only checking if they are formatted.Jussi Pakkanen2021-05-011-3/+4
|
* Condense test directory names.Jussi Pakkanen2021-04-261-102/+102
|
* Fix issue where multiple dist files were not being produced for comma ↵Tristan Partin2021-04-261-0/+22
| | | | separated formats value