* testsuite/config-guess.sh: Simplify some shell logic.

* testsuite/config-sub.sh: Likewise.
This commit is contained in:
Ben Elliston 2009-12-16 14:23:10 +11:00
parent 5380268ada
commit d1f5aa35fa
3 changed files with 15 additions and 13 deletions

View File

@ -1,3 +1,8 @@
2009-12-16 Ben Elliston <bje@gnu.org>
* testsuite/config-guess.sh: Simplify some shell logic.
* testsuite/config-sub.sh: Likewise.
2009-12-13 Alfred M. Szmidt <ams@gnu.org>
* config.sub (version): Add the year 2009.

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright 2004, 2005 Free Software Foundation, Inc.
# Copyright 2004, 2005, 2009 Free Software Foundation, Inc.
# Contributed by Ben Elliston <bje@gnu.org>.
#
# This test reads 5-tuples from config-guess.data: the components of
@ -8,7 +8,6 @@
verbose=false
export PATH=`pwd`:$PATH
IFS=" " # tab
run_config_guess ()
{
@ -36,12 +35,11 @@ run_config_guess ()
return $rc
}
sed 's/ */ /g' < config-guess.data | run_config_guess
rc=$?
if test $rc -eq 0 ; then
if run_config_guess < config-guess.data ; then
$verbose || echo "PASS: config.guess checks"
else
test $rc -eq 1 && echo "Unexpected failures."
echo "Unexpected failures."
exit 1
fi
exit $rc
exit 0

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright 2004, 2005 Free Software Foundation, Inc.
# Copyright 2004, 2005, 2009 Free Software Foundation, Inc.
# Contributed by Ben Elliston <bje@gnu.org>.
#
# This test reads pairs from config-sub.data: an alias and its
@ -24,12 +24,11 @@ run_config_sub ()
return $rc
}
run_config_sub
rc=$?
if test $rc -eq 0 ; then
if run_config_sub ; then
$verbose || echo "PASS: config.sub checks"
else
test $rc -eq 1 && echo "Unexpected failures."
echo "Unexpected failures."
exit 1
fi
exit $rc
exit 0