Преглед на файлове

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