Projet mkd/find.c

De Wiki EELL.

(Différences entre les versions)
m (Fichier de commande des tests : Mise à jour)
m (Fichier de commande des tests : Mise à jour)
Ligne 144 : Ligne 144 :
== 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, Make_Tests_files, KONSOLE}}
-
* File: KONSOLE
+
-
<pre style = "color:black">
+
-
#!/bin/bash
+
-
echo -e '\E['32';'01'm'"click on New Line to 'start' the Konsole"
+
-
# echo -e '\E['31';'01'm' "not 'start in a terminal'"
+
-
echo -e '\E['32';'01'm'"click on Ctrl-C to exit"
+
-
tput sgr0 # Reset text attributes to normal without clear
+
-
read pwd
+
-
pwd
+
-
echo $pwd
+
-
tput sgr0 # Reset text attributes to normal without clear
+
-
/usr/bin/konsole background-mode --workdir pwd dir
+
-
read
+
-
</pre>
+
* File: MAKE_Tests_U
* File: MAKE_Tests_U
Ligne 168 : Ligne 154 :
../../mkd -svwfj '**' test_find.prj test_find.txt > test.stdout
../../mkd -svwfj '**' test_find.prj test_find.txt > test.stdout
gedit test_find.txt test.stdout
gedit test_find.txt test.stdout
 +
</pre>
 +
 +
* File: CLEAN_Tests_U
 +
<pre style = "color:black">
 +
#!/bin/dash
 +
#O File Tests_Clean
 +
#O Delete files created with Make_Tets_files under Linux.
 +
rm test.*
</pre>
</pre>
Ligne 173 : Ligne 167 :
<pre style = "color:blue">>
<pre style = "color:blue">>
#!/bin/dash
#!/bin/dash
-
echo "assembler" > test.ASM
+
echo "; assembler" > test.ASM
-
echo "basic" > test.BAS
+
echo "REM basic" > test.BAS
-
echo "batch" > test.BAT
+
echo "REM batch" > test.BAT
-
echo "fortran" > test.FOR
+
echo "C fortran" > test.FOR
-
echo "pascal" > test.PAS
+
echo "{ pascal }" > test.PAS
-
echo "visual basic" > test.vb
+
echo "' visual basic" > test.vb
-
echo "c++" > test.c++
+
echo "/* c++ */" > test.c++
-
echo "c++" > test.h++
+
echo "// c++" > test.h++
-
echo "c--" > test.c--
+
echo "/* c-- */ " > test.c--
-
echo "c--" > test.h--
+
echo "// c--" > test.h--
-
echo "c++" > test.cpp
+
echo "/* c++ */" > test.cpp
-
echo "c++" > test.hpp
+
echo "// c++" > test.hpp
-
echo "css" > test.css
+
echo "/* css */" > test.css
-
echo "c++" > test.cc
+
echo "/* c++ */" > test.cc
-
echo "c sharp" > test.cp
+
echo "/* c sharp */" > test.cp
-
echo "c sharp" > test.cs
+
echo "// c sharp" > test.cs
-
echo "c sharp" > test.c#
+
echo "// c sharp" > test.c#
-
echo "C" > test.C
+
echo "/* C */" > test.C
-
echo "C" > test.h
+
echo "// C" > test.h
-
echo "D" > test.D
+
echo "/* D */" > test.D
-
echo "prolog" > test.pro
+
echo "/* prolog */" > test.pro
-
echo "php" > test.php
+
echo "// php" > test.php
-
echo "java" > test.jav
+
echo "/* java */" > test.jav
-
echo "javasript" > test.jse
+
echo "/* javasript */" > test.jse
-
echo "javasript" > test.js
+
echo "// javasript " > test.js
#w echo "mkd" > test.prj not a programming language
#w echo "mkd" > test.prj not a programming language
#w echo "mkd" > test.pj  not a programming language
#w echo "mkd" > test.pj  not a programming language
# UNIX
# UNIX
-
echo "assembler" > test.s
+
echo "; assembler" > test.s
-
echo "fortran" > test.f
+
echo "C fortran" > test.f
-
echo "pascal" > test.p
+
echo "(* pascal *)" > test.p
-
echo "ratfor" > test.r
+
echo "# ratfor" > test.r
-
echo "shell" > test.sh
+
echo "# shell" > test.sh
-
echo "cshell" > test.csh
+
echo "# cshell" > test.csh
-
echo "perl" > test.pl
+
echo "# perl" > test.pl
-
echo "ruby" > test.rb
+
echo "# ruby" > test.rb
-
echo "python" > test.py
+
echo "/* python */" > test.py
-
echo "python" > test.pyw
+
echo "# python" > test.pyw
# C strict
# C strict
-
echo "C strict src" > test.c
+
echo "/* C strict src */" > test.c
-
#w echo "C strict include preformated" > test.i Only for c strict
+
echo "/* C strict header */" > test.h
-
echo "C strict header" > test.h
+
# Make prj file
# Make prj file
-
ls -1 > test_find.prj
+
# ls -1 > test_find.prj
 +
</pre>
 +
 
 +
* File: KONSOLE
 +
<pre style = "color:red">
 +
#!/bin/bash
 +
echo -e '\E['32';'01'm'"click on New Line to 'start' the Konsole"
 +
# echo -e '\E['31';'01'm' "not 'start in a terminal'"
 +
echo -e '\E['32';'01'm'"click on Ctrl-C to exit"
 +
tput sgr0 # Reset text attributes to normal without clear
 +
read pwd
 +
pwd
 +
echo $pwd
 +
tput sgr0 # Reset text attributes to normal without clear
 +
/usr/bin/konsole background-mode --workdir pwd dir
 +
read
</pre>
</pre>
{{Boîte déroulante/fin}}
{{Boîte déroulante/fin}}

Version du 10 mai 2013 à 10:02

Retour aux fichiers en développement →

Sommaire

find (included file)

Fichier de commande des tests

Analyse des test konsole

Fichiers sources des tests

Outils personnels