2023-05-23 10:39:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ "$1" == "stdin" ]; then
|
|
|
|
read -r inputdata
|
|
|
|
echo "STDIN DATA: $inputdata"
|
2023-07-28 08:54:53 +00:00
|
|
|
elif [ "$1" == "timeout1" ]; then
|
|
|
|
sleep 1
|
|
|
|
exit 1
|
2023-05-23 10:39:35 +00:00
|
|
|
elif [ "$1" == "timeout2" ]; then
|
|
|
|
sleep 2
|
|
|
|
exit 2
|
|
|
|
elif [ "$1" == "timeout10" ]; then
|
|
|
|
sleep 10
|
|
|
|
elif [ "$1" == "bigdata" ]; then
|
2023-11-10 06:42:36 +00:00
|
|
|
for i in {1..100000}
|
2023-05-23 10:39:35 +00:00
|
|
|
do
|
|
|
|
echo "ALICEWASBEGINNINGTOGETVERYTIREDOFSITTINGBYHERSISTERONTHEBANKANDO"
|
|
|
|
done
|
|
|
|
elif [ "$1" == "envtest" ]; then
|
|
|
|
echo "$CHRONOSASYNC"
|
2023-07-28 08:54:53 +00:00
|
|
|
elif [ "$1" == "noterm" ]; then
|
|
|
|
trap -- '' SIGTERM
|
|
|
|
while true; do
|
|
|
|
sleep 1
|
|
|
|
done
|
2023-05-23 10:39:35 +00:00
|
|
|
else
|
|
|
|
echo "arguments missing"
|
|
|
|
fi
|