« Auto-éditer un wikilivre/Annexer (Version internationalisée)/src/header.inc.sh » : différence entre les versions
Contenu supprimé Contenu ajouté
m →src/header.inc.sh : Correction de coquilles |
m →tests/header.inc/tests_header.inc.bash : Mise en page |
||
Ligne 241 :
#P Syntax ./tests_header.inc.bash
VERSION=
#O Clean screen
clear
▲#P Include install variables
pwd > pwd.txt
if cat pwd.txt | grep ~/Annexer; then Workdir=~/Annexer; elif cat pwd.txt | grep ~/Add_appendix; \
then Workdir=~/Add_appendix; else echo "Workind directory not found"; exit -1;fi
rm pwd.txt
#O Download global variables
source $Workdir/vars/installdir.var
sleep 2
#T echo "----"
#O Print command header.inc.sh version
▲#P Print command header.inc.sh version
#T echo "Command header.inc.sh --v to veriy header.inc version"
./header.inc.sh --v
echo;echo " wait for 2 sec"
sleep 2; echo "----"
#O Control if the test header.inc.sh file is clean
echo -e "\033[1;33m Control header.inc.sh in the local test directory \033[0m" > text-control.txt
Ligne 276 ⟶ 271 :
#T echo "Inkey = $Inkey"
if [ "$Inkey" != 'y' ]; then echo " Inkey is not yes, or time out after 60 sec, exit from $0"; exit 0;fi
echo " in test mode with first param empty"▼
echo "Command ./header.inc.sh - --t to verify environnement variables"▼
./header.inc.sh - --t▼
▲echo " in test mode with first param empty"
echo;echo " wait for 2 sec"▼
▲./header.inc.sh - --t
sleep 5; echo "----"▼
▲echo;echo " wait for 2 sec"
▲sleep 5; echo "----"
./header.inc.sh
▲#T test with first param empty
echo;echo " wait for 2 sec"▼
sleep 2; echo "----"
▲./header.inc.sh
▲echo;echo " wait for 2 sec"
▲#T Test, all with option --t
▲#P List fullurl books for tests
Inkey=1
for i in 'seq 1 9'
Ligne 309 ⟶ 300 :
elif [ "$Inkey" = "8" ]; then ./header.inc.sh Tests_de_la_capacité_des_batteries_d%27accumulateurs
elif [ "$Inkey" = "9" ]; then ./header.inc.sh LivreTest --t
else echo "$inkey
fi
done
|