Commit Graph

3156 Commits

Author SHA1 Message Date
Jussi Pakkanen 11f9425a5e Can use targets directly in test arguments. 2017-01-15 21:54:26 +02:00
Jussi Pakkanen cfc33ac421 Merge pull request #1303 from mesonbuild/buildonall
Add kwarg build_by_default
2017-01-15 21:28:10 +02:00
Jussi Pakkanen 7a28f387e2 More readable total statistics. 2017-01-15 21:27:32 +02:00
Jussi Pakkanen 21d8505825 build_by_default it is. 2017-01-15 20:14:46 +02:00
Jussi Pakkanen 72a346dacf Merge pull request #1257 from QuLogic/generator-files
Add support for Files passed to generators.
2017-01-15 20:10:05 +02:00
Nirbheek Chauhan 0bc44da702 tests/common/126: Also skip unsupported CPUs here
Related to https://github.com/mesonbuild/meson/pull/1289 and
https://github.com/mesonbuild/meson/issue/1287
2017-01-15 19:48:26 +02:00
Jussi Pakkanen 58878b998d Get rid of hasattr. 2017-01-15 19:45:23 +02:00
Jussi Pakkanen db8ad2a4bd Add test for build_on_all. 2017-01-15 19:45:23 +02:00
Jussi Pakkanen b1087f011c Moved detection of targets to build on all into own function. 2017-01-15 19:45:23 +02:00
Jussi Pakkanen 7abc7c64b0 Created base class for all targets and moved common functionality there. 2017-01-15 19:45:23 +02:00
Jussi Pakkanen 4aea0276f0 Merge pull request #1279 from trhd/master
mesontest: Improve test suite selection.
2017-01-15 19:38:28 +02:00
Hemmo Nieminen 5833bd6735 tests: Add a test for new test suite selection. 2017-01-13 00:09:52 +02:00
Hemmo Nieminen b90956c2f2 mesontest: Improve test suite selection.
Suite option can now be given to specify in more detail which tests should
be run.
2017-01-12 22:17:12 +02:00
Elliott Sales de Andrade 78b030cf19 Add support for Files passed to generators.
I need this for windows.compile_resources to be able to use
configure_file results, but it may have other benefits.
2017-01-12 03:25:08 -05:00
Mike Sinkovsky eea0670872 style: disable flake8 warnings E241, E251, E305, E401 2017-01-11 12:33:27 -05:00
Mike Sinkovsky 5b626ab4cb style: [E1**] Indentation 2017-01-11 12:33:27 -05:00
Mike Sinkovsky 0dd1e33898 style: [E251] unexpected spaces around keyword / parameter equals 2017-01-11 12:33:27 -05:00
Mike Sinkovsky ab4f7b56ce style: [E272] multiple spaces before keyword 2017-01-11 12:33:27 -05:00
Mike Sinkovsky 3adf5aed81 style: [E402] module level import not at top of file 2017-01-11 12:33:27 -05:00
Mike Sinkovsky 77515ee541 style: [E303] too many blank lines (2) 2017-01-11 12:33:27 -05:00
Mike Sinkovsky 84902cb93a style: [E301] expected 1 blank line, found 0 2017-01-11 12:33:27 -05:00
Mike Sinkovsky f9344b03a8 style: [E721] do not compare types, use 'isinstance()' 2017-01-11 12:33:27 -05:00
Mike Sinkovsky bf14cec81b style: [E712] comparison to True should be 'if cond is True:' or 'if cond:' 2017-01-11 12:33:27 -05:00
Mike Sinkovsky c8981bdd1b style: [E711] comparison to None should be 'if cond is None:' 2017-01-11 12:33:27 -05:00
Mike Sinkovsky e9a891fe25 style: [E502] the backslash is redundant between brackets 2017-01-11 12:33:27 -05:00
Jussi Pakkanen 34caf6471c Merge pull request #787 from mesonbuild/py3module
Created a Python 3 module for simpler building of Python extension mo…
2017-01-09 16:36:00 -05:00
Jussi Pakkanen 6ac9a8e738 Add .find_python() method. Supersedes #777. 2017-01-09 21:23:18 +02:00
Jussi Pakkanen fbabe8ad85 There are two different kinds of extensions: modules that create new
objects directly and snippets that just call into interpreter methods.
2017-01-09 21:11:48 +02:00
Jussi Pakkanen 24221d71cc Created a Python 3 module for simpler building of Python extension modules. 2017-01-09 21:07:23 +02:00
Jussi Pakkanen 9cf0991a1d Merge pull request #1278 from mesonbuild/newmodules
Bring some order to modules
2017-01-09 14:03:15 -05:00
Nirbheek Chauhan 747d4f2b03 We only need Ninja 1.5.x for the core code
This change helps us run on older distros such as Ubuntu LTS which is
very lazy in updating even non-core and stable packages such as Ninja.

