IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 1, 2005, 10:11:19 AM (21 years ago)
Author:
desonia
Message:

updated the testing platform to match psLib, enabling the use of 'make check'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/FullUnitTest

    r2140 r3623  
    1919#  RETURN : integer number of tests which failed
    2020#
    21 #  $Revision: 1.1 $  $Name: not supported by cvs2svn $
    22 #  $Date: 2004-10-14 23:58:56 $
     21#  $Revision: 1.2 $  $Name: not supported by cvs2svn $
     22#  $Date: 2005-04-01 20:11:19 $
    2323#
    2424#  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2929use Cwd;
    3030
    31 # Provides functions for handling long command line options
     31# Provides functions for handling psS64 command line options
    3232use Getopt::Long;
    3333
     
    6161# add PSLIB_ROOT/lib to LD_LIBRARY_PATH and DYLD_LIBRARY_PATH environment
    6262# 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'}";
    6565
    6666# Initialize variables for counting the makes and test failures and the
     
    239239            `make clean`;
    240240
    241             # Execute the make distclean
    242             `make distclean`;
    243241        }
    244242
    245243        # Execute the make and save results
    246         $_ = join( "\n|| ", split( "\n", "\n" . `make` ) );
     244        $_ = join( "\n|| ", split( "\n", "\n" . `make tests` ) );
    247245
    248246        # Check the output of make for return value != 0 or any of the
    249247        # 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 ) {
    257249
    258250            # Display the errored output of make if silent option not enabled
     
    276268            # Display the make was successful if silent option not set
    277269            print("\nMake successful.\n") if ( !$silent );
    278             if ($clean) {
    279                 `make install`;
    280             }
    281270        }
    282271    }
     
    664653        s/$hostname\s*/<HOST>/g;
    665654        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;
    667657        s/allocate \d+ bytes at/allocate <N> bytes at/g;
     658        s/v\d+.\d+.\d+/vX.X.X/g;
    668659
    669660        # Filter lines with *** malloc.  This is an artifact of Mac testing of
     
    692683        s/$hostname\s*/<HOST>/g;
    693684        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;
    695687        s/allocate \d+ bytes at/allocate <N> bytes at/g;
     688        s/v\d+.\d+.\d+/vX.X.X/g;
    696689
    697690        # Filter lines with *** malloc.  This is an artifact of Mac testing of
Note: See TracChangeset for help on using the changeset viewer.