Skip to content

Commit

Permalink
added test check-file-size
Browse files Browse the repository at this point in the history
  • Loading branch information
yseto committed Aug 30, 2022
1 parent a5efe13 commit a6aedd0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions check-file-size/test.sh
@@ -0,0 +1,15 @@
#!/bin/sh

prog=$(basename "$0")
cd "$(dirname "$0")" || exit
PATH=$(pwd):$PATH
plugin=$(basename "$(pwd)")
if ! which "$plugin" >/dev/null
then
echo "$prog: $plugin is not installed" >&2
exit 2
fi

FILENAME=$(mktemp)
dd if=/dev/zero of=$FILENAME count=1023 bs=1
exec $plugin -b $FILENAME

0 comments on commit a6aedd0

Please sign in to comment.