Projet mkd/pascal.c

De Wiki EELL.

(Différences entre les versions)
m (Ajouté l'entête)
m (Fichier de commande des tests : Mise à jour)
Ligne 359 : Ligne 359 :
== Fichier de commande des tests ==
== Fichier de commande des tests ==
-
{{Boîte déroulante/début|titre=MAKE_Tests_U}}
+
{{Boîte déroulante/début|titre=MAKE_Tests_U, CLEAN_Tests_U}}
 +
* Fichier MAKE_Tests_U
<pre style color="black">
<pre style color="black">
 +
#!/bin/bash
 +
#O ../../mkd tests under Linux.
 +
#O Epreuve de vérification de la fonction pas_() avec ../../mkd
 +
 +
#O    Copy trinoms.pas in target created file
 +
      cat trinoms.pas > trinoms.tstpas
 +
 +
#O    Test options -nstv with source "trinoms.pas" and target "*.tstpas"
 +
#O    - and screen redirection to tstpas.screen
 +
 +
#O 1: Test de l'option -s append target
 +
      echo "------------------------------------------------------------------" >> trinoms.tstpas
 +
      echo "1: Test de l'option -s append target" >> trinoms.tstpas
 +
      ../../mkd -savP DHOPS trinoms.pas *.tstpas > tstpas.screen
 +
 +
#O 1: Test option -t
 +
      echo "------------------------------------------------------------------" >> trinoms.tstpas
 +
      echo "1: Test option -t" >> trinoms.tstpas
 +
      ../../mkd -tavP DHOPS trinoms.pas *.tstpas # >> tstpas.screen
 +
 +
#O 1: Test option -n, with append files target and screen
 +
      echo "------------------------------------------------------------------" >> trinoms.tstpas
 +
      echo "1: Test option -n, with append files target and screen" >> trinoms.tstpas
 +
      ../../mkd -navP DHOPS trinoms.pas *.tstpas # >> tstpas.screen
 +
 +
#O 2: Test options -ns, with append files target and screen
 +
      echo "------------------------------------------------------------------" >> trinoms.tstpas
 +
      echo "------------------------------------------------------------------" >> trinoms.tstpas
 +
      echo "------------------------------------------------------------------" >> trinoms.tstpas
 +
      echo "2: Test options -ns, with append files target and screen" >> trinoms.tstpas
 +
      ../../mkd -nsavP DHOPS trinoms.pas *.tstpas >> tstpas.screen
 +
 +
#O 2: Test options -nt, with append files target and screen
 +
      echo "------------------------------------------------------------------" >> trinoms.tstpas
 +
      echo "2: Test options -nt, with append files target and screen" >> trinoms.tstpas
 +
      ../../mkd -ntavP DHOPS trinoms.pas *.tstpas >> tstpas.screen
 +
 +
#O 2: Test options -nst, with append files target and screen
 +
      echo "------------------------------------------------------------------" >> trinoms.tstpas
 +
      echo "2: Test options -nst, with append files target and screen" >> trinoms.tstpas
 +
      ../../mkd -nstavP DHOPS trinoms.pas *.tstpas >> tstpas.screen
 +
 +
#O 5: Independant test with -nstv "trinoms.pas" and target "*.tstpaslastline1"
 +
      ../../mkd -nstvwP S trinoms.pas *.tstpaslastline1 > tstpaslastline.screen1
 +
 +
#O 5: Independant test with -nstv "trinomsc2" and target file "*.tstpaslastline2"
 +
      ../../mkd -nstvwP DHOPS trinoms2.pas trinoms.tstpaslastblock > tstpaslastblock.screen2 #w bug ?
 +
 +
#O 5: Independant test with -nstv "trinomsc3" and target file "*.tstpaslastline2"
 +
      ../../mkd -nstvaP DHOPS trinoms3.pas trinoms.tstpaslastblock >> tstpaslastblock.screen2 #w bug ?
 +
 +
#O 5: Independant test with -nstv "trinomsc4" and target file "*.tstpaslastline2"
 +
      ../../mkd -nstvaP DHOPS trinoms4.pas trinoms.tstpaslastblock >> tstpaslastblock.screen2 #w bug ?
 +
 +
 +
#O    Break with gedit "trinoms.tstpas", "tstpas.screen"
 +
      gedit trinoms.tstpas tstpas.screen trinoms.tstpaslastline1 tstpaslastline.screen1 trinoms.tstpaslastblock tstpaslastblock.screen2
 +
 +
#w bug      gedit trinoms.pas.tstpaslastline2 #bug in version < 2012
 +
 +
#O    Erase trinoms.tstpas
</pre>
</pre>
-
{{Boîte déroulante/fin}}
 
 +
* Fichier CLEAN_Tests_U
 +
<pre>
 +
#!/bin/bash
 +
#O File Tests_Clean
 +
#O Force delete files created with mkd "tests" under Linux.
 +
      rm -f trinoms.tstpas
 +
      rm -f tstpas.screen
 +
      rm -f trinoms.tstpaslastline1
 +
      rm -f tstpaslastline.screen1
 +
      rm -f trinoms.tstpaslastblock
 +
      rm -f tstpaslastblock.screen2
 +
      rm -f *.doc
 +
</pre>
 +
{{Boîte déroulante/fin}}
== Analyse des tests konsole ==
== Analyse des tests konsole ==

Version du 8 mai 2013 à 07:04

Retour aux fichiers en développement →

Prise en compte des parenthèse curly { } et des parenthèses étoilées (* *).
Les commentaires peuvent être imbriqués mais pas accolés pour la même commande d'extraction.

Take into account the curly { } and starry (* *) brackets.
Comments can be nested but non-contiguous for the same extraction command.

Sommaire

Fichiers de la fonction pascal_()

Fichier de commande des tests

Analyse des tests konsole

Fichiers sources des tests

Outils personnels