Elliott Sales de Andrade
4c71695e41
Use context manager for file I/O.
...
There are a few cases where a context manager cannot be used, such as
the logger.
8 years ago
Hemmo Nieminen
30bbcded23
meson_test: Fix a bug in valgrind argument handling.
...
Do not modify the wrap command argument from the calling function.
Appending the valgrind arguments to the wrap list argument will cause all
the valgrind arguments to cumulate from all the tests to the wrapper
command itself.
9 years ago
trhd
a76693f338
Fix a bug (typo) seen when printing the logs from failed tests. ( #513 )
9 years ago
Hemmo Nieminen
5764bee2f4
meson_test: Don't print logs from failing tests that are expected to fail.
9 years ago
Hemmo Nieminen
297749581d
meson_test: Add support for --print-errorlogs option.
...
This option can be used to control whether the logs from failing tests
should be shown to the user after the tests have been executed.
9 years ago
Hemmo Nieminen
f2868420ca
meson_test: Add support for --no-stdsplit option.
9 years ago
Hemmo Nieminen
457ecb6be7
meson_test: Move "options" to a global variable.
9 years ago
Jussi Pakkanen
091b782e43
Prevent state leaks when running tests in-process.
9 years ago
Jussi Pakkanen
edd61dcf81
When killing a frozen process, take all its children with it. Closes #377 .
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
66c01401de
Moved scripts in the module and started work to run them via the main meson command.
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
670d0ed929
Print output of failed tests. Closes ##347.
9 years ago
Jussi Pakkanen
8bb2586ae4
Some text format fixes.
9 years ago
Jussi Pakkanen
b3d61beb2d
A test can be part of multiple suites.
9 years ago
Jussi Pakkanen
70695bead4
Added possibility to have multiple test suites so you can run only a subset of tests. Closes #325 .
9 years ago
Jussi Pakkanen
23c6de3461
Can specify a working directory for tests. Closes #326 .
9 years ago
Jussi Pakkanen
47cb6c1030
More robust output decoding. Closes #289 .
9 years ago
Jussi Pakkanen
9d559b2b39
More robust windows detection and more logs.
9 years ago
Jussi Pakkanen
b08e2589d3
Parentheses are unnecessary.
9 years ago
Jussi Pakkanen
aada473713
Align test output text better.
9 years ago
Jussi Pakkanen
b7e391ead4
Simulate rpath on windows by adding dll subdirectories to global path in tests.
9 years ago
Jussi Pakkanen
fa74ef4c57
Added timeout kwarg to tests.
9 years ago
Igor Gnatenko
5b59951658
meson_test: 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
8be84a4a7c
Some more cross tweaking.
10 years ago
Jussi Pakkanen
572587f5ce
Fix cross compilation tests.
10 years ago
Jussi Pakkanen
ff7c8b1647
Run unit tests in-process too for extra speed.
10 years ago
Hemmo Nieminen
84581a69ed
Apply a cosmetic fix for tests' output.
...
Always leave at least two spaces between the test's name and the result of the
test (even if the test's name's lenght exeeds 40 chracters).
Signed-off-by: Hemmo Nieminen <hemmo.nieminen@iki.fi>
10 years ago
Jussi Pakkanen
e46c1743ce
Allow use of external test executables. Closes #89 .
10 years ago
Jussi Pakkanen
d289887b1b
Add should_fail kwarg to test to indicate tests that should fail.
10 years ago
Jussi Pakkanen
4745b07e99
And finally use argparse in meson_test. Closes #47 .
10 years ago
Jussi Pakkanen
b161e64d7d
Print message when no tests are defined.
10 years ago
Jussi Pakkanen
525f0ae6d2
Harmonised copyright declarations.
10 years ago
Jussi Pakkanen
a4d867b805
Print test command lines to logs.
10 years ago
Jussi Pakkanen
b97a8c82e7
Can specify Valgrind command line arguments.
10 years ago
Jussi Pakkanen
fcbe689561
Check if executables need to be run with Mono.
10 years ago
Jussi Pakkanen
c4860ff60f
Updated copyright years.
10 years ago
Jussi Pakkanen
a5863477f8
Kill end of line whitespace dead.
10 years ago
Jussi Pakkanen
0f98361117
JSON test output is now one line per test case.
11 years ago
Jussi Pakkanen
ba1ef71f11
Print test results in JSON.
11 years ago
Jussi Pakkanen
bc3018195e
Generate command to run tests with XCode.
11 years ago
Jussi Pakkanen
a2cb207762
Run Java tests as part of test suite.
11 years ago
Jussi Pakkanen
7005729418
Pass parent envvars to test executables.
11 years ago
Jussi Pakkanen
92ff302a14
Fixed cross compilation back up.
11 years ago
Jussi Pakkanen
11cfb3ce22
Can set test cmd arguments and environment variables.
11 years ago
Jussi Pakkanen
75edffd34d
Properly detect failing tests.
11 years ago
Jussi Pakkanen
ff1ac7eed1
Transfer test parallelism data from source to test runner.
11 years ago
Jussi Pakkanen
26bf87d1dc
Mixed parallel and non-parallel tests are possible.
11 years ago