mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-29 02:26:36 +12:00
* testsuite/config-guess.sh: Set -eu for robustness. Run
config.guess under `sh -e' to catch more problems. * testsuite/config-sub.sh: Run config.sub under `sh -eu'.
This commit is contained in:
parent
14ec0b015e
commit
32d5bd9cec
@ -1,3 +1,9 @@
|
|||||||
|
2018-05-19 Ben Elliston <bje@gnu.org>
|
||||||
|
|
||||||
|
* testsuite/config-guess.sh: Set -eu for robustness. Run
|
||||||
|
config.guess under `sh -e' to catch more problems.
|
||||||
|
* testsuite/config-sub.sh: Run config.sub under `sh -eu'.
|
||||||
|
|
||||||
2018-05-19 John Ericson <john.ericson@obsidian.systems>
|
2018-05-19 John Ericson <john.ericson@obsidian.systems>
|
||||||
|
|
||||||
* config.sub: Cordon off single component aliases.
|
* config.sub: Cordon off single component aliases.
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright 2004, 2005, 2009, 2012, 2015 Free Software Foundation,
|
# Copyright 2004, 2005, 2009, 2012, 2015, 2018 Free Software
|
||||||
# Inc.
|
# 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
|
||||||
# the simulated uname(1) output and the expected GNU system triplet.
|
# the simulated uname(1) output and the expected GNU system triplet.
|
||||||
|
|
||||||
|
set -eu
|
||||||
verbose=false
|
verbose=false
|
||||||
PATH=$(pwd):$PATH
|
PATH=$(pwd):$PATH
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ run_config_guess()
|
|||||||
[ \$1 = -p ] && echo "@PROCESSOR@" && exit 0
|
[ \$1 = -p ] && echo "@PROCESSOR@" && exit 0
|
||||||
EOF
|
EOF
|
||||||
chmod +x uname
|
chmod +x uname
|
||||||
output=$(../config.guess 2>/dev/null)
|
output=$(sh -e ../config.guess 2>/dev/null)
|
||||||
if test $? != 0 ; then
|
if test $? != 0 ; then
|
||||||
echo "FAIL: unable to guess $machine:$release:$system:$version"
|
echo "FAIL: unable to guess $machine:$release:$system:$version"
|
||||||
rc=1
|
rc=1
|
||||||
|
@ -1,19 +1,21 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright 2004, 2005, 2009, 2014 Free Software Foundation, Inc.
|
# Copyright 2004, 2005, 2009, 2014, 2018 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
|
||||||
# canonical triplet. config.sub is invoked and the test checks that
|
# canonical triplet. config.sub is invoked and the test checks that
|
||||||
# the alias expands to the expected canonical triplet.
|
# the alias expands to the expected canonical triplet.
|
||||||
|
|
||||||
|
set -eu
|
||||||
verbose=false
|
verbose=false
|
||||||
|
|
||||||
run_config_sub()
|
run_config_sub()
|
||||||
{
|
{
|
||||||
rc=0
|
rc=0
|
||||||
while read -r alias canonical ; do
|
while read -r alias canonical ; do
|
||||||
output=$(../config.sub "$alias")
|
output=$(sh -eu ../config.sub "$alias")
|
||||||
if test "$output" != "$canonical" ; then
|
if test "$output" != "$canonical" ; then
|
||||||
echo "FAIL: $alias -> $output, but expected $canonical"
|
echo "FAIL: $alias -> $output, but expected $canonical"
|
||||||
rc=1
|
rc=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user