Allow IPv6 address entry in tools>ping - Loosens valid character check
[tomato/davidwu.git] / release / src / router / lzo / util / checkasm.sh
blob63ed2b873235e48be92a970b5b02f3ffa9f44e35
1 #! /bin/sh
2 set -e
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
14 LZOTEST="lzotest"
15 test -x ./lzotest/lzotest && LZOTEST="./lzotest/lzotest"
16 test -x ./lzotest.exe && LZOTEST="./lzotest.exe"
17 test -x ./lzotest.out && LZOTEST="./lzotest.out"
18 LFLAGS="-q"
20 dir="${*-.}"
22 TMPFILE="/tmp/lzo_$$.tmp"
23 rm -f $TMPFILE
24 (find $dir/ -type f -print > $TMPFILE) || true
26 for i in 11; do
27 cat $TMPFILE | $LZOTEST -m${i} -@ $LFLAGS -A
28 cat $TMPFILE | $LZOTEST -m${i} -@ $LFLAGS -A -S
29 done
31 for i in 61; do
32 cat $TMPFILE | $LZOTEST -m${i} -@ $LFLAGS -F
33 cat $TMPFILE | $LZOTEST -m${i} -@ $LFLAGS -F -S
34 done
36 for i in 71 81; do
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
41 done
43 rm -f $TMPFILE
44 echo "Done."
45 exit 0