From 2dfc056354d055c7eeef5f7731ade646a2871c3c Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Thu, 6 Sep 2012 11:55:49 +0930 Subject: [PATCH] Add absapath function since Solaris lacks it. Tests still don't work due to ancient bash though. --- testframework.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testframework.sh b/testframework.sh index a2731a05..e5b3f619 100644 --- a/testframework.sh +++ b/testframework.sh @@ -54,6 +54,12 @@ # } # runTests "$@" +# abspath isn't available on Solaris +type abspath 2>/dev/null +if [ $? -ne 0 ]; then + abspath () { case "$1" in /*)printf "%s\n" "$1";; *)printf "%s\n" "$PWD/$1";; esac; } +fi + usage() { echo -n "\ Usage: ${0##*/} [options] [--]