diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-06-18 14:39:30 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-06-18 14:39:30 -0700 |
commit | b72e2aaedfc3df159312fda3b2ecd355584e7281 (patch) | |
tree | 4b2257c21148d55ea7abf83f5740753a54f5a1c8 /tests/runner.py | |
parent | bb0ef4922b40822df62a72fb344a1f7e87bba350 (diff) |
test for decrunching more than one image
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 5372034e..861277e6 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7809,9 +7809,11 @@ elif 'browser' in str(sys.argv): def test_s3tc_crunch(self): shutil.copyfile(path_from_root('tests', 'ship.dds'), 'ship.dds') - Popen(['python', FILE_PACKAGER, 'test.data', '--pre-run', '--crunch', '--preload', 'ship.dds'], stdout=open('pre.js', 'w')).communicate() - assert os.stat('test.data').st_size < 0.5*os.stat('ship.dds').st_size, 'Compressed should be smaller than dds' + shutil.copyfile(path_from_root('tests', 'bloom.dds'), 'bloom.dds') + Popen(['python', FILE_PACKAGER, 'test.data', '--pre-run', '--crunch', '--preload', 'ship.dds', 'bloom.dds'], stdout=open('pre.js', 'w')).communicate() + assert os.stat('test.data').st_size < 0.5*(os.stat('ship.dds').st_size+os.stat('bloom.dds').st_size), 'Compressed should be smaller than dds' shutil.move('ship.dds', 'ship.donotfindme.dds') # make sure we load from the compressed + shutil.move('bloom.dds', 'bloom.donotfindme.dds') # make sure we load from the compressed self.btest('s3tc_crunch.c', reference='s3tc_crunch.png', args=['--pre-js', 'pre.js']) def test_pre_run_deps(self): |