summaryrefslogtreecommitdiff
path: root/tests/test_other.py
diff options
context:
space:
mode:
authorFraser Adams <fraser.adams@blueyonder.co.uk>2013-12-31 13:27:05 +0000
committerFraser Adams <fraser.adams@blueyonder.co.uk>2013-12-31 13:27:05 +0000
commit32e1d73d605a7c4c3dc162b7c0d626b3dcce27ce (patch)
treedcc99dcd7029639465edd5644bc48882b15dd85f /tests/test_other.py
parent4bf76193c6f3f5d4c0a83ef2e715210b3d375175 (diff)
implementation of libuuid
Diffstat (limited to 'tests/test_other.py')
-rw-r--r--tests/test_other.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index 43bd3025..f229fef1 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -2196,3 +2196,15 @@ mergeInto(LibraryManager.library, {
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'))
+
+ def test_uuid(self):
+ # Run with ./runner.py other.test_uuid
+ Popen([PYTHON, EMCC, path_from_root('tests', 'uuid', 'test.c'), '-o', path_from_root('tests', 'uuid', 'test.js')], stdout=PIPE, stderr=PIPE).communicate()
+
+ out = run_js(path_from_root('tests', 'uuid', 'test.js'), full_output=True)
+ print out
+
+ # Tidy up files that might have been created by this test.
+ try_delete(path_from_root('tests', 'uuid', 'test.js'))
+ try_delete(path_from_root('tests', 'uuid', 'test.js.map'))
+