aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-03 17:26:03 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-03 17:26:03 -0700
commitc9cf387c035f8e48de03846947b2fcb53f8e3106 (patch)
treea102b5052b8d87cd8d9bbbab493079aa10b49cc9 /tests/runner.py
parent3ec1a85e32050de3cd8121c6b04b7e2ae6be78b1 (diff)
define proper endianness for endian.h and add working but slow-compiling sha1 test
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 69f996ca..1f0cba23 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -950,6 +950,11 @@ m_divisor is 1091269979
'''
self.do_run(src, 'zero 2, 104', ['hallo'])
+ def test_sha1(self):
+ if self.emcc_args == None: return self.skip('needs ta2')
+
+ self.do_run(open(path_from_root('tests', 'sha1.c')).read(), 'SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6')
+
def test_cube2hash(self):
# A good test of i64 math
if Settings.USE_TYPED_ARRAYS != 2: return self.skip('requires ta2 C-style memory aliasing')