Différences entre les versions de « Auto-éditer un wikilivre/Annexer (Version internationalisée)/src/annex.sh »

Ajout de la section "Global test"
m (Mise à jour)
(Ajout de la section "Global test")
 
{{remarqueampoule|{{rouge|incomplet en raison de l'absence des commandes compose.}}<br />testabble jusqu'à la commande sclt.sh inclue.}}
== Annex.sh ==
# <syntaxhighlight lang="bash">
#!/bin/bash
exit 0
# End annex command
</syntaxhighlight>
 
== Global test ==
<syntaxhighlight lang="bash">
#! /bin/bash
#P file : tests_annex.sh
#P Syntax ./tests_annex.sh
 
clear
VERSION=210616
echo "test_annex.bash VERSION = $VERSION"
 
Workdir=~/Add_appendix
 
./annex.sh --v
echo;echo " wait for 2 sec"
sleep 2
 
#T test with $1 empty
./annex.sh
echo;echo " wait for 2 sec"
sleep 2
 
clear
./annex.sh ?
echo;echo " wait for 5 sec"
sleep 3
 
clear
#./annex.sh LivreTest
#echo;echo " wait for 3 sec"
#sleep 3
 
#O annex local books for tests
Inkey=1
cat $Workdir/tests/sitelist.txt; echo
for i in 'seq 1 9'
do
#cat $Workdir/tests/sitelist.txt; echo
echo -e "\033[47m\033[1;30m Choose the site number to test \033[0m"
read -s -n1 -p "inkey number 1 to 9 : " Inkey; echo;
if [ "$Inkey" = "1" ]; then ./annex.sh LivreTest
elif [ "$Inkey" = "2" ]; then ./annex.sh Hélices_de_navires_à_déplacement
elif [ "$Inkey" = "3" ]; then ./annex.sh TestBook
elif [ "$Inkey" = "4" ]; then ./annex.sh Mkd_\(Extracteur_de_documents\)
elif [ "$Inkey" = "5" ]; then ./annex.sh Faire_fleurir_le_sel
elif [ "$Inkey" = "6" ]; then ./annex.sh Faire_sa_fleur_de_sel
elif [ "$Inkey" = "7" ]; then ./annex.sh Guide_to_Unix
elif [ "$Inkey" = "8" ]; then ./annex.sh Tests_de_la_capacité_des_batteries_d%27accumulateurs
elif [ "$Inkey" = "9" ]; then ./annex.sh LivreTest
else echo "$inkey local url of site not found"; exit 0
fi
done
#O End tests_add_sclt.bash
</syntaxhighlight>