Ver Fonte

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

Adrian SIMIONOV há 10 anos atrás
pai
commit
b2ce72970c
1 ficheiros alterados com 4 adições e 0 exclusões
  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