diff options
author | Mattias Andrée <maandree@kth.se> | 2016-04-04 20:57:10 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-04-04 20:57:10 +0200 |
commit | 76593f91498d06e74f92a04e82cc096e44588eec (patch) | |
tree | 3b3a3954dca378aa097d26240e3ddfb320e3f84b | |
parent | some improvements (diff) | |
download | base-util-tests-76593f91498d06e74f92a04e82cc096e44588eec.tar.gz base-util-tests-76593f91498d06e74f92a04e82cc096e44588eec.tar.bz2 base-util-tests-76593f91498d06e74f92a04e82cc096e44588eec.tar.xz |
add ability to test multi-call binaries
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | README | 5 | ||||
-rwxr-xr-x | test-all | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -9,6 +9,11 @@ To test your implementations run env EPATH=<path> ./test-all [<utils>...] +If you have exec-as installed, and what to test +multi-call binary, run + + env EXECBOX=<binary> ./test-all [<utils>...] + you also copy all files into <path> and just run ./test [<utils>...] @@ -16,6 +16,10 @@ if test -n "${EPATH}"; then for c in $(all); do eval "export $(echo $c | tr '[a-z-]' '[A-Z_]')='$(realpath "$(env PATH="${EPATH}" "$(which which)" $c)")'" done +elif test -n "${EXECBOX}"; then + for c in $(all); do + eval "export $(echo $c | tr '[a-z-]' '[A-Z_]')='exec-as $(realpath "${EXECBOX}") $c'" + done elif test -n "${IN_PATH}"; then for c in $(all); do eval "export $(echo $c | tr '[a-z-]' '[A-Z_]')='$(realpath "$(which $c)")'" |