diff --git a/test.sh b/test.sh index 59345f6..8120960 100755 --- a/test.sh +++ b/test.sh @@ -1,7 +1,12 @@ #!/bin/sh -bin=$PWD/realpath.sh -ref="readlink -f" -#ref="busybox readlink -f" +# Give in the command to test against as argument(s) +# Examples: ./test.sh readlink -f +# ./test.sh cat +# ./test.sh ./otherscript.sh + +bin="$@" +[ -z "$bin" ] && bin=$PWD/realpath.sh + dir="$(mktemp -d)" cd "$dir"