diff options
author | Paul Smith <psmith@gnu.org> | 2019-10-05 14:26:52 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2019-10-05 17:47:52 -0400 |
commit | 393d2a2d4a250d293945b65f017668336a75383f (patch) | |
tree | b24afe89db2fadfc909f9327f71f265dd4db7029 /tests/run_make_tests.pl | |
parent | bd7d03f8cd24511824cb2a6003007052555cc42f (diff) | |
download | make-git-393d2a2d4a250d293945b65f017668336a75383f.tar.gz |
tests: Convert %CONFIG_FLAGS to get_config()
* tests/config-flags.pm.W32: Create a predefined Windows file.
* Makefile.am (test_FILES): Add it to the distribution.
* build_w32.bat: Install tests/config-flags.pm if not existing.
* tests/run_make_tests.pl (get_config): Create new function.
* tests/scripts/features/archives: Call get_config() rather than
using %CONFIG_FLAGS directly.
* tests/scripts/features/load: Ditto.
* tests/scripts/features/loadapi: Ditto.
* tests/scripts/functions/wildcard: Ditto.
Diffstat (limited to 'tests/run_make_tests.pl')
-rw-r--r-- | tests/run_make_tests.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl index a7a55558..16a0e3ff 100644 --- a/tests/run_make_tests.pl +++ b/tests/run_make_tests.pl @@ -483,10 +483,14 @@ sub find_prog return ($v, $d, $f); } +sub get_config +{ + return exists($CONFIG_FLAGS{$_[0]}) ? $CONFIG_FLAGS{$_[0]} : ''; +} + sub set_more_defaults { - local($string); - local($index); + my $string; # Now that we have located make_path, locate the srcdir and blddir my ($mpv, $mpd, $mpf) = find_prog($make_path); |