aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-06-18 14:39:30 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-06-18 14:39:30 -0700
commitb72e2aaedfc3df159312fda3b2ecd355584e7281 (patch)
tree4b2257c21148d55ea7abf83f5740753a54f5a1c8 /tests/runner.py
parentbb0ef4922b40822df62a72fb344a1f7e87bba350 (diff)
test for decrunching more than one image
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py6
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):