Changeset 1989 in kBuild for vendor/gnumake/current/tests/run_make_tests.pl
- Timestamp:
- Oct 28, 2008 11:02:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/tests/run_make_tests.pl
r900 r1989 13 13 14 14 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 15 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.15 # 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. 16 16 # This file is part of GNU Make. 17 17 # 18 # GNU Make is free software; you can redistribute it and/or modify it under the 19 # terms of the GNU General Public License as published by the Free Software 20 # Foundation; either version 2, or (at your option) any later version. 18 # GNU Make is free software; you can redistribute it and/or modify it under 19 # the terms of the GNU General Public License as published by the Free Software 20 # Foundation; either version 3 of the License, or (at your option) any later 21 # version. 21 22 # 22 23 # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY 23 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 24 # A PARTICULAR PURPOSE. See the GNU General Public License for more details. 24 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 25 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 26 # details. 25 27 # 26 28 # You should have received a copy of the GNU General Public License along with 27 # GNU Make; see the file COPYING. If not, write to the Free Software 28 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 29 # this program. If not, see <http://www.gnu.org/licenses/>. 29 30 30 31 $valgrind = 0; # invoke make with valgrind … … 82 83 sub run_make_test 83 84 { 84 local ($makestring, $options, $answer, $err_code ) = @_;85 local ($makestring, $options, $answer, $err_code, $timeout) = @_; 85 86 86 87 # If the user specified a makefile string, create a new makefile to contain … … 121 122 $answer =~ s/#PWD#/$pwd/g; 122 123 123 &run_make_with_options($makefile, $options, &get_logfile(0), $err_code); 124 run_make_with_options($makefile, $options, &get_logfile(0), 125 $err_code, $timeout); 124 126 &compare_output($answer, &get_logfile(1)); 125 127 … … 130 132 # The old-fashioned way... 131 133 sub run_make_with_options { 132 local ($filename,$options,$logname,$expected_code ) = @_;134 local ($filename,$options,$logname,$expected_code,$timeout) = @_; 133 135 local($code); 134 136 local($command) = $make_path; … … 151 153 } 152 154 153 $code = &run_command_with_output($logname,$command); 155 156 { 157 my $old_timeout = $test_timeout; 158 $test_timeout = $timeout if $timeout; 159 160 $code = &run_command_with_output($logname,$command); 161 162 $test_timeout = $old_timeout; 163 } 154 164 155 165 # Check to see if we have Purify errors. If so, keep the logfile.
Note:
See TracChangeset
for help on using the changeset viewer.