2023-05-23 10:39:35 +00:00
|
|
|
@ECHO OFF
|
|
|
|
|
|
|
|
IF /I "%1" == "STDIN" (
|
|
|
|
GOTO :STDINTEST
|
2023-07-28 08:54:53 +00:00
|
|
|
) ELSE IF /I "%1" == "TIMEOUT1" (
|
|
|
|
GOTO :TIMEOUTTEST1
|
2023-05-23 10:39:35 +00:00
|
|
|
) ELSE IF /I "%1" == "TIMEOUT2" (
|
|
|
|
GOTO :TIMEOUTTEST2
|
|
|
|
) ELSE IF /I "%1" == "TIMEOUT10" (
|
|
|
|
GOTO :TIMEOUTTEST10
|
|
|
|
) ELSE IF /I "%1" == "BIGDATA" (
|
|
|
|
GOTO :BIGDATA
|
|
|
|
) ELSE IF /I "%1" == "ENVTEST" (
|
|
|
|
GOTO :ENVTEST
|
|
|
|
)
|
|
|
|
|
|
|
|
EXIT 0
|
|
|
|
|
|
|
|
:STDINTEST
|
|
|
|
SET /P "INPUTDATA="
|
|
|
|
ECHO STDIN DATA: %INPUTDATA%
|
|
|
|
EXIT 0
|
|
|
|
|
2023-07-28 08:54:53 +00:00
|
|
|
:TIMEOUTTEST1
|
|
|
|
ping -n 1 127.0.0.1 > NUL
|
|
|
|
EXIT 1
|
|
|
|
|
2023-05-23 10:39:35 +00:00
|
|
|
:TIMEOUTTEST2
|
|
|
|
ping -n 2 127.0.0.1 > NUL
|
|
|
|
EXIT 2
|
|
|
|
|
|
|
|
:TIMEOUTTEST10
|
|
|
|
ping -n 10 127.0.0.1 > NUL
|
|
|
|
EXIT 0
|
|
|
|
|
|
|
|
:BIGDATA
|
2023-11-10 06:42:36 +00:00
|
|
|
FOR /L %%G IN (1, 1, 100000) DO ECHO ALICEWASBEGINNINGTOGETVERYTIREDOFSITTINGBYHERSISTERONTHEBANKANDO
|
2023-05-23 10:39:35 +00:00
|
|
|
EXIT 0
|
|
|
|
|
|
|
|
:ENVTEST
|
|
|
|
ECHO %CHRONOSASYNC%
|
|
|
|
EXIT 0
|