aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-14 18:46:48 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-14 18:46:48 -0800
commit4d97e261fce0bfe07c9e52726639b2d6440546fc (patch)
tree8115a998c0bac6c502e4e22ec9175b9972e38036 /tests
parent193a0cc9d243ccee7498daec5bdb32842fe2f3e7 (diff)
support -o with multiple bitcode inputs in emcc
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 236ad659..83fe4ca6 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -5015,6 +5015,14 @@ Options that are modified or new in %s include:
assert os.path.exists(target), '\n'.join(output)
self.assertContained('side got: hello from main, over', run_js(target))
+ # Combining bc files into another bc should also work
+ try_delete(target)
+ assert not os.path.exists(target)
+ output = Popen([compiler, 'twopart_main.o', 'twopart_side.o', '-o', 'combined.bc'] + args, stdout=PIPE, stderr=PIPE).communicate()
+ assert os.path.exists('combined.bc'), '\n'.join(output)
+ self.assertContained('side got: hello from main, over', self.run_llvm_interpreter(['combined.bc']))
+
+
# TODO: test normal project linking, static and dynamic: get_library should not need to be told what to link!
# TODO: when ready, switch tools/shared building to use emcc over emmaken
# TODO: when this is done, more test runner to test these (i.e., test all -Ox thoroughly)