speed.test revision 268896
1268896Sbapt#!/bin/sh 2268896Sbapt 3268896SbaptPROG=${TEST_BINARY_DIR}/test_speed 4268896Sbapt 5268896Sbaptsh -c "xz -c < /dev/null > /dev/null" 6268896Sbaptecho 'Running speed tests' 7268896Sbaptfor _tin in ${TEST_DIR}/*.xz ; do 8268896Sbapt echo "Unpacking $_tin..." 9268896Sbapt xz -cd < $_tin > ${TEST_OUT_DIR}/test_file 10268896Sbapt # Preread file to cheat benchmark! 11268896Sbapt cat ${TEST_OUT_DIR}/test_file > /dev/null 12268896Sbapt echo "Starting benchmarking for $_tin..." 13268896Sbapt $PROG ${TEST_OUT_DIR}/test_file 14268896Sbapt if [ $? -ne 0 ] ; then 15268896Sbapt echo "Test: $_tin failed" 16268896Sbapt rm ${TEST_OUT_DIR}/test_file 17268896Sbapt exit 1 18268896Sbapt fi 19268896Sbapt rm ${TEST_OUT_DIR}/test_file 20268896Sbaptdone 21268896Sbapt 22