mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-28 01:56:38 +12:00
* testsuite/config-guess.sh: Simplify some shell logic.
* testsuite/config-sub.sh: Likewise.
This commit is contained in:
parent
5380268ada
commit
d1f5aa35fa
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user