Skip to content

Commit

Permalink
added test.
Browse files Browse the repository at this point in the history
  • Loading branch information
yseto committed Aug 30, 2022
1 parent a5efe13 commit fd1010e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions check-file-age/test.sh
@@ -0,0 +1,14 @@
#!/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)
exec $plugin -f $FILENAME
13 changes: 13 additions & 0 deletions check-file-size/test.sh
@@ -0,0 +1,13 @@
#!/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

exec $plugin -b test.sh

0 comments on commit fd1010e

Please sign in to comment.