aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-31 11:37:20 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-31 11:37:20 -0700
commit231b6192864214883bdd3e07ef18a9298110575b (patch)
tree6bdc68ebd60078f8b9b7a35b353bb153cc06686e /tests/runner.py
parentf0427fc4340e8c214fbfe68b8268963102959512 (diff)
do not consider division safe for |0 removal, and add testcase 2 from issue 324
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 5d9473f7..7028dd33 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4724,6 +4724,10 @@ def process(filename):
)
open(filename, 'w').write(src)
'''
+
+ # Not needed for js, but useful for debugging
+ shutil.copyfile(path_from_root('tests', 'freetype', 'LiberationSansBold.ttf'), os.path.join(self.get_dir(), 'font.ttf'))
+
# Main
self.do_run(open(path_from_root('tests', 'freetype', 'main.c'), 'r').read(),
open(path_from_root('tests', 'freetype', 'ref.txt'), 'r').read(),
@@ -4733,7 +4737,7 @@ def process(filename):
post_build=post)
#build_ll_hook=self.do_autodebug)
- # Second testcase, github issue 324
+ # github issue 324
print '[issue 324]'
self.do_run(open(path_from_root('tests', 'freetype', 'main_2.c'), 'r').read(),
open(path_from_root('tests', 'freetype', 'ref_2.txt'), 'r').read(),
@@ -4742,6 +4746,14 @@ def process(filename):
includes=[path_from_root('tests', 'freetype', 'include')],
post_build=post)
+ print '[issue 324 case 2]'
+ self.do_run(open(path_from_root('tests', 'freetype', 'main_3.c'), 'r').read(),
+ open(path_from_root('tests', 'freetype', 'ref_3.txt'), 'r').read(),
+ ['font.ttf', 'W', '32', '32', '0'],
+ libraries=self.get_freetype(),
+ includes=[path_from_root('tests', 'freetype', 'include')],
+ post_build=post)
+
def test_sqlite(self):
# gcc -O3 -I/home/alon/Dev/emscripten/tests/sqlite -ldl src.c
if self.emcc_args is None: return self.skip('Very slow without ta2, and we would also need to include dlmalloc manually without emcc')