From 76593f91498d06e74f92a04e82cc096e44588eec Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 4 Apr 2016 20:57:10 +0200 Subject: add ability to test multi-call binaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 5 +++++ test-all | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/README b/README index 7507b12..5ef6209 100644 --- a/README +++ b/README @@ -9,6 +9,11 @@ To test your implementations run env EPATH= ./test-all [...] +If you have exec-as installed, and what to test +multi-call binary, run + + env EXECBOX= ./test-all [...] + you also copy all files into and just run ./test [...] diff --git a/test-all b/test-all index dd7abea..d4acef8 100755 --- a/test-all +++ b/test-all @@ -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)")'" -- cgit v1.2.3-70-g09d2