Lines Matching refs:getconf

27 # sun_solaris_getconf.sh - test the ksh93 getconf builtin for compatibility 
28 # with /usr/bin/getconf
51 [[ ! -f "/bin/getconf" ]] && err_exit '/bin/getconf not found.'
52 [[ ! -x "/bin/getconf" ]] && err_exit '/bin/getconf not executable.'
68 # compare builtin getconf output with /usr/bin/getconf
72 /usr/bin/getconf -a |
77 a="\$(getconf "\$t" 2>/dev/null)"
78 b="\$(/usr/bin/getconf "\$t" 2>/dev/null)"
81 print -u2 "getconf/normal built mismatch: |\$t|:|\$a| != |\$b|"
87 # compare builtin getconf output with /usr/bin/getconf while passing a path argument
91 /usr/bin/getconf -a |
96 a="\$(getconf "\$t" "/tmp" 2>/dev/null)"
97 b="\$(/usr/bin/getconf "\$t" "/tmp" 2>/dev/null)"
100 print -u2 "getconf/path built mismatch: |\$t|:|\$a| != |\$b|"
119 ## test whether the getconf builtin is available
120 if [[ "$(builtin | fgrep "/bin/getconf")" == "" ]] ; then
121 err_exit '/bin/getconf not found in the list of builtins.'
125 ## compare "getconf -a" output
126 if [[ "$(getconf -a)" != "$(/usr/bin/getconf -a)" ]] ; then
127 err_exit 'getconf -a output mismatch.'
131 ## check for a key which is only supported by the AST builtin version of getconf:
132 if [[ "$(getconf LIBPREFIX)" != "lib" ]] ; then
133 err_exit 'getconf LIBPREFIX did not return "lib".'
139 (( getconf_keys == 0 )) && err_exit "getconf/normal not working (PATH=${PATH})."
140 (( mismatch > 0 )) && err_exit "getconf/normal test found ${mismatch} differences (PATH=${PATH})."
143 # (we explicitly test this because ast-ksh.2007-01-11 picks up /usr/xpg6/bin/getconf
150 (( getconf_keys == 0 )) && err_exit \"getconf/normal not working (PATH=\${PATH}).\" ; \
151 (( mismatch > 0 )) && err_exit \"getconf/normal test found \${mismatch} differences (PATH=\${PATH}).\" ; \
158 (( getconf_keys == 0 )) && err_exit "getconf/path not working."
159 (( mismatch > 0 )) && err_exit "getconf/path test found ${mismatch} differences."
167 (( getconf_keys == 0 )) && err_exit \"getconf/normal not working (PATH=\${PATH}).\" ; \
168 (( mismatch > 0 )) && err_exit \"getconf/normal test found \${mismatch} differences (PATH=\${PATH}).\" ; \