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
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
Jussi Pakkanen
92f8e0ab31
Do not run arm cross compilation tests on arm.
8 years ago
Jussi Pakkanen
0a14ad63de
Add simple uninstall target. Closes #753 .
8 years ago
Jussi Pakkanen
aff62a4611
Merge pull request #1258 from QuLogic/compile_resource-includes
...
Add include_directories to windows.compile_resources.
8 years ago
Hemmo Nieminen
4ae629d2aa
Use the correct directory for scan-build command.
8 years ago
Igor Gnatenko
8f5b67434d
setup.cfg: fix syntax
8 years ago
Elliott Sales de Andrade
157549fe72
Add include_directories to windows.compile_resources.
8 years ago
Elliott Sales de Andrade
24b3585318
Move _get_include_args from gnome to modules.
8 years ago
Jussi Pakkanen
c1e2f58443
Just say no.
8 years ago
Igor Gnatenko
f56458810d
setup.cfg: ignore couple of PEP8 errors
...
We don't care about E261 and temporarily ignore E501.
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Jussi Pakkanen
775729eb59
Can specify include directories to compiler tests.
8 years ago
Nirbheek Chauhan
a97291dc6d
Add get_version() method to all dependencies
...
We unconditionally check the version of all dependencies, so without
this regen will fail if you use that dependency.
8 years ago
Nirbheek Chauhan
a3c02262f9
Force a Ninja regeneration before each project test
...
We have no test coverage for regeneration at all, which is why issues
like #1246 slide by without us noticing. With this, we will run a regen
on every test during `ninja test` after it has been compiled. This will
not affect test times too much since the regen will not rebuild anything
at all since there have been no source changes.
8 years ago
Matthias Klumpp
7eb96375ca
gdc: Make dependency check work
...
The -fmake-deps command does not segfault anymore, and if it is used
with "=" there will also be no "file not found" error.
8 years ago