Add a regression test for test suites.

Ensure test setup environment variables can from now on be given also as
strings.
pull/2236/head
Hemmo Nieminen 8 years ago
parent fa57295623
commit 64950bd318
  1. 2
      run_unittests.py
  2. 2
      test cases/unit/2 testsetups/meson.build

@ -813,6 +813,8 @@ class AllPlatformTests(BasePlatformTests):
self._run(self.mtest_command + ['--setup=empty'])
# Setup with only env works
self._run(self.mtest_command + ['--setup=onlyenv'])
self._run(self.mtest_command + ['--setup=onlyenv2'])
self._run(self.mtest_command + ['--setup=onlyenv3'])
# Setup with only a timeout works
self._run(self.mtest_command + ['--setup=timeout'])

@ -16,5 +16,7 @@ test('Test buggy', buggy)
add_test_setup('empty')
add_test_setup('onlyenv', env : env)
add_test_setup('onlyenv2', env : 'TEST_ENV=1')
add_test_setup('onlyenv3', env : ['TEST_ENV=1'])
add_test_setup('wrapper', exe_wrapper : [vg, '--error-exitcode=1'])
add_test_setup('timeout', timeout_multiplier : 20)

Loading…
Cancel
Save