summaryrefslogtreecommitdiff
path: root/run_tests.py
AgeCommit message (Collapse)Author
2017-04-09unit tests: exe_suffix is '.exe' on CygwinNirbheek Chauhan
2017-04-09tests: Move appveyor platform workaround to run_tests.pyNirbheek Chauhan
This is also needed for the unit tests
2017-04-09unit tests: Fix running specific targets with MSBuildNirbheek Chauhan
/t:targetname syntax doesn't work, but running the vcxproj does work Also use the Backend enum everywhere.
2017-04-09unit tests: Run on all backends, not just NinjaNirbheek Chauhan
2017-04-09run_project_tests: Clean on backends that can't installNirbheek Chauhan
Also sets more groundwork for running unit tests with backends other that Ninja. Transferring global state to executors is totally broken in Python 3.4 so just serialize all the commands.
2017-04-09tests: Factor out common code to run_testsNirbheek Chauhan
And use generic build/clean/test/install commands in the unit tests, just like project tests. This sets the groundwork for running the unit tests with all backends.
2017-04-09run_tests: Improve the backend detectionNirbheek Chauhan
2017-03-30run_tests: Don't run unit tests when the VS backend is selectedNirbheek Chauhan
2017-02-20Merge pull request #1403 from centricular/compile_resourcesJussi Pakkanen
Make configure_file() great again
2017-02-20run_tests.py: Nice down when running on a dev machineNirbheek Chauhan
To avoid destroying productivity.
2017-02-18find_program: Correctly use scripts found in PATHNirbheek Chauhan
We also need to check whether the program found in PATH can be executed directly by Windows or if we need to figure out what the interpreter is and add it to the list. Also add `msc` to the list of extensions that can be executed natively Includes a project test and a unit test for this and all expected behaviours on Windows.
2017-02-18Add unit tests related to absolute prefixesNirbheek Chauhan
Also split the unit tests into those that are actually Linux-specific and those that are not and can (and should) run on all platforms. This will give us much better coverage since a lot of these test platform-specific code in Meson that wraps features that we expose in a platform-agnostic way. Tests are for: https://github.com/mesonbuild/meson/issues/1341 https://github.com/mesonbuild/meson/issues/1345 https://github.com/mesonbuild/meson/issues/1349
2017-01-30Run some unit tests on all platformsNirbheek Chauhan
InternalTests can be run on all platforms since they have nothing Linux-specific.
2016-12-31Do not run arm cross compilation tests on arm.Jussi Pakkanen
2016-12-21Some merge conflicts are logical. Such as this one was.Jussi Pakkanen
2016-12-21Merge pull request #1233 from mesonbuild/wip/ignatenko/code-styleJussi Pakkanen
Trivial cleanups in code
2016-12-20Fix cross test and run them if a cross compiler is available.Jussi Pakkanen
2016-12-19tree-wide: remove unused importsIgor Gnatenko
./setup.py:17:1: F401 'os' imported but unused import os ^ ./setup.py:37:1: F401 'stat.ST_MODE' imported but unused from stat import ST_MODE ^ ./run_tests.py:17:1: F401 'os' imported but unused import subprocess, sys, os ^ ./run_tests.py:18:1: F401 'shutil' imported but unused import shutil ^ ./run_unittests.py:23:1: F401 'mesonbuild.dependencies.Qt5Dependency' imported but unused from mesonbuild.dependencies import PkgConfigDependency, Qt5Dependency ^ ./mesonbuild/build.py:15:1: F401 '.coredata' imported but unused from . import coredata ^ ./mesonbuild/interpreter.py:32:1: F401 'subprocess' imported but unused import os, sys, subprocess, shutil, uuid, re ^ ./mesonbuild/interpreter.py:32:1: F401 're' imported but unused import os, sys, subprocess, shutil, uuid, re ^ ./mesonbuild/dependencies.py:23:1: F401 'subprocess' imported but unused import os, stat, glob, subprocess, shutil ^ ./mesonbuild/mesonlib.py:17:1: F401 'sys' imported but unused import platform, subprocess, operator, os, shutil, re, sys ^ ./mesonbuild/modules/qt5.py:15:1: F401 'subprocess' imported but unused import os, subprocess ^ ./mesonbuild/modules/pkgconfig.py:15:1: F401 '..coredata' imported but unused from .. import coredata, build ^ ./mesonbuild/scripts/scanbuild.py:15:1: F401 'sys' imported but unused import sys, os ^ ./mesonbuild/scripts/meson_exe.py:20:1: F401 'subprocess' imported but unused import subprocess ^ ./mesonbuild/scripts/meson_exe.py:22:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException, Popen_safe ^ ./mesonbuild/scripts/symbolextractor.py:23:1: F401 'subprocess' imported but unused import os, sys, subprocess ^ ./mesonbuild/scripts/symbolextractor.py:25:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException, Popen_safe ^ ./mesonbuild/scripts/meson_install.py:19:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException, Popen_safe ^ ./mesonbuild/scripts/yelphelper.py:15:1: F401 'sys' imported but unused import sys, os ^ ./mesonbuild/scripts/yelphelper.py:20:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException ^ ./mesonbuild/backend/vs2010backend.py:17:1: F401 're' imported but unused import re ^ ./test cases/vala/8 generated sources/src/copy_file.py:3:1: F401 'os' imported but unused import os ^ ./test cases/common/107 postconf/postconf.py:3:1: F401 'sys' imported but unused import sys, os ^ ./test cases/common/129 object only target/obj_generator.py:5:1: F401 'shutil' imported but unused import sys, shutil, subprocess ^ ./test cases/common/57 custom target chain/usetarget/subcomp.py:3:1: F401 'os' imported but unused import sys, os ^ ./test cases/common/95 dep fallback/subprojects/boblib/genbob.py:3:1: F401 'os' imported but unused import os ^ ./test cases/common/98 gen extra/srcgen.py:4:1: F401 'os' imported but unused import os ^ ./test cases/common/113 generatorcustom/gen.py:3:1: F401 'os' imported but unused import sys, os ^ ./test cases/common/113 generatorcustom/catter.py:3:1: F401 'os' imported but unused import sys, os ^ ./test cases/common/59 object generator/obj_generator.py:5:1: F401 'shutil' imported but unused import sys, shutil, subprocess ^ Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-11-01Run unittests only with default compiler.Jussi Pakkanen
2016-10-12Some fixes to unittest running.Jussi Pakkanen
2016-10-09Review fixes.Jussi Pakkanen
2016-10-08Pass cmd line args onwards.Jussi Pakkanen
2016-10-08Store all invocation output. Not shown to users yet.Jussi Pakkanen
2016-10-08Run unittests.Jussi Pakkanen
2016-10-07run_tests: Print stdo and stde in failing test logsNirbheek Chauhan
This is a superset of the mlog output, and also contains the ninja output and the test output.
2016-09-11Merge pull request #684 from mesonbuild/pdbJussi Pakkanen
Create pdb files with MSVC
2016-09-11run_tests.py: Ignore .pdb files while validating installNirbheek Chauhan
Their presence depends on build options and compiler, and we don't currently have the test infrastructure to deal with this.
2016-08-30Use context manager in test cases.Elliott Sales de Andrade
2016-08-19Implement D supportMatthias Klumpp
This patch adds support for the D programming language[1] to Meson. The following compilers are supported: * LDC * GDC * DMD [1]: http://dlang.org/
2016-07-25Added test for a prebuilt static library and a declare_dependency that uses it.Jussi Pakkanen
2016-07-19Normalize the path of a configured file to avoid dupes (#640)Nirbheek Chauhan
2016-07-13run_tests.py: Make 'no-installed-files' stricterNirbheek Chauhan
When the file 'no-installed-files' is installed, require that the test not install any other files. A test for this is pending.
2016-07-01Fix tests for the new library/executable naming schemeNirbheek Chauhan
Also add new tests for the platform-specific and compiler-specific versioning scheme. A rough summary is: 1. A bug in how run_tests.py:validate_install checked for files has been fixed. Earlier it wasn't checking the install directory properly. 2. Shared libraries are no longer installed in common tests, and the library name/path testing is now done in platform-specific tests. 3. Executables are now always called something?exe in the installed_files.txt file, and the suffix automatically corrected depending on the platform. 4. If a test installs a file called 'no-installed-files', the installed files for that test are not validated. This is required to implement compiler-specific tests for library names/paths such as MSVC vs MinGW 5. The platform-specific file renaming in run_tests.py has been mostly removed since it is broken for shared libraries and isn't needed for static libraries. 6. run_tests.py now reports all missing and extra files. The logic for finding these has been reworked.
2016-06-24Fix typo argument order to TestRunner (#615)Nirbheek Chauhan
2016-06-23Print full mesonlog on failed tests when run under CI.Jussi Pakkanen
2016-06-13Finish appveyor integration by moving static library in a subdir to avoid ↵Jussi Pakkanen
clashes.
2016-06-13Print full log when failures happen under Appveyor.Jussi Pakkanen
2016-06-05Merge pull request #577 from nioncode/vs2015Jussi Pakkanen
Implement vs2015 backend
2016-05-30add vs2015 backendNicolas Schneider
2016-05-30Print all of the things when CI fails.Jussi Pakkanen
2016-05-25cancel all pending test cases when interrupted by signalsNicolas Schneider
2016-04-07simplify unit test output (#506)Nicolas Schneider
Print status on single line only print a single line for succeeded tests and two lines for failed tests. This makes it easier to scan the output for failed tests.
2016-04-06add exponential backoff for deleting temp directoriesNicolas Schneider
2016-04-06fix off by one, since range() does not include the end of the rangeNicolas Schneider
2016-04-06fix randomly failing test execution on WindowsNicolas Schneider
shutil.rmtree, which is used by tempfile.TemporaryDirectory, randomly fails on Windows, because the directory is not empty although it should be, because all files were deleted by shutil.rmtree internals before trying to remove the directory. A simple retry approach fixes the issue.
2016-04-05do not print anything during testsNicolas Schneider
Otherwise, output from parallel tests might interleave. Let the main loop handle printing of additional info.
2016-04-05properly fix Windows parallel tests by not using global variablesNicolas Schneider
The _run_test method uses several global variables (unity_flags, backend_flags, compile_commands, install_commands) which are not set when the method is run by the executor (at least on Windows). To resolve this, pass the variables as method parameters.
2016-04-05Revert "Fix Windows. Again."Nicolas Schneider
This reverts commit e522a9f2684e38955aefda3b4413a78997ccdbc9.
2016-04-01Fix Windows. Again.Jussi Pakkanen
2016-04-01Output is all pretty again.Jussi Pakkanen