test io command

This commit is contained in:
localhost_frssoft 2023-07-23 01:07:35 +03:00
parent 0412550d45
commit 6bd3f033b5

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh
. ./config
@ -60,6 +60,19 @@ while read -r cmd mesg; do
*) echo 'only http(s)' ;;
esac
;;
"testio")
printf 'test io > '
while read -r testinput; do
if [ ':q' = "$testinput" ]; then break; fi
if [ '1M' = "$testinput" ]; then
dd if=/dev/zero bs=1K count=1024 2>&1
else
echo "$testinput" | dd 2>&1
fi
printf 'test io > '
done
toot $full_status | jq '.id, .errors'
;;
*) die; break ;;
esac
printf 'bbs > '