File: HOWTO

package info (click to toggle)
doona 1.0%2Bgit20190108-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 276 kB
  • sloc: perl: 2,287; makefile: 4; sh: 1
file content (25 lines) | stat: -rw-r--r-- 1,336 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

 Howto use BED?


Using BED is quit simple :) Decide which protocol you want to stress test
and start bed using the commandline

 perl bed.pl -m module -t 192.168.0.1

BED will then run for a while, any maybe report to you that a connection attempt
to the service failed. If this is the case you might have detected a bug. Next step
is to run BED again with a higher timeout between the testcases, depending on the 
duration of your coffee break, values of 5 to 30 seconds are fine. So restart the
daemon or box and run BED again, using the -o switch. If BED reports a crash at the
same place again, take a look at the module you where using ( in bedmod/xxxx.pm ) and
search for the testcase, then run it by hand ( either using netcat and perl or write
your own script ) agains the daemon, if you can reproduce the problem, its time to look
at the sources, coredump or using a disassembler and debugger to find out whats really
happening in there. If BED reports the crash at another test, just increase the timeout
a bit more until you found the testcase which produces the crash, just do some trial and
error stuff, because sometimes the crash happens much later than you sending the data.
I had wait times up to 2 Minutes with a Lexmark T522 printer, until the box finally
crashed and called for service :)

Thats about it... enjoy