diff --git a/executor.sh b/executor.sh index 12cbe41..e3c631e 100755 --- a/executor.sh +++ b/executor.sh @@ -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 > '