Ninja 1.6.x is only needed for running the tests.
2017-01-09 14:03:03 -05:00
Jussi Pakkanen 340781c515 Fix Gnome module. 2017-01-09 20:04:52 +02:00
Jussi Pakkanen 00f62d0755 Can get values in ConfigurationData objects. 2017-01-06 14:01:45 -05:00
Jussi Pakkanen 8f3616e72e Compile asm only on supported cpus. Closes #1287. 2017-01-06 14:00:24 -05:00
Jussi Pakkanen fdd0675661 Better error messages. Closes #1284. 2017-01-06 14:00:00 -05:00
Jussi Pakkanen 570c9b150b Fix a few more modules. 2017-01-06 19:22:56 +02:00
Jussi Pakkanen de24fddbd1 Create a module return value object. 2017-01-04 21:01:06 +02:00
Jussi Pakkanen 56e2c46ce1 Merge pull request #1272 from mesonbuild/ignatenko/lint
fix some linting errors
2017-01-03 16:04:24 -05:00
Jussi Pakkanen 55cdba635e Merge pull request #1260 from mesonbuild/subproj_defaults
Can set subproject option defaults from command line and master project
2017-01-03 16:03:18 -05:00
Jussi Pakkanen 5ff97b0f35 Update author list. 2017-01-03 22:56:31 +02:00
Jussi Pakkanen 35633c6865 Merge pull request #1253 from geier1993/intel
Intel C/C++ Compiler support
2017-01-03 15:55:51 -05:00
Jussi Pakkanen 027af6b064 Error out if trying to do gettext without appropriate tools. 2017-01-03 15:10:38 -05:00
Nirbheek Chauhan a99732aaf2 Project tests: Also catch ValueError
It seems on Windows, deleting in a loop can cause a race where the
following error is raised:

Traceback (most recent call last):
  File "run_project_tests.py", line 550, in <module>
    (passing_tests, failing_tests, skipped_tests) = run_tests(all_tests, 'meson-test-run', options.extra_args)
  File "run_project_tests.py", line 416, in run_tests
    result = result.result()
  File "C:\python34-x64\lib\concurrent\futures\_base.py", line 402, in result
    return self.__get_result()
  File "C:\python34-x64\lib\concurrent\futures\_base.py", line 354, in __get_result
    raise self._exception
ValueError: I/O operation on closed file.

https://ci.appveyor.com/project/jpakkane/meson/build/1.0.1559/job/vsek754eu000kg3e
2017-01-04 00:42:06 +05:30
Nirbheek Chauhan 2589009d23 ifort: Derive from IntelCompiler base class
And fix the list of supported file suffixes, and use .f90 for all
fortran tests since ifort, the Intel Fortran compiler ignores files
ending with .f95, .f03, and .f08
2017-01-04 00:41:56 +05:30
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.
2017-01-04 00:40:54 +05:30
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.
2017-01-04 00:40:54 +05:30
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'
2017-01-04 00:40:54 +05:30
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.
2017-01-04 00:40:54 +05:30
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.
2017-01-04 00:40:54 +05:30
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
2017-01-04 00:40:54 +05:30