File: stresstest.sh

package info (click to toggle)
python-orbit 0.3.1-12
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,492 kB
  • ctags: 801
  • sloc: sh: 9,444; ansic: 5,642; python: 1,141; makefile: 126
file content (27 lines) | stat: -rwxr-xr-x 379 bytes parent folder | download | duplicates (2)
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
26
27
#!/bin/sh
if [ x$1 == x-nopp ]; then
	shift
	export PYTHONPATH=
else
	export PYTHONPATH=../src:$PYTHONPATH
fi
export IDLPATH=.:$IDLPATH
python ./test-server.py &
SERVERPID=$!
sleep 1s
DEBUG=

# simple hack to get it to run inside gdb
if [ x$1 == x-gdb ]; then
	shift
	gdb python << __EOF__
r Stress.py $*
where
__EOF__
else
	python Stress.py $*
fi

rm ior
rm pid
kill $SERVERPID