From 86a04e8a078568a6b682b2af9600931b854bd57b Mon Sep 17 00:00:00 2001 From: aurelien Date: Thu, 24 Jun 2021 16:20:02 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20d'un=20script=20permettant=20de=20mettr?= =?UTF-8?q?e=20en=20=C3=A9vidence=20les=20tests=20pass=C3=A9s=20ou=20non?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scriptCreationDepartement.sh | 1 + scriptDeleteDepartement.sh | 1 + scriptExecution.sh | 1 + scriptGenerateReportPage.sh | 38 ++++++++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100755 scriptGenerateReportPage.sh diff --git a/scriptCreationDepartement.sh b/scriptCreationDepartement.sh index 671fbd1..8494bef 100755 --- a/scriptCreationDepartement.sh +++ b/scriptCreationDepartement.sh @@ -1,4 +1,5 @@ #!/bin/bash +#Se script se charge de se connecter au serveur scodoc et créer le département donné en paramètre if [ "$#" -ne 2 ]; then echo "Pas assez d'arguments" diff --git a/scriptDeleteDepartement.sh b/scriptDeleteDepartement.sh index 14bcef7..c78a278 100755 --- a/scriptDeleteDepartement.sh +++ b/scriptDeleteDepartement.sh @@ -1,4 +1,5 @@ #!/bin/bash +#Se script se charge de se connecter au serveur scodoc et supprimer le département donné en paramètre if [ "$#" -ne 2 ]; then echo "Pas assez d'arguments" diff --git a/scriptExecution.sh b/scriptExecution.sh index e53a6e6..5d60785 100755 --- a/scriptExecution.sh +++ b/scriptExecution.sh @@ -1,4 +1,5 @@ #!/bin/bash +#Ce script se rends sur le serveur scodoc et lance le script précisé sur celui ci if [ "$#" -ne 3 ]; then echo "Pas assez d'arguments" diff --git a/scriptGenerateReportPage.sh b/scriptGenerateReportPage.sh new file mode 100755 index 0000000..0c946fc --- /dev/null +++ b/scriptGenerateReportPage.sh @@ -0,0 +1,38 @@ +#!/bin/bash +TIME=$(date) +echo ' + + + + + + Directory Tree + + + +

Directory Tree

+ ./ResultatTest/
+' >> ./ResultatTest/Résumé_"${TIME}".html +for file in ./ResultatTest/*.html; do + echo '├── '$file'
$(cat $file | grep "Summary")' >> ./ResultatTest/Résumé_"${TIME}".html +done +echo '



' >> ./ResultatTest/Résumé_"${TIME}".html \ No newline at end of file