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/sh
|
||||||
bin=$PWD/realpath.sh
|
# Give in the command to test against as argument(s)
|
||||||
ref="readlink -f"
|
# Examples: ./test.sh readlink -f
|
||||||
#ref="busybox readlink -f"
|
# ./test.sh cat
|
||||||
|
# ./test.sh ./otherscript.sh
|
||||||
|
|
||||||
|
bin="$@"
|
||||||
|
[ -z "$bin" ] && bin=$PWD/realpath.sh
|
||||||
|
|
||||||
dir="$(mktemp -d)"
|
dir="$(mktemp -d)"
|
||||||
cd "$dir"
|
cd "$dir"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user