meson/test cases/common
Xavier Claessens 24f1b96dde Fix setting c_args and friends from command line
When passing more than one -Dc_args it should override the value
instead of appending. This is how all other options works.

Value should be split on spaces using shlex just like it does with
CFLAGS environment variable.

Fixes #3473.
2018-05-01 12:09:45 +00:00
..
1 trivial Allow test to depend on executable target in cross build. (#2007) 2017-07-20 12:25:59 +03:00
2 cpp icc: Fix C/C++ std options and add a unit test for them 2017-01-04 00:40:54 +05:30
3 static ninja: Delete output static lib before calling `ar` 2017-02-18 02:38:54 +05:30
4 shared Some minor tweaks. 2013-04-20 00:30:44 +03:00
5 linkstatic Add a unit test to ensure object file order 2016-10-25 14:36:47 +05:30
6 linkshared Fix tests for the new library/executable naming scheme 2016-07-01 20:50:47 +05:30
7 mixed C++ is now called cpp rather than cxx. 2013-06-02 22:31:10 +03:00
8 install Test that the 'libdir' project() option works 2016-07-27 14:46:24 +05:30
9 header install Don't require a language/compiler for configuring 2017-03-27 11:25:22 +05:30
10 man install Convert man inputs to Files so you can install_man the output of configure_file. Closes #2135. 2017-07-31 18:47:09 -04:00
11 subdir Split test suite into common and platform dependent parts. 2013-03-03 20:05:04 +02:00
12 data Update default of install-umask to 022 2018-04-18 11:44:54 -07:00
13 pch Skipping PCH unit test for lcc compiler 2018-03-21 16:43:04 +03:00
14 cpp pch Precompiled headers work for C++. 2013-06-15 02:40:53 +03:00
15 mixed pch tests/15 mixed pch: Add a test using only the headers 2018-02-14 10:32:57 -08:00
16 configure file add support for cmakedefine in configure_file() 2018-04-08 22:00:45 +03:00
17 if More variable introspection. 2015-10-14 19:10:22 +03:00
18 else Renamed add_test to test. 2013-06-02 13:18:15 +03:00
19 comparison Fix test cases/failing/52 inconsistent comparison 2018-02-15 12:51:25 +00:00
20 array Renamed add_test to test. 2013-06-02 13:18:15 +03:00
21 includedir Spell out include_directories. 2014-08-05 00:45:39 +03:00
22 header in file list Fix syntax error in tests common/22, 64 and 132 2018-04-23 14:18:44 -07:00
23 global arg add_{project,global}_arguments: support language list 2017-04-06 23:49:26 +02:00
24 target arg test24: check that a target extra_arg is not applied to other targets 2016-03-13 14:49:08 +01:00
25 object extraction tests/common/25: Remove spaces in exe name 2017-01-04 00:40:54 +05:30
26 endian Now host_machine, build_machine and target_machine are properly separated and return correct values. 2015-07-27 00:55:27 +03:00
27 library versions Add test for usage of generated File sources in libraries 2016-07-01 20:50:47 +05:30
28 config subdir Spell out include_directories. 2014-08-05 00:45:39 +03:00
29 pipeline Add depfile support to generators. 2016-08-21 00:12:56 +03:00
30 pipeline Fix a few resource leaks in a fit of OCD. 2014-08-06 21:49:03 +03:00
31 find program Can give many alternative names to find_program to simplify searching. 2016-11-20 16:54:19 -05:00
32 multiline string Add more tests for multi-line strings and update docs 2018-04-21 22:57:19 +03:00
33 try compile Fix two test cases 2018-04-25 08:33:51 +00:00
34 compiler id Can extract compiler ID string. 2013-04-22 00:51:25 +03:00
35 sizeof tests/common: Run compiler checks for both C & C++ 2016-11-08 16:05:32 +05:30
36 define10 Make sure that build and source subdirectories are always in search 2015-03-05 15:43:46 +02:00
37 has header Fix test cases/common/37 on Cygwin 2017-04-06 22:48:02 +01:00
38 run program Can use files() in run_command. 2016-09-08 21:51:48 +03:00
39 tryrun Fix two test cases 2018-04-25 08:33:51 +00:00
40 logic ops fix logic operations 2017-03-23 15:40:00 -04:00
41 elif Cleaner, simpler elif. 2013-07-27 17:58:17 +03:00
42 string operations Add more tests for multi-line strings and update docs 2018-04-21 22:57:19 +03:00
43 has function compilers: Don't run built-in checks on MSVC 2017-01-26 12:36:47 +05:30
44 has member tests/common: Run compiler checks for both C & C++ 2016-11-08 16:05:32 +05:30
45 alignment tests/common: Run compiler checks for both C & C++ 2016-11-08 16:05:32 +05:30
46 library chain Fix tests for the new library/executable naming scheme 2016-07-01 20:50:47 +05:30
47 options Expose integer options to build option files. 2018-02-07 22:10:04 +02:00
48 test args tests/common/48: Don't read newline 2017-09-11 23:33:11 +05:30
49 subproject Fix tests for the new library/executable naming scheme 2016-07-01 20:50:47 +05:30
50 subproject options fix test error message 2016-03-03 22:41:20 +01:00
51 pkgconfig-gen Improve generation of pkg-config files for static only libraries. 2018-04-14 23:43:29 +03:00
52 custom install dirs Always obey DESTDIR even with absolute install_dir. 2016-08-27 23:07:59 -04:00
53 subproject subproject Fix symbol exportation and other things to make all tests pass on MSVC. 2015-07-28 00:28:47 +03:00
54 same file name Can have multiple source files with the same name in one target. 2014-02-24 22:00:37 +02:00
55 file grabber Use system() instead of name() which is a confusing term. 2015-08-16 23:32:39 +03:00
56 custom target custom_target: Recursively flatten `command:` 2017-02-17 15:42:12 -05:00
57 custom target chain No longer require a binary called python3 on Windows. The default name is "python". 2017-01-23 21:02:04 +02:00
58 run target Removed two deprecations from 2016. 2018-01-17 22:12:43 +02:00
59 object generator No longer require a binary called python3 on Windows. The default name is "python". 2017-01-23 21:02:04 +02:00
60 install script tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
61 custom target source output tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
62 exe static shared Fix 62 exe static shared on MSVC 2016-11-10 00:40:16 +05:30
63 array methods Added array methods. 2014-09-18 19:04:29 +03:00
64 custom header generator Fix syntax error in tests common/22, 64 and 132 2018-04-23 14:18:44 -07:00
65 multiple generators tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
66 install subdir Update default of install-umask to 022 2018-04-18 11:44:54 -07:00
67 foreach interpreter: Implement array.get(index, fallback) 2017-01-26 23:22:14 +02:00
68 number arithmetic Add support for hex int literals. 2018-02-05 22:33:48 +02:00
69 string arithmetic Test fixing. 2014-11-16 20:10:27 +02:00
70 array arithmetic Add number, string and array arithmetic 2014-11-16 16:45:10 +00:00
71 arithmetic bidmas spelling: arithmetic 2017-11-26 05:12:00 +00:00
72 build always Use specific exception types instead of Exception 2018-03-12 02:39:27 +00:00
73 vcstag Default to project_version() in vcs_tag fallback 2017-05-05 08:11:28 +10:00
74 modules A very simple module implementation to get things going. 2015-03-04 23:53:35 +02:00
75 should fail Add should_fail kwarg to test to indicate tests that should fail. 2015-03-23 23:11:04 +02:00
76 configure file in custom target tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
77 external test program tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
78 ctarget dependency tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
79 shared subproject Fix symbol exportation and other things to make all tests pass on MSVC. 2015-07-28 00:28:47 +03:00
80 shared subproject 2 Fix symbol exportation and other things to make all tests pass on MSVC. 2015-07-28 00:28:47 +03:00
81 file object Renamed file function to files and made it take multiple arguments. 2015-05-02 15:47:03 +03:00
82 custom subproject dir Fix symbol exportation and other things to make all tests pass on MSVC. 2015-07-28 00:28:47 +03:00
83 has type tests/common: Run compiler checks for both C & C++ 2016-11-08 16:05:32 +05:30
84 extract from nested subdir Add support for extracting objects in unity builds 2016-10-21 08:00:39 +05:30
85 internal dependency Now can create internal dependencies to simplify subproject usage. 2015-06-15 00:26:19 +03:00
86 same basename Moved targets with same name into subdirs to make all tests pass. 2016-09-02 22:52:37 +03:00
87 declare dep interpreter: Always flatten when unholding arrays 2017-09-11 23:50:12 +03:00
88 extract all extract_all_objects: Add 'recursive' keyword argument 2018-04-18 14:54:52 -04:00
89 add language Can add languages only if they are available. Closes #365. 2016-01-25 22:39:47 +02:00
90 identical target name in subproject Removed two deprecations from 2016. 2018-01-17 22:12:43 +02:00
91 plusassign Add += support for strings and integers 2016-03-19 17:11:53 +00:00
92 skip subdir Use makedirs instead of mkdir. Closes #247. 2015-08-27 20:29:20 +03:00
93 private include tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
94 default options Add unit tests related to absolute prefixes 2017-02-18 02:37:32 +05:30
95 dep fallback Allow not-required not-found dependencies in subprojects 2017-03-27 22:02:06 +03:00
96 default library Declare buildtype and platform only once. 2015-11-06 22:59:51 +02:00
97 selfbuilt custom Minimal fixes to make tests pass when cross compiling. 2016-12-20 20:33:59 +02:00
98 gen extra Fix flake8 'imported but unused' reports 2018-03-03 21:06:45 +00:00
99 benchmark Fixed some tests for new stricter options and OSX. 2015-12-27 22:51:51 +02:00
100 test workdir Can specify a working directory for tests. Closes #326. 2015-12-08 15:45:51 +02:00
101 suites A test can be part of multiple suites. 2015-12-10 22:22:42 +02:00
102 threads By default do not specify language version but instead use the compiler's default. 2016-01-02 20:59:27 +02:00
103 manygen Use Python3 explicitly on this test because shutil.which does not exist on Python 2. 2017-01-25 21:34:54 +02:00
104 stringdef Forbid backslashes on compiler command lines. It is unfortunately the only reliable way. 2016-01-02 20:34:06 +02:00
105 find program path run_command: Refactor + improve errors and test 2017-05-07 01:56:47 +05:30
106 subproject subdir vs2010: fix target_to_build_root method 2016-02-24 00:40:14 +01:00
107 postconf tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
108 postconf with args tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
109 testframework options Make cross tests use same framework as regular tests. 2016-12-20 20:35:29 +02:00
110 extract same name Add support for extracting objects in unity builds 2016-10-21 08:00:39 +05:30
111 has header symbol Fix ppoll() test to work on non-glibc platforms 2017-08-02 18:01:18 +03:00
112 has arg cc.has_multi_arguments: Convert all -Wno args 2018-04-17 09:55:18 +00:00
113 generatorcustom do not skip test case 113 on Windows 2017-03-20 14:33:44 +01:00
114 multiple dir configure file tests/common/144: Add a test for #1865 2017-09-20 14:24:33 +05:30
115 spaces backslash Ninja now supports backslash in command args, so we can too 2016-07-29 19:51:09 +05:30
116 ternary Created ternary operator. Closes #538. 2016-08-01 20:46:40 +03:00
117 custom target capture vs: Always use a wrapper for custom target commands 2017-03-23 16:38:03 -04:00
118 allgenerate tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
119 pathjoin tests/common/119: Test array args to join_paths() 2017-02-19 03:50:43 +05:30
120 subdir subproject Allow subproject declarations in subdirectories 2016-11-02 13:52:04 -07:00
121 interpreter copy mutable var on assignment interpreter: copy mutable variables on assignment 2016-11-05 16:56:02 +00:00
122 skip Make cross tests use same framework as regular tests. 2016-12-20 20:35:29 +02:00
123 subproject project arguments add_project_arguments: allow call after subproject() 2017-04-07 21:07:57 +02:00
124 test skip Support skipped tests 2016-11-29 13:13:29 -05:00
125 shared module Add `export_dynamic` argument to `executable`. (#2662) 2018-01-09 21:36:13 +02:00
126 llvm ir and assembly spelling: executable 2017-11-26 05:29:01 +00:00
127 cpp and asm Tag functions in asm properly. Thanks to Matthias Klose for debugging the issue. 2017-06-22 06:00:52 -04:00
128 extract all shared library Test extracting static objects into a shared library 2016-12-13 09:37:48 +05:30
129 object only target tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
130 no buildincdir Only add build dir inlude directives if the corresponding dir exists. Closes #1185. 2016-12-13 14:19:34 +02:00
131 custom target directory install tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
132 dependency file generation Fix syntax error in tests common/22, 64 and 132 2018-04-23 14:18:44 -07:00
133 configure file in generator tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
134 generated llvm ir tests: Use #!/usr/bin/env python3 for all scripts 2017-02-26 07:52:49 -05:00
135 generated assembly tests: fix "135 generated assembly" test on NetBSD 2018-01-06 13:49:34 -08:00
136 build by default targets in tests tests: build_by_default : false targets used in tests should be built 2017-01-28 01:05:18 +05:30
137 build by default tests: Move build-by-default unit test to common tests 2017-01-28 01:05:19 +05:30
138 include order tests: add test to make sure include_directories() order is maintained 2018-02-11 20:25:25 +03:00
139 override options Make it possible to only do unity builds on subprojects. 2017-04-15 18:28:36 +03:00
140 get define Comparing objects of different type prints a warning. Closes #2870. 2018-02-01 22:56:58 +02:00
141 c cpp and asm Tag functions in asm properly. Thanks to Matthias Klose for debugging the issue. 2017-06-22 06:00:52 -04:00
142 compute int Remove arbitrary [-1024,1024] limit in cross_compute_int() 2018-04-08 16:56:33 +03:00
143 custom target object output Renamed tests with the same number. 2017-04-05 00:40:52 +03:00
144 empty build file Don't crash if a meson.build file is empty (#1570) 2017-04-07 00:10:48 +03:00
145 whole archive Add declare_dependency() test for transitive link_whole 2018-03-06 01:44:26 +00:00
146 C and CPP link Consider compilers used in static_library parents 2017-09-20 08:59:26 -07:00
147 mesonintrospect from scripts flake8: Perform suggested whitespace/formatting changes 2017-09-21 11:59:03 -04:00
148 custom target multiple outputs Rename tests with duplicate numbers. 2017-04-29 21:40:37 -04:00
149 special characters Add test case for ninja quoting. 2017-05-05 17:23:34 -04:00
150 nested links Flatten SharedLibary link_args. 2017-05-11 16:59:59 -07:00
151 list of file sources Allow passing a list of Files to CustomTarget. Closes #1720 2017-05-11 09:57:38 -07:00
152 link depends custom target Add a test for link_depends using a custom target 2017-05-16 22:15:53 +01:00
153 recursive linking CompilerArgs: Put start/end-group around shared libs too 2017-07-23 02:07:04 +03:00
154 library at root Add a test case for a "library at project root" use case. 2017-06-29 13:16:38 +03:00
155 simd Can pass all target kwargs through to SIMD invocations. Closes #2151. 2017-08-04 12:55:24 +03:00
156 shared module resolving symbol in executable Add `export_dynamic` argument to `executable`. (#2662) 2018-01-09 21:36:13 +02:00
157 configure file in test Fix test() accepting configure files for exe 2017-07-31 18:48:30 -04:00
158 dotinclude Renamed test dir to avoid duplicate numbers. 2017-08-05 00:33:03 +03:00
159 reserved targets tests/common/159: Don't try to run 'echo' 2017-09-18 18:27:01 +03:00
160 duplicate source names Add variables to test to prove linkage is correct. 2017-08-14 22:47:34 -04:00
161 index customtarget Allow custom_target do depend on indexed output of custom_target 2018-05-01 11:51:55 +00:00
162 wrap file should not failed Add a bunch of tests to sandboxing. 2017-10-25 21:02:32 +03:00
163 includedir subproj fix include_directories handling in subprojects for compiler tests. 2017-11-08 21:18:48 +02:00
164 subproject dir name collision Renamed test dir to avoid number duplicates. 2017-11-20 20:28:04 +02:00
165 config tool variable Add a configtool_variable method to dependency 2017-11-23 20:06:23 -08:00
166 custom target subdir depend files Fix path for str arguments to depend_files 2017-12-03 23:24:30 +02:00
167 external program shebang parsing tests/common/167: Port test interpreter to Windows 2017-11-30 12:20:22 +05:30
168 disabler Fix unit test for Disabler() 2018-04-11 21:44:59 +03:00
169 array option Fix `array` type name 2017-12-07 21:31:50 +02:00
170 custom target template substitution Minor fixes. 2017-12-03 23:32:48 +02:00
171 not-found dependency Fix a problem when anyone actually tries to use a non-found dependency 2018-01-06 19:20:32 +02:00
172 subdir if_found Fix duplicated test case 168 2017-12-06 14:17:49 +02:00
173 default options prefix dependent defaults Add a test of prefix-dependent defaults for project(default_options:) 2017-12-21 19:10:18 +00:00
174 dependency factory Same for libwmf 2018-01-31 23:58:39 +00:00
175 get project license add meson.project_license() builtin 2018-01-31 23:54:28 +02:00
176 yield User options can "yield to" a user option of the same name in superproject. Closes ##2853. 2018-02-08 00:33:44 +02:00
177 subproject nested subproject dirs Add test for subprojects in subdirectories 2018-02-12 19:13:59 +01:00
178 preserve gendir Renamed test dir with duplicate number. 2018-02-25 01:12:42 +02:00
179 source in dep Look up compilers based on sources from deps, too. Closes #2768. 2018-02-27 20:40:41 +02:00
180 generator link whole Skip whole_archive test for VS older than 2015 2018-03-07 15:25:28 +00:00
181 initial c_args Fix setting c_args and friends from command line 2018-05-01 12:09:45 +00:00
182 identical target name in subproject flat layout Use target.get_id() instead of basename and type_suffix concatenation at call site 2018-03-15 21:14:58 +02:00
184 as-needed Rename '183 as-needed' common test into '184 as-needed' 2018-03-23 01:43:21 +02:00
185 ndebug if-release enabled Enable b_ndebug on VisualStudioCCompiler 2018-03-23 21:10:04 +02:00
186 ndebug if-release disabled Enable b_ndebug on VisualStudioCCompiler 2018-03-23 21:10:04 +02:00
187 subproject version dependency's wanted version might be a list 2018-03-25 18:27:13 +03:00
188 subdir_done Allow meson build file to exit early. (#2808) 2018-03-29 21:29:45 +03:00
189 bothlibraries Add both_libraries() to build both shared and static libraries 2018-04-03 15:38:01 -04:00
190 escape and unicode Exit meson with an error if an invalid escape sequence is found in a 2018-04-17 09:55:34 +00:00
191 has link arg has_multi_link_arguments: Some compilers needs -Wl,--fatal-warnings 2018-04-30 16:06:24 +00:00
192 same target name flat layout Renamed test dirs so numbers are sequential. 2018-04-18 00:33:41 +03:00
193 find override Renamed test dirs so numbers are sequential. 2018-04-18 00:33:41 +03:00
194 partial dependency Renamed test dirs so numbers are sequential. 2018-04-18 00:33:41 +03:00
195 openmp Renamed test dirs so numbers are sequential. 2018-04-18 00:33:41 +03:00
196 same target name Rename common tests to remove numeric duplicates (#3425) 2018-04-20 00:59:41 +03:00
197 test depends Rename common tests to remove numeric duplicates (#3425) 2018-04-20 00:59:41 +03:00