Nirbheek Chauhan
6e5c87e380
icc: Always specify the language to use for PCH usage
...
Without this, ICC sometimes gets confused and thinks that the included
header is a C header instead of a C++ header.
8 years ago
Nirbheek Chauhan
e31d067fed
compilers.py: Use a common variable for warn args
...
Makes it totally clear what extra args are added by each warning level.
8 years ago
Nirbheek Chauhan
509bc30cdd
compilers: gnu++03 is not a valid Clang C++ standard
...
It is not (no longer?) supported by Clang:
error: invalid value 'gnu++03' in '-std=gnu++03'
8 years ago
Nirbheek Chauhan
6b774982fe
tests/common/94: Set the default C++ std to C++11
...
The Intel compiler does not support C++03, but does support C++11, so
use that as the lowest-common-denominator for our tests.
8 years ago
Nirbheek Chauhan
7f3aeb27e7
unit tests: Use assertIn() instead of assertTrue()
...
assertIn() will print both the arguments on assertion fail, but
assertTrue() will not, so that makes it easier to debug.
8 years ago
Nirbheek Chauhan
731aca216e
icc: Fix C/C++ std options and add a unit test for them
...
Compiler versions 15.0 and later actually ignore invalid values for the
-std= option unless `-diag-error 10159` is passed, so we need to put
that in the unit test.
I have tested this with versions 14.0.3, 15.0.6, 16.0.4, and 17.0.1.
Would be great if someone could test with 13.x.y
8 years ago
Nirbheek Chauhan
e36183aab4
tests: Use the new test skipping facility everywhere
8 years ago
Nirbheek Chauhan
28e491c706
Skip a few tests properly
8 years ago
Nirbheek Chauhan
2f5943d34d
Add a new test for depfile generation with spaces
...
This checks that dependency generation is correct even when the sources
and outputs have spaces in them.
8 years ago
Nirbheek Chauhan
f024114c29
tests/common/25: Remove spaces in exe name
...
ICC doesn't escape spaces in file paths while writing out the dependency
file, so don't use spaces to avoid a spurious failure.
8 years ago
Nirbheek Chauhan
84931e1f78
test/7 gnome: Fix on ICC and suppress a warning
...
Ignore warning 2282 about GCC pragmas since they are emitted in system
headers and are extremely spammy. They are emitted because ICC pretends
to be GCC via C macros but doesn't implement some pragmas.
https://bugzilla.gnome.org/show_bug.cgi?id=776562
Also, append to LD_LIBRARY_PATH because ICC uses that for some internal
libraries such as libintlc.so.
8 years ago
Nirbheek Chauhan
78325f884d
tests/failing build/1: Fix test with ICC
...
Explicitly warn with the `#warning` macro to ensure that ICC emits
a warning since ICC does not emit a warning for unused variables.
Also makes the test more reliable with other compilers.
8 years ago
Nirbheek Chauhan
c8bb7f2217
unit tests: Be more specific in checking for commands
...
'-w' in c_command will check for it as a substring, which will also
match '-wd', etc. So match it with quotes. This won't give us false
positives, but might give us false negatives in case the argument is not
quoted, but that's better behaviour for a test.
The alternative is to split the string command, but the command does not
necessarily obey shell quoting rules, so we cannot reliably use
shlex.split().
8 years ago
Philipp Geier
54697b4130
ICC 17.0.0 working for Linux and Ninja Backend.
...
Added IntelCompiler, IntelCCompiler and IntelCCompiler.
environments.py has been changed to detect icc and icpc.
ninjabackend changed for proper pch generation.
ICC 17.0.0 does not support C++13 (that's why default arguments tests fails).
Test 25 object extraction fails due to some unescaped whitespaces.
Some test with vala fail because of successful build, although they
should fail, as warning do not exit with failure.
8 years ago
Mike Sinkovsky
079e43f70b
fix 'unreachable code' warnings
8 years ago
Jussi Pakkanen
c025c71ae2
Merge pull request #1252 from trhd/master
...
Some mesontest related improvements.
8 years ago
Mike Sinkovsky
3b0eec7703
fix 'method signature does no match signature of overridden method'
8 years ago
Hemmo Nieminen
ebea1e3bd9
mesontest: Print test stats even if in verbose mode.
8 years ago
Hemmo Nieminen
01be50fdd9
mesontest: Unify testing behaviour between the test target and mesontest.
...
Also add a test summary to the end of the test output.
8 years ago
Hemmo Nieminen
fc17e3b9cc
mesontest: Show the test command in truncated test logs.
8 years ago
Hemmo Nieminen
bf281fd4c4
mesontest: Remove excess newline and whitespace from test logs.
8 years ago
Nirbheek Chauhan
89ea236b02
project tests: Always print the logs of failing tests
...
There is never any reason to not do this since this script is supposed
to be run by developers and testers who are concerned with the details
of the problems.
It also helps with intermittent or hard-to-reproduce errors.
8 years ago
Jussi Pakkanen
dc70916ca4
Catch permissionerrors too, since Windows seems to produce them occasionally.
8 years ago
Jussi Pakkanen
e245bdbdc0
Merge pull request #1254 from mesonbuild/testsetups
...
Add test setups
8 years ago
Igor Gnatenko
f4058b692d
backends/ninja: remove unused variable
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Jussi Pakkanen
b3d51abff2
Can put external programs to test suite exe wrappers directly.
8 years ago
Jussi Pakkanen
74f15263b6
Can set envvars in test setups.
8 years ago
Jussi Pakkanen
ee8a6e6fc5
Can specify test setups and run them with mesontest.
8 years ago
Igor Gnatenko
ef3cc6b3fa
style: fix E127 violations
...
E127: continuation line over-indented for visual indent
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
cdd05aa5dc
style: fix E241 violations
...
E241: multiple spaces after ','
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
dd36847c4b
style: fix E202 violations
...
E202: whitespace before ']'
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
c13160034f
style: fix E201 violations
...
E201: whitespace after '['
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Jussi Pakkanen
d94f64ded1
Support default_options in dependency() fallbacks.
8 years ago
Jussi Pakkanen
776b0d9a5f
Merge pull request #1263 from centricular/meson_exe_deterministic
...
serialise_executable: Name the data file deterministically
8 years ago
Mike Sinkovsky
2d2e3b943c
fix for cross-builds targeting macosx
8 years ago
Igor Gnatenko
f0bc5568a7
style: fix E703 violations
...
E703: statement ends with a semicolon
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
969dc7e995
style: fix E124 violations
...
E124: closing bracket does not match visual indentation
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
116da33cdd
style: fix E128 violations
...
E128: continuation line under-indented for visual indent
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
ea570bcb67
style: fix E265 violations
...
E265: block comment should start with '# '
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
f19bec34a9
style: fix E271 violations
...
E271: multiple spaces after keyword
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
5693758e46
style: fix E231 violations
...
E231: missing whitespace after ','
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
2a835c2c10
style: fix E221 violations
...
E221: multiple spaces before operator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
ef608f217d
style: fix E222 violations
...
E222: multiple spaces after operator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
2017d8578a
style: fix E226 violations
...
E226: missing whitespace around arithmetic operator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
f0b30baa39
style: fix E225 violations
...
E225: missing whitespace around operator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
15629d2fae
backends/ninja: remove unused variables
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Nirbheek Chauhan
5060e2045b
serialise_executable: Name the data file deterministically
...
Closes #1062
8 years ago
Nirbheek Chauhan
3445beb00b
Add a test for deterministic exe-wrapper data file
...
https://github.com/mesonbuild/meson/issues/1062
8 years ago
Jussi Pakkanen
b55235dfbd
Fix space before :.
8 years ago
Hemmo Nieminen
504f974204
Pass project's user options to scan-build temporary project.
...
This allows (among other things) scan-build to process a project's
optional components that will not get built unless a (user) option has
been set.
8 years ago