Commit 8d4d9066 authored by kyodev's avatar kyodev

tests/debug_gi 0.9.0

parent 3f18ec9b
Pipeline #46741 failed with stage
in 19 seconds
#!/bin/sh
version=0.8.0
date="07/04/2018"
version=0.9.0
date="08/04/2018"
script=$(basename $0)
output="$script.md"
ligneRapport="Rapport du $(date '+%d/%m/%Y %H:%M %z')$(uname -n)$0 $*$script $version"
......@@ -41,7 +41,11 @@ free --version &>/dev/null && free --version || echo "free KO"
uptime --version &>/dev/null && uptime --version || echo "uptime KO"
lsblk --version &>/dev/null && lsblk --version || echo "lsblk KO"
lspci --version &>/dev/null && lspci --version || echo "lspci KO"
lspci --nnv &>/dev/null && echo "lspci --nnk ok" || echo "lspci --nnk KO"
if lspci -nnv &>/dev/null ; then echo "lspci -nnk ok"
else
echo "lspci -nnk KO"
flag_lspci="ko"
fi
journalctl --version &>/dev/null && journalctl --version || echo "journalctl KO"
xargs --version &>/dev/null && xargs --version | head -n1 || echo "xargs KO"
upower --version &>/dev/null || echo "upower KO"
......@@ -123,13 +127,16 @@ echo -e '```\n'
echo "## env"
echo '```'
env | sort
echo -e '```\n'
# lspci
echo "## lspci -nnk"
echo '```'
lspci -nnk
echo -e '```\n'
if [[ -z flag_lspci ]]; then
# lspci
echo "## lspci -nnk"
echo '```'
lspci -nnk
echo -e '```\n'
fi
exec 1>&3 # restauration
exec 3>&- # fermeture FD
......@@ -139,7 +146,7 @@ if [ -z "$noexport" ]; then
echo
fi
echo "voir le rapport généré: pager $output"
echo "voir le rapport généré: pager $output" # output="$script.md"
echo "effacer le rapport généré: rm $output"
echo
......@@ -149,10 +156,3 @@ wget -nv -O debug_gi https://framagit.org/kyodev/kyopages/raw/master/scripts/t
chmod +x debug_gi && ./debug_gi
curl -o debug_gi https://framagit.org/kyodev/kyopages/raw/master/scripts/tests/debug_gi
cat > debug << "END"
#!/bin/bash
END
chmod +x debug
bash debug
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment