18 Commits

Author SHA1 Message Date
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