Skip to content

Instantly share code, notes, and snippets.

@ziz
Created January 3, 2012 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziz/eaad86c149e5c81ca26e to your computer and use it in GitHub Desktop.
Save ziz/eaad86c149e5c81ca26e to your computer and use it in GitHub Desktop.
(Emscripten: Running sanity checks)
test_cubescript (__main__.default) ... ok
test_files (__main__.default) ... ok
test_freetype (__main__.default) ... <building and saving into cache> /Users/devesine/Source/personal/jsmess/llvm-3.0-release/Release/bin/llvm-link: /tmp/foo/emscripten_test_default_SRTz2l/building/freetype/objs/.libs/libfreetype.a.bc: Could not open input file: No such file or directory
/Users/devesine/Source/personal/jsmess/llvm-3.0-release/Release/bin/llvm-link: error loading file '/tmp/foo/emscripten_test_default_SRTz2l/building/freetype/objs/.libs/libfreetype.a.bc'
FAIL
test_libcxx (__main__.default) ... ok
test_lua (__main__.default) ... ERROR
test_openjpeg (__main__.default) ... <building and saving into cache> /Users/devesine/Source/personal/jsmess/llvm-3.0-release/Release/bin/llvm-link: /tmp/foo/emscripten_test_default_BHWnlh/building/openjpeg/bin/libopenjpeg.so.1.4.0: Could not open input file: No such file or directory
/Users/devesine/Source/personal/jsmess/llvm-3.0-release/Release/bin/llvm-link: error loading file '/tmp/foo/emscripten_test_default_BHWnlh/building/openjpeg/bin/libopenjpeg.so.1.4.0'
FAIL
test_poppler (__main__.default) ... <building and saving into cache> /Users/devesine/Source/personal/jsmess/llvm-3.0-release/Release/bin/llvm-link: /tmp/foo/emscripten_test_default_EdTFA4/building/freetype/objs/.libs/libfreetype.a.bc: Could not open input file: No such file or directory
/Users/devesine/Source/personal/jsmess/llvm-3.0-release/Release/bin/llvm-link: error loading file '/tmp/foo/emscripten_test_default_EdTFA4/building/freetype/objs/.libs/libfreetype.a.bc'
FAIL
test_pystruct (__main__.default) ... ok
test_python (__main__.default) ... WARNING: Linking two modules of different data layouts!
WARNING: Linking two modules of different target triples: /var/folders/3l/kh8mjcln3s90hm6q5pswr6mc0000gn/T/tmpBeDZRX/dlmalloc.o: 'i386-pc-linux-gnu' and 'i386-unknown-linux-gnu'
ERROR
test_the_bullet (__main__.default) ... <building and saving into cache> /Users/devesine/Source/personal/jsmess/llvm-3.0-release/Release/bin/llvm-link: /tmp/foo/emscripten_test_default_2LWM1G/building/bullet/src/.libs/libBulletCollision.a.bc: Could not open input file: No such file or directory
/Users/devesine/Source/personal/jsmess/llvm-3.0-release/Release/bin/llvm-link: error loading file '/tmp/foo/emscripten_test_default_2LWM1G/building/bullet/src/.libs/libBulletCollision.a.bc'
FAIL
test_zlib (__main__.default) ... <building and saving into cache> ERROR
======================================================================
ERROR: test_lua (__main__.default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/runner.py", line 3847, in test_lua
extra_emscripten_args=['-H', 'libc/fcntl.h,libc/sys/unistd.h,poll.h,libc/math.h,libc/langinfo.h,libc/time.h'])
File "tests/runner.py", line 301, in do_ll_run
post_build=None) # post_build was already done in ll_to_js, this do_run call is just to test the output
File "tests/runner.py", line 282, in do_run
self.assertContained(expected_output, js_output)
File "tests/runner.py", line 210, in assertContained
additional_info
Exception: Expected to find 'hello lua world!
17
1
2
3
4
7' in '-e:1: SyntaxError: missing ( after for:
-e:1: print("hello lua world!");print(17);for x = 1,4 do print(x) end;print(10-3)
-e:1: ........................................^
', diff:
--- expected
+++ actual
@@ -1,7 +1,4 @@
-hello lua world!
-17
-1
-2
-3
-4
-7
+-e:1: SyntaxError: missing ( after for:
+-e:1: print("hello lua world!");print(17);for x = 1,4 do print(x) end;print(10-3)
+-e:1: ........................................^
+
======================================================================
ERROR: test_python (__main__.default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/runner.py", line 4125, in test_python
extra_emscripten_args=['-m'])
File "tests/runner.py", line 301, in do_ll_run
post_build=None) # post_build was already done in ll_to_js, this do_run call is just to test the output
File "tests/runner.py", line 282, in do_run
self.assertContained(expected_output, js_output)
File "tests/runner.py", line 210, in assertContained
additional_info
Exception: Expected to find 'hello python world!
[0, 2, 4, 6]
5
22
5.470000' in '
/private/tmp/foo/emscripten_test_default_4Yq6Kg/src.cpp.o.js:478874
analyzer.js:86: TypeError: Cannot read property 'lines' of undefined
^
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected token :
at Module._compile (module.js:427:25)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
', diff:
--- expected
+++ actual
@@ -1,5 +1,16 @@
-hello python world!
-[0, 2, 4, 6]
-5
-22
-5.470000
+
+/private/tmp/foo/emscripten_test_default_4Yq6Kg/src.cpp.o.js:478874
+analyzer.js:86: TypeError: Cannot read property 'lines' of undefined
+ ^
+
+node.js:201
+ throw e; // process.nextTick error, or 'error' event on first tick
+ ^
+SyntaxError: Unexpected token :
+ at Module._compile (module.js:427:25)
+ at Object..js (module.js:450:10)
+ at Module.load (module.js:351:31)
+ at Function._load (module.js:310:12)
+ at Array.0 (module.js:470:10)
+ at EventEmitter._tickCallback (node.js:192:40)
+
======================================================================
ERROR: test_zlib (__main__.default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/runner.py", line 3944, in test_zlib
force_c=True)
File "tests/runner.py", line 282, in do_run
self.assertContained(expected_output, js_output)
File "tests/runner.py", line 210, in assertContained
additional_info
Exception: Expected to find 'zlib version 1.2.5 = 4688, compile flags = 85
uncompress(): hello, hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!
' in 'zlib version 1.2.5 = 4688, compile flags = 33554517
Assertion failed: Ran out of stack:
Error
at abort (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:335:25)
at assert (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:342:5)
at Array.stackAlloc [as 1] (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:269:119)
at allocate (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:408:114)
at _fill_window (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:9095:26)
at Array._deflate_stored [as 6] (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:8641:7)
at _deflate (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:6672:37)
at _compress2 (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:2811:15)
at _compress (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:2865:10)
at _test_compress (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:667:14)
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Assertion: Assertion failed: Ran out of stack
', diff:
--- expected
+++ actual
@@ -1,7 +1,19 @@
-zlib version 1.2.5 = 4688, compile flags = 85
-uncompress(): hello, hello!
-inflate(): hello, hello!
-large_inflate(): OK
-after inflateSync(): hello, hello!
-inflate with dictionary: hello, hello!
+zlib version 1.2.5 = 4688, compile flags = 33554517
+Assertion failed: Ran out of stack:
+Error
+ at abort (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:335:25)
+ at assert (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:342:5)
+ at Array.stackAlloc [as 1] (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:269:119)
+ at allocate (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:408:114)
+ at _fill_window (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:9095:26)
+ at Array._deflate_stored [as 6] (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:8641:7)
+ at _deflate (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:6672:37)
+ at _compress2 (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:2811:15)
+ at _compress (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:2865:10)
+ at _test_compress (/private/tmp/foo/emscripten_test_default_Ta_ANJ/src.c.o.js:667:14)
+node.js:201
+ throw e; // process.nextTick error, or 'error' event on first tick
+ ^
+Assertion: Assertion failed: Ran out of stack
+
======================================================================
FAIL: test_freetype (__main__.default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/runner.py", line 3882, in test_freetype
libraries=[self.get_freetype()],
File "tests/runner.py", line 3857, in get_freetype
return self.get_library('freetype', os.path.join('objs', '.libs', 'libfreetype.a.bc'))
File "tests/runner.py", line 241, in get_library
copy_project=True)
File "<string>", line 410, in build_library
File "<string>", line 420, in link
AssertionError: Linking error:
======================================================================
FAIL: test_openjpeg (__main__.default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/runner.py", line 4061, in test_openjpeg
make_args=[]) # no -j 2, since parallel builds can fail
File "tests/runner.py", line 241, in get_library
copy_project=True)
File "<string>", line 410, in build_library
File "<string>", line 420, in link
AssertionError: Linking error:
======================================================================
FAIL: test_poppler (__main__.default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/runner.py", line 4006, in test_poppler
freetype = self.get_freetype()
File "tests/runner.py", line 3857, in get_freetype
return self.get_library('freetype', os.path.join('objs', '.libs', 'libfreetype.a.bc'))
File "tests/runner.py", line 241, in get_library
copy_project=True)
File "<string>", line 410, in build_library
File "<string>", line 420, in link
AssertionError: Linking error:
======================================================================
FAIL: test_the_bullet (__main__.default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/runner.py", line 3962, in test_the_bullet
configure_args=['--disable-demos','--disable-dependency-tracking'])],
File "tests/runner.py", line 241, in get_library
copy_project=True)
File "<string>", line 410, in build_library
File "<string>", line 420, in link
AssertionError: Linking error:
----------------------------------------------------------------------
Ran 11 tests in 139.476s
FAILED (failures=4, errors=3)
Running Emscripten tests...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment