Projet

Général

Profil

Functionality #15443

automate test run

Ajouté par Antoine Beaupré il y a plus de 9 ans. Mis à jour il y a environ 2 ans.

Statut:
Rejected
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
2014-09-18
Echéance:
% réalisé:

0%

RT ticket:
Points:
1

Description

we should have a shell script that we can run after login, or that runs straight on boot, and that will run all the tests we need.

so far, i have this in the motd:

This debirf image has the "stresant" extensions. Some suggested tests:

# hardware inventory
lshw -short
lshw -json | nc backup.example.com 12345
# basic hard drive speed test
hdparm -Tt /dev/sda
# wipe disks
${wipe_motd} /dev/sda
# benchmark disks with bonnie++
mkfs -t ext4 /dev/sda # only on new systems!
mount /dev/sda /mnt
chown nobody /mnt
free -h
bonnie++ -d /mnt/ -s 96G -n 1024 -u nobody
# cpu stress testing
stress -c $(grep ^processor /proc/cpu | wc -l)

some fixes needed there:

  • detect existing partitionning and mount instead of mkfs for bonnie test, abort to be safe in doubt
  • calculate bonnie ram automatically
  • log output (where?! email? syslog UDP??)
  • show this on the first tty by default?

Historique

#1 Mis à jour par Antoine Beaupré il y a plus de 9 ans

other ideas for tests to run can be gleamed from:

http://git.advancedclustering.com/cgi-bin/gitweb.cgi?p=breakin.git;a=tree;f=scripts/tests;hb=HEAD
http://git.advancedclustering.com/cgi-bin/gitweb.cgi?p=breakin.git;a=blob_plain;f=scripts/startup.sh;hb=HEAD

also, the main breakin command runs benchmarks of its own, eg. "stream": http://git.advancedclustering.com/cgi-bin/gitweb.cgi?p=breakin.git;a=blob;f=breakin.c#l967

the results are optionally encrypted to a given password

dmidecode is also ran, along with a custom disk benchmark: http://git.advancedclustering.com/cgi-bin/gitweb.cgi?p=breakin.git;a=blob_plain;f=bench_disk.c;hb=HEAD

All this could be made into a script, program, or something that could be shipped in a debian package. I suggest the name "burnin" or simply "stressant" as command name.

#2 Mis à jour par Antoine Beaupré il y a plus de 9 ans

  • RT ticket mis à 24025

noter que ceci répondrait également à ce ticket si on créé un email: https://rt.koumbit.net/rt/Ticket/Display.html?id=24025

#3 Mis à jour par Kienan Stewart il y a environ 2 ans

  • Statut changé de New à Rejected

Formats disponibles : Atom PDF