5 # usage: util/checkasm.sh [directory]
7 # This script runs lzotest with all assembler decompressors
8 # on a complete directory tree.
9 # It is not suitable for accurate timings.
11 # Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer
15 test -x .
/lzotest
/lzotest
&& LZOTEST
="./lzotest/lzotest"
16 test -x .
/lzotest.exe
&& LZOTEST
="./lzotest.exe"
17 test -x .
/lzotest.out
&& LZOTEST
="./lzotest.out"
22 TMPFILE
="/tmp/lzo_$$.tmp"
24 (find $dir/ -type f
-print > $TMPFILE) || true
27 cat $TMPFILE |
$LZOTEST -m${i} -@
$LFLAGS -A
28 cat $TMPFILE |
$LZOTEST -m${i} -@
$LFLAGS -A -S
32 cat $TMPFILE |
$LZOTEST -m${i} -@
$LFLAGS -F
33 cat $TMPFILE |
$LZOTEST -m${i} -@
$LFLAGS -F -S
37 cat $TMPFILE |
$LZOTEST -m${i} -@
$LFLAGS -A
38 cat $TMPFILE |
$LZOTEST -m${i} -@
$LFLAGS -A -S
39 cat $TMPFILE |
$LZOTEST -m${i} -@
$LFLAGS -F
40 cat $TMPFILE |
$LZOTEST -m${i} -@
$LFLAGS -F -S