875abb8724
- no longer inject fewer faults than instructed; - no longer apply a limit on the number of injected faults; - refactory to allow for random faults (type 99); - also allow for stop faults (type 50); - massive dead code cleanup; - move outdated test cruft into tests/ subdirectory; it is kept only as an example of how to use swifi. Change-Id: I8a3cb71902dfaadb7bf785723b917307db83d0d5
24 lines
379 B
Bash
Executable file
24 lines
379 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -x
|
|
|
|
if [ $# -ne 2 ]; then usage; fi
|
|
type="$1"
|
|
run="$2"
|
|
|
|
count=10000
|
|
|
|
# Rotate syslog
|
|
LOGFILE=/var/log/messages
|
|
mv $LOGFILE $LOGFILE.prev
|
|
(cd /var/log && : > messages)
|
|
kill -1 `ps ax | grep syslogd | grep -v grep |
|
|
sed 's,^[ ]*,,;s,[ ].*,,'`
|
|
|
|
./run_t2 $count $type `expr $run \* 1000` 2>&1 |
|
|
tee results/2.$type.$run.out
|
|
|
|
cp $LOGFILE results/2.$type.$run.log
|
|
|
|
|