Commit Graph

25 Commits

Author SHA1 Message Date
25eb86382b run_cross_tests: Pass correct argument
I don't konw how the heck this has ever worked, but you know.
2019-04-05 15:08:17 -07:00
252bf6c52e Merge pull request #4340 from jon-turney/azure-pipelines
Add Azure pipelines CI
2018-10-14 23:16:46 +03:00
459b81de46 Use 'CI' environment variable to detect CI environment
Use the 'CI' environment variable to detect CI environment, rather than a
collection of CI-specific ones.
2018-10-14 16:01:36 +01:00
4911a51aa2 Add option to fail fast in tests 2018-10-10 21:19:06 +02:00
4ef4edee2f tests runners: Refactor out global variables and add argparse 2018-10-10 21:19:06 +02:00
f56b402a5b Revert "mesonlib: handle meson exe wrappers"
This reverts commit 0627e9d616.

Breaks installation: https://github.com/mesonbuild/meson/issues/3647

Will be restored once that can be fixed.
2018-05-31 15:40:10 +05:30
0627e9d616 mesonlib: handle meson exe wrappers
There are cases when it is useful to wrap the main meson executable with
a script that sets up environment variables, passes --cross-file, etc.
For example, in a Yocto SDK, we need to point to the right meson.cross
so that everything "just works", and we need to alter CC, CXX, etc. In
such cases, it can happen that the "meson" found in the path is actually
a wrapper script that invokes the real meson, which may be in another
location (e.g. "meson.real" or similar).

Currently, in such a situation, meson gets confused because it tries to
invoke itself using the "meson" executable (which points to the wrapper
script) instead of the actual meson (which may be called "meson.real" or
similar). In fact, the wrapper script is not necessarily even Python, so
the whole thing fails.

Fix this by using Python imports to directly find mesonmain.py instead
of trying to detect it heuristically. In addition to fixing the wrapper
issue, this should make the detection logic much more robust.
2018-05-30 18:29:16 +00:00
ceeae58225 Prettifying some output with pathlib 2018-04-26 23:14:58 +03:00
701e393261 Make cross tests use same framework as regular tests. 2016-12-20 20:35:29 +02:00
2b65083463 Fix cross test and run them if a cross compiler is available. 2016-12-20 20:33:59 +02:00
88aafd363e Normalize the path of a configured file to avoid dupes (#640) 2016-07-19 20:10:57 +03:00
23b98cd6e6 Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir. 2016-01-16 17:35:29 +02:00
4c31e7774d Finalize moduleification so that full test suite runs. 2016-01-16 00:04:57 +02:00
572587f5ce Fix cross compilation tests. 2015-05-09 16:17:20 +03:00
1ab5b850ef Use lib as library path in unit tests. 2015-02-16 01:24:58 +02:00
525f0ae6d2 Harmonised copyright declarations. 2014-11-16 20:19:12 +02:00
c4860ff60f Updated copyright years. 2014-08-11 00:20:17 +03:00
c1853c21e1 Can specify cross file as a command line argument. 2013-09-30 18:42:46 +03:00
845eda2938 Better build type introspection. 2013-08-30 23:43:27 +03:00
c3640ef036 The whole test suite runs cross-built with mingw and armhf. 2013-08-30 23:25:09 +03:00
702d3e2d9c Work started on supporting simultaneous native and cross builds. 2013-08-30 22:20:10 +03:00
21e4fcc6b0 Get has_function from cross file. 2013-08-24 23:32:13 +03:00
2117814826 Get sizeof info from cross file if it exists and write an error if it can not be determined. 2013-08-24 23:10:44 +03:00
696f72da1b Skip tests for cross compilation when they can not be run. 2013-08-24 21:33:52 +03:00
6536354cc3 Updated symbolextractor to work with cross builds. 2013-08-24 00:30:13 +03:00