Changeset 3623 for trunk/psModules/test/FullUnitTest
- Timestamp:
- Apr 1, 2005, 10:11:19 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/FullUnitTest (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/FullUnitTest
r2140 r3623 19 19 # RETURN : integer number of tests which failed 20 20 # 21 # $Revision: 1. 1$ $Name: not supported by cvs2svn $22 # $Date: 200 4-10-14 23:58:56$21 # $Revision: 1.2 $ $Name: not supported by cvs2svn $ 22 # $Date: 2005-04-01 20:11:19 $ 23 23 # 24 24 # Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 use Cwd; 30 30 31 # Provides functions for handling longcommand line options31 # Provides functions for handling psS64 command line options 32 32 use Getopt::Long; 33 33 … … 61 61 # add PSLIB_ROOT/lib to LD_LIBRARY_PATH and DYLD_LIBRARY_PATH environment 62 62 # variables 63 $ENV{'LD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/ lib:$ENV{'LD_LIBRARY_PATH'}";64 $ENV{'DYLD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/ lib:$ENV{'DYLD_LIBRARY_PATH'}";63 $ENV{'LD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/src/.libs:$ENV{'LD_LIBRARY_PATH'}"; 64 $ENV{'DYLD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/src/.libs:$ENV{'DYLD_LIBRARY_PATH'}"; 65 65 66 66 # Initialize variables for counting the makes and test failures and the … … 239 239 `make clean`; 240 240 241 # Execute the make distclean242 `make distclean`;243 241 } 244 242 245 243 # Execute the make and save results 246 $_ = join( "\n|| ", split( "\n", "\n" . `make ` ) );244 $_ = join( "\n|| ", split( "\n", "\n" . `make tests` ) ); 247 245 248 246 # Check the output of make for return value != 0 or any of the 249 247 # following words: FAILED, FAULT, ERROR, Not found, SIGNAL 250 if ( ( $? != 0 ) 251 || m/FAILED/i 252 || m/FAULT/i 253 || m/\bERROR/i 254 || m/Not found/i 255 || m/SIGNAL/i ) 256 { 248 if ( $? != 0 ) { 257 249 258 250 # Display the errored output of make if silent option not enabled … … 276 268 # Display the make was successful if silent option not set 277 269 print("\nMake successful.\n") if ( !$silent ); 278 if ($clean) {279 `make install`;280 }281 270 } 282 271 } … … 664 653 s/$hostname\s*/<HOST>/g; 665 654 s/: Line \d+/: Line <LINENO>/g; 666 s/\:\d+/\:<LINENO>/g; 655 s/\(.*\:\d+\)/\(FILE\:LINENO\)/g; 656 s/\s+[\_\-\/\.\w]+\:\d+/ FILE\:LINENO/g; 667 657 s/allocate \d+ bytes at/allocate <N> bytes at/g; 658 s/v\d+.\d+.\d+/vX.X.X/g; 668 659 669 660 # Filter lines with *** malloc. This is an artifact of Mac testing of … … 692 683 s/$hostname\s*/<HOST>/g; 693 684 s/: Line \d+/: Line <LINENO>/g; 694 s/\:\d+/\:<LINENO>/g; 685 s/\(.*\:\d+\)/\(FILE\:LINENO\)/g; 686 s/\s+[\_\-\/\.\w]+\:\d+/ FILE\:LINENO/g; 695 687 s/allocate \d+ bytes at/allocate <N> bytes at/g; 688 s/v\d+.\d+.\d+/vX.X.X/g; 696 689 697 690 # Filter lines with *** malloc. This is an artifact of Mac testing of
Note:
See TracChangeset
for help on using the changeset viewer.
