File: run_test_queue.sh

package info (click to toggle)
fstrm 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 884 kB
  • sloc: ansic: 8,991; makefile: 181; xml: 181; sh: 127
file content (22 lines) | stat: -rwxr-xr-x 357 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
#!/bin/sh -e

TNAME="test_queue"

if [ -z "$DIRNAME" ]; then
    DIRNAME="$(dirname $(readlink -f $0))"
fi

if [ -z "$QSIZE" ]; then
    QSIZE=128
fi

if [ -z "$QSECONDS" ]; then
    QSECONDS=1
fi

$DIRNAME/$TNAME spin "$QSIZE" "$QSECONDS"
echo
$DIRNAME/$TNAME slow_producer "$QSIZE" "$QSECONDS"
echo
$DIRNAME/$TNAME slow_consumer "$QSIZE" "$QSECONDS"
echo