aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-06 14:01:09 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-06 14:01:09 -0700
commit7d0af54c914da5a86446a44d8341fe1b83111094 (patch)
treef7024ef17f38ebbe34c7cbc5f14bfb5273092015
parent1cb6dfae9576c653f14e3adf4f7a4cd15dc5ef0b (diff)
add infrastructure to test multiple optimization levels in test_outline
-rwxr-xr-xtests/runner.py28
1 files changed, 15 insertions, 13 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 1e7585e3..04e15d7f 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -11242,19 +11242,21 @@ f.close()
print outlining_limit, ' ', low, '<=', seen, '<=', high
assert low <= seen <= high
- test('zlib', path_from_root('tests', 'zlib', 'example.c'),
- self.get_library('zlib', os.path.join('libz.a'), make_args=['libz.a']),
- open(path_from_root('tests', 'zlib', 'ref.txt'), 'r').read(),
- {
- 100: (190, 250),
- 250: (300, 330),
- 500: (250, 310),
- 1000: (230, 300),
- 2000: (380, 450),
- 5000: (800, 1100),
- 0: (1500, 1800)
- },
- args=['-I' + path_from_root('tests', 'zlib')], suffix='c')
+ for test_opts in [[]]: #['-O2']]:
+ Building.COMPILER_TEST_OPTS = test_opts
+ test('zlib', path_from_root('tests', 'zlib', 'example.c'),
+ self.get_library('zlib', os.path.join('libz.a'), make_args=['libz.a']),
+ open(path_from_root('tests', 'zlib', 'ref.txt'), 'r').read(),
+ {
+ 100: (190, 250),
+ 250: (300, 330),
+ 500: (250, 310),
+ 1000: (230, 300),
+ 2000: (380, 450),
+ 5000: (800, 1100),
+ 0: (1500, 1800)
+ },
+ args=['-I' + path_from_root('tests', 'zlib')], suffix='c')
def test_symlink(self):
if os.name == 'nt':