浏览代码

Added progress status, on slow machines like ARM and PPC this is handy.

Adrian SIMIONOV 10 年之前
父节点
当前提交
b2ce72970c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tests/RunTests.sh

+ 4 - 0
tests/RunTests.sh

@@ -31,8 +31,12 @@ FILES=*.txt
 DOCSIS=../src/docsis
 KEYFILE=key
 
+ALL_TESTS=`ls -l *.txt | wc -l`;
+
 for f in $FILES
 do
+  let i++;
+  echo "Progress: $i / $ALL_TESTS";
   TEST=$(echo $f | cut -f1 -d.)
   $DOCSIS -e $TEST.txt $KEYFILE $TEST.cm.new
   if [ ! -f $TEST.cm.new ]; then