[Piglit] [PATCH] Accelerate running a bit more (for both piglit-print-commands.py and piglit-run.py:

Shuang He shuang.he at intel.com
Fri May 11 02:04:09 PDT 2012


Before:
time ./piglit-print-commands.py -t 'asmparsertest/ARBfp1.0/size_specifier-31.txt' -x 'asmparsertest/ARBfp1.0/size_specifier-31.txt'.+ -x valgrind/ tests/all.tests
asmparsertest/ARBfp1.0/size_specifier-31.txt ::: /GFX/Test/Piglit/piglit/framework/../bin/asmparsertest -auto ARBfp1.0 tests/asmparsertest/shaders/ARBfp1.0/size_specifier-31.txt

real    0m1.171s
user    0m1.132s
sys     0m0.039s

After:
time ./piglit-print-commands.py -t 'asmparsertest/ARBfp1.0/size_specifier-31.txt' -x 'asmparsertest/ARBfp1.0/size_specifier-31.txt'.+ -x valgrind/ tests/all.tests
asmparsertest/ARBfp1.0/size_specifier-31.txt ::: /GFX/Test/Piglit/piglit/framework/../bin/asmparsertest -auto ARBfp1.0 tests/asmparsertest/shaders/ARBfp1.0/size_specifier-31.txt

real    0m0.331s
user    0m0.299s
sys     0m0.031s
---
 tests/all.tests |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/all.tests b/tests/all.tests
index 9ebc870..7f2ecdd 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -34,7 +34,7 @@ def add_plain_test(group, name):
 	group[name] = PlainExecTest([name, '-auto'])
 
 def concurrent_test(args):
-	test = PlainExecTest(args + " -auto -fbo")
+	test = PlainExecTest(args.split() + ['-auto', '-fbo'])
 	test.runConcurrent = True
 	return test
 
-- 
1.7.7.6



More information about the Piglit mailing list