1REQUIRE_MODULE PERF 2# win: can start htremote's (if cygwin), test seems then 3# to proceed normally, but then hangs, likely at the end 4@:SKIP $OS win # FIXME hangs until timeout 5 6INCLUDE $TOP/test/config.htb 7 8DAEMON 9_EXEC ../src/htremote -p10011 -e"/bin/bash ./run.sh -Ssn" 10END 11DAEMON 12_EXEC ../src/htremote -p10012 -e"/bin/bash ./run.sh -Ssn" 13END 14DAEMON 15_EXEC ../src/htremote -p10013 -e"/bin/bash ./run.sh -Ssn" 16END 17 18CLIENT 19_SLEEP 50 20END 21 22GO 23 24PERF:RAMPUP 10 5000 25PERF:DISTRIBUTED localhost:10011 26PERF:DISTRIBUTED localhost:10012 27PERF:DISTRIBUTED localhost:10013 28PERF:DISTRIBUTED localhost:10014 29 30SET con=40 31SET count=20 32CLIENT $con 33_LOOP $count 34 _REQ $YOUR_HOST $YOUR_PORT 35 __GET / HTTP/1.1 36 __Host: $YOUR_HOST:$YOUR_PORT 37 __ 38 _WAIT 39_END 40END 41 42SERVER $YOUR_PORT $con 43_LOOP $count 44 _RES 45 _WAIT 46 __HTTP/1.1 200 OK 47 __Content-Type: text/plain 48 __Content-Length: AUTO 49 __ 50 __Hallo Velo 51_END 52END 53 54GO 55 56# test must not take lesser than 20 seconds 57CLIENT 58_DATE:TIMER GET T 59_DEBUG $T 60_IF ($T < 15000) 61_DEBUG Test must durate at least 15 seconds, else rampup did not take place 62_EXIT FAILED 63_END 64_IF ($T > 20000) 65_DEBUG Test should not durate longer than 20 seconds, else rampup calculation may be wrong 66_END 67END 68