check.sh
来自「lzo-1.08-src.zip 高效的压缩解压代码」· Shell 代码 · 共 39 行
SH
39 行
#! /bin/shset -e## usage: util/check.sh [directory]## This script runs ltest with all algorithms on a complete directory tree.# It is not suitable for accurate timings.## Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer#LTEST="ltest"test -x ./ltest/ltest && LTEST="./ltest/ltest"test -x ./ltest.exe && LTEST="./ltest.exe"LFLAGS="-q -n2"dir="${*-.}"TMPFILE="/tmp/lzo_$$.tmp"rm -f $TMPFILE(find $dir/ -type f -print > $TMPFILE) || true## methods=`$LTEST -m | sed -n 's/^ *-m\([0-9]*\).*/\1/p'`## methods="9721 9722 9723 9724 9725 9726 9727 9728 9729"methods="21 31 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 18 19 61 71 81"methods="$methods 111 112 115"methods="$methods 921 931 901 911"methods="$methods 902 912 942 962 972 982 992"for i in $methods; do cat $TMPFILE | $LTEST -m${i} -@ $LFLAGSdonerm -f $TMPFILEecho "Done."exit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?