Allow test to be used against other executables
This commit is contained in:
parent
49d87e3c40
commit
d54039a09b
11
test.sh
11
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user