aboutsummaryrefslogtreecommitdiff
path: root/tests/test_other.py
diff options
context:
space:
mode:
authorjuj <jujjyl@gmail.com>2013-12-30 02:11:35 -0800
committerjuj <jujjyl@gmail.com>2013-12-30 02:11:35 -0800
commitd492872d610448b78accc12e138b7997a39bafb5 (patch)
tree7352537db6702ab1f616181b4063ab8d6fdc687a /tests/test_other.py
parente2edef3cb2ee8e696b82775e75671f5c9141868c (diff)
parent480fa4d6ea2a996ff57569dab12f4d46c221f01f (diff)
Merge pull request #1946 from juj/default_obj_ext
--default-obj-ext
Diffstat (limited to 'tests/test_other.py')
-rw-r--r--tests/test_other.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index df9e2da5..43bd3025 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -2187,3 +2187,12 @@ mergeInto(LibraryManager.library, {
out, err = process.communicate()
assert process.returncode is 0, 'float.h should agree with our system: ' + out + '\n\n\n' + err
+ def test_default_obj_ext(self):
+ outdir = os.path.join(self.get_dir(), 'out_dir') + '/'
+ os.mkdir(outdir)
+ process = Popen([PYTHON, EMCC, '-c', path_from_root('tests', 'hello_world.c'), '-o', outdir], stdout=PIPE, stderr=PIPE)
+ process.communicate()
+ assert(os.path.isfile(outdir + 'hello_world.o'))
+ process = Popen([PYTHON, EMCC, '-c', path_from_root('tests', 'hello_world.c'), '-o', outdir, '--default-obj-ext', 'obj'], stdout=PIPE, stderr=PIPE)
+ process.communicate()
+ assert(os.path.isfile(outdir + 'hello_world.obj'))