test: main loop from blitters-test added as a new function to utils.c
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Tue, 11 May 2010 19:46:47 +0000 (22:46 +0300)
committerSiarhei Siamashka <siarhei.siamashka@nokia.com>
Thu, 13 May 2010 18:02:27 +0000 (21:02 +0300)
commit30c3e91c3f97cf3d5932ba639d8ac126b83efb70
tree16e51a85366105ad638ce474a2d49ce79169c45f
parent164fe215f2c904cf74537caf9d76b7f9ce2667ec
test: main loop from blitters-test added as a new function to utils.c

This new generalized function can be reused in both blitters-test
and scaling-test. Final checksum calculation changed in order to make
it parallelizable (it is a sum of individual 32-bit values returned
by a callback function, which is now responsible for running test-specific
code). Return values may be crc32, some other hash or even just zero on
success and non-zero on error (in this case, the expected result of the
whole test run should be 0).
test/utils.c
test/utils.h