From: Eric Blake Date: Mon, 28 Jan 2008 14:02:43 +0000 (-0700) Subject: Minor testsuite improvements. X-Git-Tag: v2.62~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6c22af0e79a7f08c150f6dc59841be914dfa66d;p=thirdparty%2Fautoconf.git Minor testsuite improvements. * lib/autotest/general.m4 (AT_INIT) : Use fewer forks when sanitizing PATH. Always output machine information, not just when atconfig was located. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 49cfa459..b8e7fb0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-01-28 Eric Blake + Minor testsuite improvements. + * lib/autotest/general.m4 (AT_INIT) : Use fewer + forks when sanitizing PATH. Always output machine information, + not just when atconfig was located. + Add 'testsuite -C dir'. * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument detection... diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index c1101adb..662f2cbb 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -785,8 +785,11 @@ esac]) # builtins' (eg., cd) stderr directly: Ultrix's sh hates that. at_new_path= _AS_PATH_WALK([$at_path], -[as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` -test -d "$as_dir" || continue +[test -d "$as_dir" || continue +case $as_dir in + [[\\/]]* | ?:[[\\/]]* ) ;; + * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;; +esac case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;; $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;; @@ -832,10 +835,11 @@ AS_BOX(m4_defn([AT_TESTSUITE_NAME])[.]) echo done - AS_UNAME - echo fi + AS_UNAME + echo + # Contents of the config files. for at_file in atconfig atlocal do