mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-29 18:46: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>
|
2009-12-13 Alfred M. Szmidt <ams@gnu.org>
|
||||||
|
|
||||||
* config.sub (version): Add the year 2009.
|
* config.sub (version): Add the year 2009.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright 2004, 2005 Free Software Foundation, Inc.
|
# Copyright 2004, 2005, 2009 Free Software Foundation, Inc.
|
||||||
# Contributed by Ben Elliston <bje@gnu.org>.
|
# Contributed by Ben Elliston <bje@gnu.org>.
|
||||||
#
|
#
|
||||||
# This test reads 5-tuples from config-guess.data: the components of
|
# This test reads 5-tuples from config-guess.data: the components of
|
||||||
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
verbose=false
|
verbose=false
|
||||||
export PATH=`pwd`:$PATH
|
export PATH=`pwd`:$PATH
|
||||||
IFS=" " # tab
|
|
||||||
|
|
||||||
run_config_guess ()
|
run_config_guess ()
|
||||||
{
|
{
|
||||||
@ -36,12 +35,11 @@ run_config_guess ()
|
|||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
|
||||||
sed 's/ */ /g' < config-guess.data | run_config_guess
|
if run_config_guess < config-guess.data ; then
|
||||||
rc=$?
|
|
||||||
if test $rc -eq 0 ; then
|
|
||||||
$verbose || echo "PASS: config.guess checks"
|
$verbose || echo "PASS: config.guess checks"
|
||||||
else
|
else
|
||||||
test $rc -eq 1 && echo "Unexpected failures."
|
echo "Unexpected failures."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $rc
|
exit 0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright 2004, 2005 Free Software Foundation, Inc.
|
# Copyright 2004, 2005, 2009 Free Software Foundation, Inc.
|
||||||
# Contributed by Ben Elliston <bje@gnu.org>.
|
# Contributed by Ben Elliston <bje@gnu.org>.
|
||||||
#
|
#
|
||||||
# This test reads pairs from config-sub.data: an alias and its
|
# This test reads pairs from config-sub.data: an alias and its
|
||||||
@ -24,12 +24,11 @@ run_config_sub ()
|
|||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
|
||||||
run_config_sub
|
if run_config_sub ; then
|
||||||
rc=$?
|
|
||||||
if test $rc -eq 0 ; then
|
|
||||||
$verbose || echo "PASS: config.sub checks"
|
$verbose || echo "PASS: config.sub checks"
|
||||||
else
|
else
|
||||||
test $rc -eq 1 && echo "Unexpected failures."
|
echo "Unexpected failures."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $rc
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user