Projet mkd/cpp.c

De Wiki EELL.

(Différences entre les versions)
m (Mise à jour)
m (Fichier de commande des tests Konsole : Nouveau fichier)
Ligne 430 : Ligne 430 :
== Fichier de commande des tests Konsole ==
== Fichier de commande des tests Konsole ==
-
{{Boîte déroulante/début|titre = MAKE_Tets_U }}
+
{{Boîte déroulante/début|titre = MAKE_Tets_U, CLEAN_Tests_U }}
 +
* Fichier MAKE_Tests_U:
<pre>
<pre>
 +
#!/bin/bash
 +
#O ../../mkd tests under Linux.
 +
#O Epreuve de vérification de la fonction cpp_() avec ../../mkd
 +
#O    Copy Test_cpp_U.cc in target created file
 +
      cat Test_cpp_U.cc > Test_cpp_U.tstcpp
 +
 +
#O    Test options -nstv with source "Test_cpp_U.cc" and target "*.tstcpp"
 +
#O    - and screen redirection to tstcpp.screen
 +
 +
#O 1: Test de l'option -s append target
 +
      echo "------------------------------------------------------------------" >> Test_cpp_U.tstcpp
 +
      echo "1: Test de l'option -s append target" >> Test_cpp_U.tstcpp
 +
      ../../mkd -savC T Test_cpp_U.cc *.tstcpp > tstcpp.screen
 +
 +
#O 1: Test option -t
 +
      echo "------------------------------------------------------------------" >> Test_cpp_U.tstcpp
 +
      echo "1: Test option -t" >> Test_cpp_U.tstcpp
 +
      ../../mkd -tavC T Test_cpp_U.cc *.tstcpp # >> tstcpp.screen
 +
 +
#O 1: Test option -n, with append files target and screen
 +
      echo "------------------------------------------------------------------" >> Test_cpp_U.tstcpp
 +
      echo "1: Test option -n, with append files target and screen" >> Test_cpp_U.tstcpp
 +
      ../../mkd -navC T Test_cpp_U.cc *.tstcpp # >> tstcpp.screen
 +
 +
#O 2: Test options -ns, with append files target and screen
 +
      echo "------------------------------------------------------------------" >> Test_cpp_U.tstcpp
 +
      echo "------------------------------------------------------------------" >> Test_cpp_U.tstcpp
 +
      echo "------------------------------------------------------------------" >> Test_cpp_U.tstcpp
 +
      echo "2: Test options -ns, with append files target and screen" >> Test_cpp_U.tstcpp
 +
      ../../mkd -nsavC T Test_cpp_U.cc *.tstcpp >> tstcpp.screen
 +
 +
#O 2: Test options -nt, with append files target and screen
 +
      echo "------------------------------------------------------------------" >> Test_cpp_U.tstcpp
 +
      echo "2: Test options -nt, with append files target and screen" >> Test_cpp_U.tstcpp
 +
      ../../mkd -ntavC T Test_cpp_U.cc *.tstcpp >> tstcpp.screen
 +
 +
#O 2: Test options -nst, with append files target and screen
 +
      echo "------------------------------------------------------------------" >> Test_cpp_U.tstcpp
 +
      echo "2: Test options -nst, with append files target and screen" >> Test_cpp_U.tstcpp
 +
      ../../mkd -nstavC T Test_cpp_U.cc *.tstcpp >> tstcpp.screen
 +
 +
#O 5: Independant test with -nstv "Test_cpp_U.cc" and target "*.tstcpplastline1"
 +
      ../../mkd -nstvwC S Test_cpp_U.cc *.tstcpplastline1 > tstcpplastline.screen1
 +
 +
#O 5: Independant test with -nstv "Test_cpp_U.c2" and target file "*.tstcpplastline2"
 +
      ../../mkd -nstvwC T Test_cpp_U.c2 *.tstcpplastblock > tstcpplastblock.screen2 #w bug ?
 +
 +
#O 5: Independant test with -nstv "Test_cpp_U.c3" and target file "*.tstcpplastline2"
 +
      ../../mkd -nstvaC T Test_cpp_U.c3 *.tstcpplastblock >> tstcpplastblock.screen2 #w bug ?
 +
 +
#O 5: Independant test with -nstv "Test_cpp_U.c4" and target file "*.tstcpplastline2"
 +
      ../../mkd -nstvaC T Test_cpp_U.c4 *.tstcpplastblock >> tstcpplastblock.screen2 #w bug ?
 +
 +
 +
#O    Break with gedit "Test_cpp_U.tstcpp", "tstcpp.screen"
 +
      gedit Test_cpp_U.tstcpp tstcpp.screen Test_cpp_U.tstcpplastline1 tstcpplastline.screen1 Test_cpp_U.tstcpplastblock tstcpplastblock.screen2
 +
 +
#w bug      gedit Test_cpp_U.cc.tstcpplastline2 #bug in version < 2012
 +
 +
#O    Erase Test_cpp_U.tstcpp
 +
</pre>
 +
 +
* Fichier CLEAN_Tests_U:
 +
<pre>
 +
#!/bin/bash
 +
#O File Tests_Clean
 +
#O Force delete files created with mkd "tests" under Linux.
 +
      rm -f Test_cpp_U.tstcpp
 +
      rm -f tstcpp.screen
 +
      rm -f Test_cpp_U.tstcpplastline1
 +
      rm -f tstcpplastline.screen1
 +
      rm -f Test_cpp_U.tstcpplastblock
 +
      rm -f tstcpplastblock.screen2
 +
      rm -f *.doc
</pre>
</pre>
{{Boîte déroulante/fin}}
{{Boîte déroulante/fin}}

Version du 3 mai 2013 à 10:37

Retour aux fichiers en développement →

Dans les fichiers sources les tabulations posent parfois quelques problèmes de lisibilité
ATTENTION, ce fichier a fait l'objet de modifications dans l'application mkdcppw pour être utilisable en inclusion dans le fichier C++, et aussi en fin de fichier pour éviter le caractère EOF.
Notez que le mode verbose (option v) n'est pas pris en compte dans ce fichier

Sommaire

Fichiers de la fonction cpp_()

  • Testé: (4 mai 2013)
cpp.c pour Konsole
  • Non testé:
cpp.cc pour version c++ indépendante
cpp.inc.c pour inclusion dans le source avec gtkmm pour mkdcppw

Fichier de commande des tests Konsole

Analyse du test Konsole

Fichiers sources des tests

Outils personnels