diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-15 18:40:35 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-15 18:40:35 -0800 |
commit | 680e9c48bac764ba57c8a5c8dfa6981041caf480 (patch) | |
tree | 796f5325d7f41a5dc2d25312d9c304fccdb0dc93 /tests/runner.py | |
parent | 693dcd6d303554f8e5bf0278b2186d6acbee72b6 (diff) | |
parent | 6259358a5a125b64a90651ab1ee535e919339b68 (diff) |
Merge branch 'master' into emccbydefault
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 68562215..7361f978 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): |