ajout d'un script permettant de mettre en évidence les tests passés ou non

This commit is contained in:
Aurélien Plancke 2021-06-24 16:20:02 +02:00
parent 8fb3278553
commit 86a04e8a07
4 changed files with 41 additions and 0 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

38
scriptGenerateReportPage.sh Executable file
View File

@ -0,0 +1,38 @@
#!/bin/bash
TIME=$(date)
echo '<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Author" content="Made by 'tree'">
<meta name="GENERATOR" content="$Version: $ tree v1.8.0 (c) 1996 - 2018 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro $">
<title>Directory Tree</title>
<style type="text/css">
<!--
BODY { font-family : ariel, monospace, sans-serif; }
P { font-weight: normal; font-family : ariel, monospace, sans-serif; color: black; background-color: transparent;}
B { font-weight: normal; color: black; background-color: transparent;}
A:visited { font-weight : normal; text-decoration : none; background-color : transparent; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
A:link { font-weight : normal; text-decoration : none; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
A:hover { color : #000000; font-weight : normal; text-decoration : underline; background-color : yellow; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
A:active { color : #000000; font-weight: normal; background-color : transparent; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
.VERSION { font-size: small; font-family : arial, sans-serif; }
.NORM { color: black; background-color: transparent;}
.FIFO { color: purple; background-color: transparent;}
.CHAR { color: yellow; background-color: transparent;}
.DIR { color: blue; background-color: transparent;}
.BLOCK { color: yellow; background-color: transparent;}
.LINK { color: aqua; background-color: transparent;}
.SOCK { color: fuchsia;background-color: transparent;}
.EXEC { color: green; background-color: transparent;}
-->
</style>
</head>
<body>
<h1>Directory Tree</h1><p>
<a href="./ResultatTest/">./ResultatTest/</a><br>
' >> ./ResultatTest/Résumé_"${TIME}".html
for file in ./ResultatTest/*.html; do
echo '├── <a href="'$(basename "$file")'">'$file'</a><br>$(cat $file | grep "Summary")' >> ./ResultatTest/Résumé_"${TIME}".html
done
echo '<br><br><br><br></body></html>' >> ./ResultatTest/Résumé_"${TIME}".html