mirror of
git://git.savannah.gnu.org/config.git
synced 2025-07-05 04:38:20 +12:00
* testsuite/config-guess.sh: Strip off spaces around pipe
delimiter as test data is read in. (run_config_guess): Set IFS to '|'. * testsuite/config-guess.data: Use ' | ' as the delimeter.
This commit is contained in:
@ -14,7 +14,7 @@ PATH=$(pwd):$PATH
|
||||
run_config_guess()
|
||||
{
|
||||
rc=0
|
||||
while read machine release system version processor triplet ; do
|
||||
while IFS='|' read -r machine release system version processor triplet ; do
|
||||
sed \
|
||||
-e "s,@MACHINE@,$machine," \
|
||||
-e "s,@RELEASE@,$release," \
|
||||
@ -46,7 +46,7 @@ EOF
|
||||
return $rc
|
||||
}
|
||||
|
||||
if run_config_guess < config-guess.data ; then
|
||||
if sed 's, | ,|,g' < config-guess.data | run_config_guess ; then
|
||||
numtests=$(wc -l config-guess.data | cut -d' ' -f1)
|
||||
$verbose || echo "PASS: config.guess checks ($numtests tests)"
|
||||
else
|
||||
|
Reference in New Issue
Block a user