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
Jussi Pakkanen
73b8ff5341
Rework installation logic so we can go outside the install prefix.
10 years ago
Jussi Pakkanen
08ef881c86
Extracted compiler definitions to their own file.
10 years ago
Jussi Pakkanen
525f0ae6d2
Harmonised copyright declarations.
10 years ago
Robin McCorkell
85586ce1ba
Signal handling for run_tests.py
...
SIGINT and SIGTERM are handled, causing further test execution to stop and
the results to be printed immediately. Also cleans up prebuilt objects
10 years ago
Jussi Pakkanen
c4860ff60f
Updated copyright years.
10 years ago
Jussi Pakkanen
100c20e568
Scan Fortran dependencies at the beginning for all sources.
11 years ago
Jussi Pakkanen
9abc5e0570
Vestigial removal.
11 years ago
Jussi Pakkanen
b3ca519fea
Message clarification.
11 years ago