flm01/server/api/flukso/deps/erlrrd/tests/dummyrrdtool
Bart Van Der Meerssche 3a28838b29 change repository layout
2010-07-07 16:37:03 +02:00

26 lines
474 B
Bash
Executable file

#!/bin/sh
while read cmd rest
do
case $cmd in
pwd)
echo "ERROR: pwd disabled for testing"
;;
timeout)
sleep 1
echo "ERROR: timed out"
;;
die)
echo "OK u:0.01 s:0.02 r:0.03"
exit 1
;;
longresponse)
perl -le 'print "a234567890123456789012345678901234567890" x (255)'
echo "OK u:0.01 s:0.02 r:0.03"
;;
*)
echo $cmd $rest
echo "OK u:0.01 s:0.02 r:0.03"
;;
esac
done