diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-08-11 23:53:01 +0530 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-13 21:16:22 +0300 |
commit | 192d0dd0a79f5f649b41e659c33ea8e4323ebc95 (patch) | |
tree | ca62f4a5d7cec17584ab32850f393ce3c69ee660 /run_tests.py | |
parent | 7aed29e2c33d60fee5f6bac89bd17aaf6b770b04 (diff) | |
download | meson-192d0dd0a79f5f649b41e659c33ea8e4323ebc95.zip meson-192d0dd0a79f5f649b41e659c33ea8e4323ebc95.tar.gz meson-192d0dd0a79f5f649b41e659c33ea8e4323ebc95.tar.bz2 |
unit tests: Select test cases inside run_unittests.py
This allows people to directly run ./run_unittests.py without having
to worry about selecting the right test cases for the platform they
are on.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/run_tests.py b/run_tests.py index b8c5062..efbdaaa 100755 --- a/run_tests.py +++ b/run_tests.py @@ -190,13 +190,6 @@ if __name__ == '__main__': # Run tests print(mlog.bold('Running unittests.').get_text(mlog.colorize_console)) print() - units = ['InternalTests', 'AllPlatformTests', 'FailureTests'] - if mesonlib.is_linux(): - units += ['LinuxlikeTests'] - if should_run_linux_cross_tests(): - units += ['LinuxArmCrossCompileTests'] - elif mesonlib.is_windows(): - units += ['WindowsTests'] # Can't pass arguments to unit tests, so set the backend to use in the environment env = os.environ.copy() env['MESON_UNIT_TEST_BACKEND'] = backend.name @@ -208,8 +201,7 @@ if __name__ == '__main__': 'coverage.process_startup()\n') env['COVERAGE_PROCESS_START'] = '.coveragerc' env['PYTHONPATH'] = os.pathsep.join([td] + env.get('PYTHONPATH', [])) - - returncode += subprocess.call([sys.executable, 'run_unittests.py', '-v'] + units, env=env) + returncode += subprocess.call([sys.executable, 'run_unittests.py', '-v'], env=env) # Ubuntu packages do not have a binary without -6 suffix. if should_run_linux_cross_tests(): print(mlog.bold('Running cross compilation tests.').get_text(mlog.colorize_console)) |