#! /bin/sh basedir="." # make sure to use the same locale everywhere. LC_ALL=C export LC_ALL LANG=C export LANG for suffix in _glibc '' do binary=$basedir/getconf$suffix logfile=$basedir/tst-getconf$suffix.out rm -f $logfile result=0 while read name; do case "$name" in "#"*) continue;; esac echo -n "getconf $name: " >> $logfile $binary "$name" 2>> $logfile >> $logfile if test $? -ne 0; then echo "*** $name FAILED" >> $logfile result=1 fi done <> $logfile $binary "$name" / 2>> $logfile >> $logfile if test $? -ne 0; then echo "*** $name FAILED" >> $logfile result=1 fi done <