Skip to content

Commit

Permalink
updated testscript with a restart possibilty
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Nov 24, 2023
1 parent 89c1224 commit 0e20489
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions redo-everything-from-scratch
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ NORMAL="\033[0m"
OK="\033[1;32m OK \033[0m"
FAIL="\033[1;31m FAILED \033[0m"

branch=$1
restart=$1
compiler=$2
branch=$3

if [ "$compiler" == "" ];
then
Expand All @@ -32,14 +33,35 @@ else
fi

# directories to handle
dirs='scripts ticcutils timbl timblserver timbltests mbt mbtserver mbttests dimbl libfolia FoLiApy foliatest uctodata ucto frogdata frog frogtests foliautils ticcltools toad wopr'
dirs="scripts ticcutils timbl timblserver timbltests mbt mbtserver mbttests dimbl libfolia FoLiApy foliatest uctodata ucto frogdata frog frogtests foliautils ticcltools toad wopr"

# optional directories
optdirs='colibri-core colibri-utils'

# executables to test (using -V only)
exes='timbl timblserver mbt mbtserver dimbl ucto frog folialint FoLiA-stats FoLiA-alto FoLiA-hocr TICCL-lexclean TICCL-indexerNT wopr'

partdirs=()
if [ $restart != "" ]
then
for app in $dirs
do
# echo "app=$app restart=$restart"
if [ $app = $restart ]
then
partdirs+="$app "
restart="seenitall"
else
if [ $restart = "seenitall" ]
then
partdirs+="$app "
fi
fi
done
fi

dirs=$partdirs

#sanity check for REQUIRED directories
for app in $dirs
do
Expand Down

0 comments on commit 0e20489

Please sign in to comment.