Explorar o código

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

Adrian SIMIONOV %!s(int64=10) %!d(string=hai) anos
pai
achega
b2ce72970c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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