28 Commits

Author SHA1 Message Date
Dmitry V. Levin
948ae97ca5 Update copyright years
* config.guess: Update copyright years.
* config.sub: Likewise.
* testsuite/config-guess.sh: Likewise.
* testsuite/config-sub.sh: Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
2024-01-01 20:00:00 +00:00
Dmitry V. Levin
4ce12a5c91 Update copyright years
* config.guess: Update copyright years.
* config.sub: Likewise.
* testsuite/config-guess.sh: Likewise.
* testsuite/config-sub.sh: Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
2023-01-01 08:00:00 +00:00
Dmitry V. Levin
dacec0cff2 Update copyright years
* config.guess: Update copyright years.
* config.sub: Likewise.
* testsuite/config-guess.sh: Likewise.
* testsuite/config-sub.sh: Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
2022-01-01 08:00:00 +00:00
Issam E. Maghni
0b5188819b * config.guess: Replace "if [ EXPR ]" with "if test EXPR".
* config.sub: Likewise.
	* testsuite/config-guess.sh: Likewise.
	* testsuite/config-sub.sh: Likewise.

Signed-off-by: Ben Elliston <bje@gnu.org>
2020-08-17 13:36:41 +10:00
Ben Elliston
f6872aecd5 Revert " * Makefile (check-guess): Don't remove uname here."
This reverts commit f34dacb3462ca1b390e70b090dbeafbdca7ce28a.
2019-03-23 22:09:04 +11:00
Ben Elliston
f34dacb346 * Makefile (check-guess): Don't remove uname here.
* testsuite/config-guess.sh (run_config_guess): Remove dummy uname
	script if the test passes (if not, the script is left behind for
	inspection).
2019-03-23 22:07:56 +11:00
Ben Elliston
286a38db91 This change silences a false positive from Shellcheck:
"Redirecting to/from command name instead of file. Did you want
   pipes/xargs (or quote to ignore)? [SC2238]"

	* testsuite/config-guess.sh (run_config_guess): For clarity, write
	uname replacement to './uname', not 'uname'.
2019-01-20 21:03:48 +11:00
Ben Elliston
d0452dbb43 * testsuite/config-guess.sh (run_config_guess): Set CC_FOR_BUILD
to no_compiler_found so that we don't erroneously use the compiler
	of the host running the testsuite.
	* testsuite/config-guess.data: Adjust ARM FreeBSD expected output.
2019-01-03 11:09:27 +11:00
John Ericson
dbe15d73a8 * testsuite/config-guess.sh: Make 'rc' a local variable.
* testsuite/config-sub.sh: Likewise.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-03 18:03:14 +10:00
John Ericson
f52be464ee * testsuite/config-guess.sh: Re-indent with tabs.
* testsuite/config-sub.sh: Likewise.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-02 21:19:03 +10:00
Ben Elliston
9f9b3d365a * 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.
2018-07-13 22:20:28 +10:00
Ben Elliston
44afabad0c Revert "Fix top of file comments."
This reverts commit ed15654af036a976f82c4503eb81c1a44e55bd3c.
2018-05-23 13:22:23 +10:00
Ben Elliston
ed15654af0 Fix top of file comments. 2018-05-19 19:02:02 +10:00
Ben Elliston
382847f038 * config.guess (set_cc_for_build): Guard against $CC_FOR_BUILD,
$HOST_CC and $CC being undefined by using ${var-} style expansion.
	(*:NetBSD:*:*): Likewise for $abi.
	* testsuite/config-guess.sh: Run config.guess under `sh -eu'.
2018-05-19 18:58:37 +10:00
Ben Elliston
32d5bd9cec * 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 18:34:15 +10:00
Ben Elliston
4e26019d10 * testsuite/config-guess.sh (run_config_guess): Simplify.
* testsuite/config-sub.sh (run_config_sub): Likewise.
2017-10-26 23:10:46 +11:00
Ben Elliston
d07fa31c34 * testsuite/config-guess.sh: Fix issues identified by Shellcheck.
* testsuite/config-sub.sh: Likewise.
2017-10-26 22:31:18 +11:00
Ben Elliston
1fc97122e2 * testsuite/config-guess.sh: Include number of tests in output.
* testsuite/config-sub.sh: Likewise.
2016-06-29 14:09:31 +10:00
Ben Elliston
1dfdef2268 * testsuite/config-guess.sh: Read an additional column from the
data file giving a value for 'uname -p'.  In most cases, this can
	be the string 'ignored'.
	* testsuite/config-guess.data: Add uname -p value for each entry.
2015-02-20 22:48:48 +11:00
Basil Peace
fe3de097e8 * testsuite/config-guess.sh: Insert a shebang for /bin/sh into the
generated uname script.

Signed-off-by: Ben Elliston <bje@gnu.org>
2013-06-08 08:02:12 +10:00
Ben Elliston
73a7864117 * testsuite/config-guess.sh: Don't export PATH. 2012-07-31 13:26:41 +10:00
Ben Elliston
7886f29c82 testsuite/config-guess.sh: Incorporate uname.in as a heredoc.
testsuite/uname.in: Remove.
2012-07-30 12:49:14 +10:00
Ben Elliston
d1f5aa35fa * testsuite/config-guess.sh: Simplify some shell logic.
* testsuite/config-sub.sh: Likewise.
2009-12-16 14:23:10 +11:00
Ben Elliston
284034f777 * testsuite/config-guess.sh (run_config_guess): Do not prefix with
"function" as this is not permitted by POSIX.
	* testsuite/config-sub.sh (run_config_sub): Likewise.
2007-07-25 04:18:42 +00:00
Ben Elliston
f5687ec147 * testsuite/config-sub.sh (run_config_sub): New function. Compute
$rc within the function and return it.
	* testsuite/config-guess.sh (run_config_guess): Likewise.
2005-02-10 03:46:56 +00:00
Ben Elliston
8e1394e15d * testsuite/config-guess.sh: Use , and not / as the sed delimiter. 2004-11-12 02:37:55 +00:00
Ben Elliston
253d9f2c29 * testsuite/config-guess.sh: Reduce recurring tabs into a single
tab, to allow the test data to be better aligned in columns.
2004-10-25 12:23:47 +00:00
Ben Elliston
ddc5f38bef * Makefile (check): Run config-guess.sh tests as well.
* testsuite/config-guess.sh: New test.
	* testsuite/config-guess.data: New file.
	* testsuite/uname.in: Likewise.
	* testsuite/config-sub.data (amd64-unknown-freebsd5.2): New case.
2004-08-22 07:37:36 +00:00