Projet mkd/basic.c
De Wiki EELL.
(Différences entre les versions)
JPL (discuter | contributions) m (→Analyse des tests konsole : Ajouté le titre) |
JPL (discuter | contributions) m (→Fichier de commande des tests : Mise à jour) |
||
(2 versions intermédiaires masquées) | |||
Ligne 335 : | Ligne 335 : | ||
== Fichier de commande des tests == | == Fichier de commande des tests == | ||
- | {{Boîte déroulante/début| | + | {{Boîte déroulante/début|titre=MAKE_Tests_U}} |
- | + | ||
- | <pre Style="color: | + | <pre Style="color:black"> |
- | + | #!/bin/bash | |
- | + | #O File: MAKE_Tests_U | |
- | + | #O ../../mkd tests under Linux. | |
+ | #O Epreuve de vérification de la fonction basic_() avec ../../mkd | ||
+ | |||
+ | #O Copy Tests_exemple.bas in target created file | ||
+ | cat Tests_exemple.bas > Tests_exemple.tstbas | ||
+ | |||
+ | #O Test options -nstv with source "Tests_exemple.bas" and target "*.tstbas" | ||
+ | #O - and screen redirection to tstbas.screen | ||
+ | |||
+ | #O 1: Test de l'option -s append target | ||
+ | echo "------------------------------------------------------------------" >> Tests_exemple.tstbas | ||
+ | echo "1: Test de l'option -s append target" >> Tests_exemple.tstbas | ||
+ | ../../mkd -savB T Tests_exemple.bas *.tstbas > tstbas.screen | ||
+ | |||
+ | #O 1: Test option -t | ||
+ | echo "------------------------------------------------------------------" >> Tests_exemple.tstbas | ||
+ | echo "1: Test option -t" >> Tests_exemple.tstbas | ||
+ | ../../mkd -tavB T Tests_exemple.bas *.tstbas # >> tstbas.screen | ||
+ | |||
+ | #O 1: Test option -n, with append files target and screen | ||
+ | echo "------------------------------------------------------------------" >> Tests_exemple.tstbas | ||
+ | echo "1: Test option -n, with append files target and screen" >> Tests_exemple.tstbas | ||
+ | ../../mkd -navB T Tests_exemple.bas *.tstbas # >> tstbas.screen | ||
+ | |||
+ | #O 2: Test options -ns, with append files target and screen | ||
+ | echo "------------------------------------------------------------------" >> Tests_exemple.tstbas | ||
+ | echo "------------------------------------------------------------------" >> Tests_exemple.tstbas | ||
+ | echo "------------------------------------------------------------------" >> Tests_exemple.tstbas | ||
+ | echo "2: Test options -ns, with append files target and screen" >> Tests_exemple.tstbas | ||
+ | ../../mkd -nsavB T Tests_exemple.bas *.tstbas >> tstbas.screen | ||
+ | |||
+ | #O 2: Test options -nt, with append files target and screen | ||
+ | echo "------------------------------------------------------------------" >> Tests_exemple.tstbas | ||
+ | echo "2: Test options -nt, with append files target and screen" >> Tests_exemple.tstbas | ||
+ | ../../mkd -ntavB T Tests_exemple.bas *.tstbas >> tstbas.screen | ||
+ | |||
+ | #O 2: Test options -nst, with append files target and screen | ||
+ | echo "------------------------------------------------------------------" >> Tests_exemple.tstbas | ||
+ | echo "2: Test options -nst, with append files target and screen" >> Tests_exemple.tstbas | ||
+ | ../../mkd -nstavB T Tests_exemple.bas *.tstbas >> tstbas.screen | ||
+ | |||
+ | #O 5: Independant test with -nstv "Tests_exemple.bas" and target "*.tstbaslastline1" | ||
+ | ../../mkd -nstvwB '**' Tests_exemple.bas *.tstbaslastline1 > tstbaslastline.screen1 | ||
+ | |||
+ | #O 5: Independant test with -nstv "Tests_exemple.bas" and target "*.tstbaslastline1" | ||
+ | ../../mkd -nsvaB '**' Tests_exemple.bas *.tstbaslastline1 >> tstbaslastline.screen1 | ||
+ | |||
+ | |||
+ | |||
+ | #O Break with gedit "Tests_exemple.tstbas", "tstbas.screen" | ||
+ | gedit Tests_exemple.tstbas tstbas.screen Tests_exemple.tstbaslastline1 tstbaslastline.screen1 | ||
+ | |||
+ | #w bug gedit Tests_exemple.bas.tstbaslastline2 #bug in version < 2012 | ||
+ | |||
+ | #O Erase Tests_exemple.tstbas | ||
</pre> | </pre> | ||
{{Boîte déroulante/fin}} | {{Boîte déroulante/fin}} | ||
Ligne 406 : | Ligne 460 : | ||
== Fichier source des tests == | == Fichier source des tests == | ||
- | {{Boîte déroulante/début| | + | {{Boîte déroulante/début|titre="exemple2.bas, Make_TU_cpp.bat"}} |
- | *Fichier: exemple2.bas | + | * Fichier: exemple2.bas |
<pre Style="color:red"> | <pre Style="color:red"> | ||
' ISO-8859-1 | ' ISO-8859-1 | ||
Ligne 446 : | Ligne 500 : | ||
'S Lastline without NL | 'S Lastline without NL | ||
</pre> | </pre> | ||
- | *Fichier Make_TU_cpp.bat (Command for terminal MS-Windows) | + | |
+ | * Fichier Make_TU_cpp.bat (Command for terminal MS-Windows) | ||
<pre Style="color:blue"> | <pre Style="color:blue"> | ||
REMO Command file Make_TU_cpp_.bat | REMO Command file Make_TU_cpp_.bat | ||
Ligne 536 : | Ligne 591 : | ||
Pause CTRL-C to quit, or NL to erase the files | Pause CTRL-C to quit, or NL to erase the files | ||
Clean_tests | Clean_tests | ||
- | <pre> | + | </pre> |
{{Boîte déroulante/fin}} | {{Boîte déroulante/fin}} | ||
[[Catégorie:Générateurs de documentation]] | [[Catégorie:Générateurs de documentation]] |
Version actuelle en date du 5 mai 2013 à 16:56
Retour aux fichiers en développement →
REMARQUES : Il est important de laisser un espace entre le caractère de début de commentaire ' ou REM et le commentaire proprement dit, afin d'éviter les caractères ignorés. Il est à noter également que l'apostrophe peut être pris pour un caractère de début de commentaire lorsque les commentaires ne sont pas 'Codés' (Option t et Codes '**')
Sommaire[masquer] |