aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLCID Fire <lcid-fire@gmx.net>2012-05-28 14:09:38 +0200
committerLCID Fire <lcid-fire@gmx.net>2012-05-28 14:09:38 +0200
commite9dd4ca2fa189d06c92518b57a40cdb0962ee011 (patch)
tree255beeeebd6482594719ee17eaba130d21e25456 /tests
parente5622fed879cbab5a7a3d5aac48e86784c471426 (diff)
parent506de96842099ad1bdab2f4c70293ee4cce99aa5 (diff)
Merge branch 'incoming' of https://github.com/kripken/emscripten into incoming
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index e3e0543b..d6731ed5 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6899,6 +6899,15 @@ f.close()
assert 'foo.o: ' in output, '-%s failed to produce the right output: %s' % (opt, output)
assert 'error' not in err, 'Unexpected stderr: ' + err
+ def test_scons(self): # also incidentally tests c++11 integration in llvm 3.1
+ try_delete(os.path.join(self.get_dir(), 'test'))
+ shutil.copytree(path_from_root('tests', 'scons'), os.path.join(self.get_dir(), 'test'))
+ shutil.copytree(path_from_root('tools', 'scons', 'site_scons'), os.path.join(self.get_dir(), 'test', 'site_scons'))
+ os.chdir(os.path.join(self.get_dir(), 'test'))
+ Popen(['scons']).communicate()
+ output = run_js('scons_integration.js')
+ assert 'If you see this - the world is all right!' in output
+
def test_llvm_nativizer(self):
# avoid impure_ptr problems etc.
shutil.copyfile(path_from_root('tests', 'files.cpp'), os.path.join(self.get_dir(), 'files.cpp'))