mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-10 09:23:10 +00:00
21 lines
428 B
Bash
21 lines
428 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
if [ "$1" == "stdin" ]; then
|
||
|
|
read -r inputdata
|
||
|
|
echo "STDIN DATA: $inputdata"
|
||
|
|
elif [ "$1" == "timeout2" ]; then
|
||
|
|
sleep 2
|
||
|
|
exit 2
|
||
|
|
elif [ "$1" == "timeout10" ]; then
|
||
|
|
sleep 10
|
||
|
|
elif [ "$1" == "bigdata" ]; then
|
||
|
|
for i in {1..400000}
|
||
|
|
do
|
||
|
|
echo "ALICEWASBEGINNINGTOGETVERYTIREDOFSITTINGBYHERSISTERONTHEBANKANDO"
|
||
|
|
done
|
||
|
|
elif [ "$1" == "envtest" ]; then
|
||
|
|
echo "$CHRONOSASYNC"
|
||
|
|
else
|
||
|
|
echo "arguments missing"
|
||
|
|
fi
|