Project

General

Profile

Functionality #15443

automate test run

Added by Antoine Beaupré about 7 years ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
2014-09-18
Due date:
% Done:

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?

History

#1 Updated by Antoine Beaupré about 7 years ago

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 Updated by Antoine Beaupré about 7 years ago

  • RT ticket set to 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 Updated by Anonymous 4 months ago

Also available in: Atom PDF