diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-15 15:38:26 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-15 17:07:31 -0800 |
commit | 6259358a5a125b64a90651ab1ee535e919339b68 (patch) | |
tree | cbc28b6b1abba72c488531eeb2269f437b14fbd4 /tests/runner.py | |
parent | ad34dff9ae485eafab64d68a61a193f82f3b1988 (diff) |
rewrite variable analysis code. eliminate unused variables without side effects, and improve nativization logic.
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index c8f23237..e908d294 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -3895,7 +3895,7 @@ at function.:blag for name in glob.glob(path_from_root('tests', 'cases', '*.ll')): shortname = name.replace('.ll', '') - #if 'break' not in shortname: continue + if '' not in shortname: continue print "Testing case '%s'..." % shortname output_file = path_from_root('tests', 'cases', shortname + '.txt') if Settings.QUANTUM_SIZE == 1: @@ -3908,6 +3908,11 @@ at function.:blag output = 'hello, world!' if output.rstrip() != 'skip': self.do_ll_run(path_from_root('tests', 'cases', name), output) + # Optional source checking, a python script that gets a global generated with the source + src_checker = path_from_root('tests', 'cases', shortname + '.py') + if os.path.exists(src_checker): + generated = open('src.cpp.o.js').read() + exec(open(src_checker).read()) # Autodebug the code def do_autodebug(self, filename): |