Dylan Baker
4cea88c2bb
tests: use GAS style assembly for FreeBSD as well
7 years ago
Dylan Baker
ae4bd83493
tests: Fix 135 generated assembly on DragonFly BSD
...
Which uses a modern version of GCC and Clang, which supports gas.
Tested with x86_64, but I assume that x86 and arm have the same problem.
7 years ago
Dylan Baker
087421f922
tests: Add define tests for netbsd
7 years ago
Dylan Baker
b72be62929
tests: Add Dragonfly BSD
...
which uses __DragonFly__
7 years ago
Dylan Baker
a44221db06
tests: Add freebsd to get define test.
7 years ago
Jon Turney
fd66692f73
Fix a problem when anyone actually tries to use a non-found dependency
...
Fix BuildTarget.add_deps() to handle class Dependency
Extend test case to cover uses of the not-found dependency object
7 years ago
Jon Turney
198251395a
Add a test of prefix-dependent defaults for project(default_options:)
...
See #2811
7 years ago
Xavier Claessens
2881db7379
pkgconfig: Move pc file checks to run_unittests.py
7 years ago
Xavier Claessens
49977686b5
pkgconfig: Use the pc file we generated for libraries
7 years ago
Xavier Claessens
1c0570906c
pkgconfig: Allow passing Dependency objects to library(_private)
...
Special case ThreadDependency by taking compiler's flags and
PkgConfigDependency by adding them in requires(.private) instead. For
other Dependency objects just take their link_args and compile_args.
Closes #2725
7 years ago
Xavier Claessens
2ff37ae41a
pkgconfig: Early abort tests if pkg-config is not present
7 years ago
Jussi Pakkanen
b949c4792d
Preserve_path_from should be a kwarg of process(), not generator().
7 years ago
Jussi Pakkanen
ee9832cdb1
Added standalone test case for subdir preservation.
7 years ago
Eric Engestrom
3d63f21b60
Fix `array` type name
...
c9351ce30c
introduced the type as `array`,
so mintro should expose it under the same name.
(while at it, rename test 169 to be coherent)
7 years ago
Dylan Baker
b56450f9b2
tests: Add haiku to get define test
7 years ago
Xavier Claessens
e2afaf40c0
Fix duplicated test case 168
7 years ago
Jon Turney
87e6201214
Document and improve not-found dependency objects
...
Document dependency('', required:false) usage.
Avoid emitting 'Dependency found: NO'.
7 years ago
Jussi Pakkanen
678daad6cc
Created a new disabler type.
7 years ago
Jussi Pakkanen
6d03111638
Minor fixes.
7 years ago
Joergen Ibsen
521933357d
Fix path for str arguments to depend_files
...
Fixes #2633
7 years ago
Joergen Ibsen
312bc2ca81
Fix string format recursive replace
...
Also error on placeholder index out of range.
7 years ago
Jussi Pakkanen
754e33e574
Renamed test dir to avoid duplicates.
7 years ago
Jussi Pakkanen
f8a419b27d
String arguments can permit arbitrary string values
...
by leaving out the choices keyword.
7 years ago
Nirbheek Chauhan
1223872513
tests/common/167: Port test interpreter to Windows
...
Which means using fgets, unfortunately.
7 years ago
Dylan Baker
c9351ce30c
Add new array type option
...
This exposes the already existing UserStringArrayOption class through
the meson_options.txt. The intention is to provide a way for projects to
take list/array type arguments and validate that all of the elements in
that array are valid without using complex looping constructrs.
7 years ago
Nirbheek Chauhan
abcace7ee1
dependencies: Fix parsing of shebangs with spaces
...
While finding an external program, we should only split the shebang
once since that is what Linux and BSD also do. This is also why
everyone uses #!/usr/bin/env in their shebangs since that allows
you to run an interpreter in a path with spaces in it.
See `man execve` for more details, specifically the sections for
interpreter scripts.
7 years ago
Jussi Pakkanen
5bc1009109
Add if_found kwarg to subdir().
7 years ago
Joergen Ibsen
dad5779d3c
Add test for five escapes before n
7 years ago
Joergen Ibsen
b9a0589067
Fix escaping of newlines in string literals
...
Replace '\n' escape sequence before '\\' to allow a literal backslash
to be inserted before the character 'n'.
Fixes #2682
7 years ago
Iñigo Martínez
3d0a9b7911
interpreter: Reduce to_sring method to base 10
...
The int's to_string method implementation has been reduced to base
10.
7 years ago
Iñigo Martínez
30f2c4857c
interpreter: Support to_string method for int values
...
Although some other base types like boolean objects can be expresed
as strings, this is not possible with int objects.
This patch adds support to express int values as strings as hex,
decimal or octal values.
7 years ago
Joergen Ibsen
91a0126590
Improve escaping in configuration files
...
Replace pairs of backslashes before '@' or '\@' with singles (allows
escaping the escape character). Do not consume next '@' after '\@'.
7 years ago
Josh Soref
7771d267f5
spelling: precedence
7 years ago
Josh Soref
49f8d28ef5
spelling: overridden
7 years ago
Josh Soref
f2835004ea
spelling: necessary
7 years ago
Josh Soref
8aab7fea5a
spelling: executable
7 years ago
Josh Soref
1d708d14f7
spelling: arithmetic
7 years ago
Joergen Ibsen
80157a5ea3
Make prefix substitution test uppercase
7 years ago
Dylan Baker
f818e9df58
Add a configtool_variable method to dependency
...
This mirrors the get_pkgconfig_variable but for config tool based
dependencies.
7 years ago
Joergen Ibsen
f31142de88
Use regex to substitute template strings
7 years ago
Joergen Ibsen
fdb48a3a0f
Use re.sub instead of replace loop
...
This also prohibits recursive substitution.
7 years ago
Jussi Pakkanen
eba6972306
Renamed test dir to avoid number duplicates.
7 years ago
Philipp Ittershagen
a176588151
fix include_directories handling in subprojects for compiler tests.
7 years ago
Martin Kelly
02bea7d5bf
namespace run_targets by subproject
...
Currently, run_target does not get namespaced for each subproject,
unlike executable and others. This means that two subprojects sharing
the same run_target name cause meson to crash.
Fix this by moving the subproject namespacing logic from the BuildTarget
class to the Target class.
7 years ago
Jussi Pakkanen
e8ed975444
Renamed test dir to avoid duplicate numbers.
7 years ago
Adam C. Foltzer
f21034dfea
add failing test case for overly-strict sandbox violation
7 years ago
Jussi Pakkanen
004cc1493b
Add a bunch of tests to sandboxing.
7 years ago
liugang
36d85db5d4
fix all subproject using wrap-file broken
...
subproject using wrap-file is broken since commit (68bd64c
Prevent
projects from directly grabbing files from other subprojects. )
subproject with wrap-file usually have version number after name
- **sproj_name** is `zlib-1.2.8` according to `directory = zlib-1.2.8`
of zlib.wrap
- but **self.subproject** `zlib`
7 years ago
Dylan Baker
4e18483ff3
tests: fix option in case 140
...
Which fails after the next patch because it provides an invalid kwarg.
7 years ago
Nirbheek Chauhan
040fa07e36
tests/common/145: Move each target into its own subdir
...
This helps test whether /WHOLEARCHIVE and --whole-archive arguments
resolve into the right subdirectories.
7 years ago