diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-02-15 18:14:46 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-02-15 18:14:46 -0500 |
commit | 7d756357d7dec0009a9f0c603da0b95cf5a211f4 (patch) | |
tree | 9c0b67d35d04abd9773306bec2303151728f3cee /tests | |
parent | d8e25261b69dd4cd5acaacf6c76d7c658c25e9bd (diff) |
handle singleton .a files
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index a99a8320..13679871 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -5671,6 +5671,16 @@ Options that are modified or new in %s include: assert os.path.exists(target + '.js'), 'Expected %s to exist since args are %s : %s' % (target + '.js', str(args), '\n'.join(output)) self.assertContained('hello, world!', run_js(target + '.js')) + # handle singleton archives + clear() + Popen([compiler, path_from_root('tests', 'hello_world' + suffix), '-o', 'a.bc'], stdout=PIPE, stderr=PIPE).communicate() + Popen([LLVM_AR, 'r', 'a.a', 'a.bc'], stdout=PIPE, stderr=PIPE).communicate() + assert os.path.exists('a.a') + shutil.copyfile('a.a', '/home/alon/a.a') + output = Popen([compiler, 'a.a']).communicate() + assert os.path.exists('a.out.js'), output + self.assertContained('hello, world!', run_js('a.out.js')) + # emcc src.ll ==> generates .js clear() output = Popen([compiler, path_from_root('tests', 'hello_world.ll')], stdout=PIPE, stderr=PIPE).communicate() |