xref: /minix/minix/commands/swifi/tests/run_t2a (revision 0a6a1f1d)
1#!/bin/sh
2
3set -x
4
5if [ $# -ne 2 ]; then usage; fi
6type="$1"
7run="$2"
8
9count=10000
10
11# Rotate syslog
12LOGFILE=/var/log/messages
13mv $LOGFILE $LOGFILE.prev
14(cd /var/log && : > messages)
15kill -1 `ps ax | grep syslogd | grep -v grep |
16	sed 's,^[	 ]*,,;s,[	 ].*,,'`
17
18./run_t2 $count $type `expr $run \* 1000` 2>&1 |
19	tee results/2.$type.$run.out
20
21cp $LOGFILE results/2.$type.$run.log
22
23
24