Nicolas Schneider
3bedca0257
add vs2015 backend
9 years ago
Jussi Pakkanen
37c5d45d07
Print all of the things when CI fails.
9 years ago
Nicolas Schneider
4a102fd445
cancel all pending test cases when interrupted by signals
9 years ago
Nicolas Schneider
1d2b4ed8e9
simplify unit test output ( #506 )
...
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.
9 years ago
Nicolas Schneider
435700aeb0
add exponential backoff for deleting temp directories
9 years ago
Nicolas Schneider
5decddf09f
fix off by one, since range() does not include the end of the range
9 years ago
Nicolas Schneider
32e0973ef1
fix randomly failing test execution on Windows
...
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.
9 years ago
Nicolas Schneider
42e6b78351
do not print anything during tests
...
Otherwise, output from parallel tests might interleave. Let the main loop
handle printing of additional info.
9 years ago
Nicolas Schneider
ff9d879eea
properly fix Windows parallel tests by not using global variables
...
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.
9 years ago
Nicolas Schneider
eb69b268d4
Revert "Fix Windows. Again."
...
This reverts commit e522a9f268
.
9 years ago
Jussi Pakkanen
e522a9f268
Fix Windows. Again.
9 years ago
Jussi Pakkanen
a7e9301215
Output is all pretty again.
9 years ago
Jussi Pakkanen
81e37e1220
Run tests in parallel.
9 years ago
Jussi Pakkanen
9587715585
Fix Windows.
9 years ago
Jussi Pakkanen
ea092fefc2
Use individual tempdirs for building and installing in unit tests.
9 years ago
Jussi Pakkanen
5b3c9e262b
Check option files too.
9 years ago
Nicolas Schneider
5482a23936
enhance test framework to read meson arguments from a file per test
...
A 'test_args.txt' file in the same directory as the test case will be
parsed by the test framework and the content will be passed as arguments
to meson during configuration. The arguments are put before any
'extra_args' to make them overwritable from the command line.
9 years ago
Jussi Pakkanen
455e55f8e5
Back to .py suffix in files. Closes #394 .
9 years ago
Nicolas Schneider
681a14a695
use sys.stdout.encoding when parsing subprocess output
9 years ago
Jussi Pakkanen
a8120eb519
Added plain Python sample project.
9 years ago
Jussi Pakkanen
23b98cd6e6
Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir.
9 years ago
Jussi Pakkanen
4c31e7774d
Finalize moduleification so that full test suite runs.
9 years ago
Jussi Pakkanen
a5508d3fd3
Can run most of test suite (with hacks).
9 years ago
Jussi Pakkanen
8b1039fa30
Organise files into a module structure.
9 years ago
Jussi Pakkanen
c86ee8158a
Make vs dependency detector work on non-english locales.
9 years ago
Jussi Pakkanen
d92504797f
Can build simple Swift executables.
9 years ago
Jussi Pakkanen
26873801bc
Can define benchmarks and run them.
9 years ago
Jussi Pakkanen
067935ce76
Added conf option for build tree layout.
9 years ago
Jussi Pakkanen
9d559b2b39
More robust windows detection and more logs.
9 years ago
Igor Gnatenko
4dc8dbb7c1
run_tests: Bad first argument 'Exception' given to super()
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
816013ef0d
run_tests: fix bad-continuation
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
cf0bd77ddd
Do not invoke linker via cmd /c on Windows.
10 years ago
Jussi Pakkanen
ff7c8b1647
Run unit tests in-process too for extra speed.
10 years ago
Jussi Pakkanen
144b2314ce
Run Meson test invocations in-process because spawning a new Python process for each is too slow.
10 years ago
Jussi Pakkanen
324cca808d
Print test time breakdown.
10 years ago
Jussi Pakkanen
edda2f6888
Store time taken to configure, build and test individual cases.
10 years ago
Jussi Pakkanen
a92fcb711b
Fix windows tests when using newer MinGW.
10 years ago
Jussi Pakkanen
f19fd50702
Encoding of result file is always utf-8.
10 years ago
Igor Gnatenko
2c8c6fbf20
tests: add all platform tests and skip needed tests
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
e0ba9ba2b9
tests: add skipped tests
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
dccb6a170e
tests: add time property
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
9287d7e2c5
Write out padding zeroes to numbers because Jenkins is too stupid to do logical order sorting.
10 years ago
Igor Gnatenko
7249ff9b00
tests: use name as class name
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
99a955491d
Minor fixes.
10 years ago
Jussi Pakkanen
3a1a3404ba
Fix empty java case.
10 years ago
Jussi Pakkanen
fd30a81fa9
Made run_tests.py output test results in junit xml to allow better integration with CI tools.
10 years ago
Jussi Pakkanen
bb28b6b51c
Refactor unit test running.
10 years ago
Jussi Pakkanen
c3645e2b45
Use argparse instead of optparse in run_tests.
10 years ago
Jussi Pakkanen
436a81f920
Can specify backend to run_tests.py.
10 years ago
Jussi Pakkanen
1ab5b850ef
Use lib as library path in unit tests.
10 years ago