flm01/server/api/flukso/deps/erlrrd/tests/dummyrrdtool

27 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