xref: /minix/minix/commands/swifi/tests/run_t1a (revision 9f988b79)
1#!/bin/sh
2
3set -x
4
5if [ $# -ne 2 ]; then usage; fi
6type="$1"
7run="$2"
8
9count=1000
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_t1 $count $type `expr $run \* 1000` 2>&1 |
19	tee results/1.$type.$run.out
20
21cp $LOGFILE results/1.$type.$run.log
22
23
24