IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 2, 2005, 2:54:13 PM (21 years ago)
Author:
desonia
Message:

Added SWIG and autoconf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/runTest

    r2729 r3115  
    1818#                 0    Test run successfull and all tests passed
    1919#                 1    Verified directory did not exist
    20 #                 2    Verified STDOUT file did not exist
    21 #                 4    Verified STDERR file did not exist
    2220#                 8    STDOUT files did not compare
    2321#                16    STDERR files did not compare
     
    3028#
    3129#  $Revison:  $  $Name: not supported by cvs2svn $
    32 #  $Date: 2004-12-16 21:32:39 $
     30#  $Date: 2005-02-03 00:54:12 $
    3331#
    3432#  Copyright 2004 Maui High Performance Computering Center, University of Hawaii
     
    6260
    6361# Set up the PSLIB_ROOT environment variable if the user doesn't have it set
    64 if ( !$ENV{'PSLIB_ROOT'} ) {
    65 
    66     # Use the directory directly above test
    67     $PSLIB_ROOT = `cd ..;pwd`;
    68 
    69     # Remove newline for the end of path returned
    70     chomp($PSLIB_ROOT);
    71 
    72     # Set the environment variable
    73     $ENV{'PSLIB_ROOT'} = $PSLIB_ROOT;
    74 
    75     # Display message that PSLIB_ROOT not found and set to
    76     print("PSLIB_ROOT not found: set to $PSLIB_ROOT\n");
    77 }
    78 
    79 # Add PSLIB_ROOT/lib to LD_LIBRARY_PATH and DYLD_LIBRARY_PATH environment vars
    80 $ENV{'LD_LIBRARY_PATH'}   = "$ENV{'PSLIB_ROOT'}/lib:$ENV{'LD_LIBRARY_PATH'}";
    81 $ENV{'DYLD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/lib:$ENV{'DYLD_LIBRARY_PATH'}";
     62if ( $ENV{'PSLIB_ROOT'} ) {
     63
     64        # Add PSLIB_ROOT/lib to LD_LIBRARY_PATH and DYLD_LIBRARY_PATH environment vars
     65        $ENV{'LD_LIBRARY_PATH'}   = "$ENV{'PSLIB_ROOT'}/lib:$ENV{'LD_LIBRARY_PATH'}";
     66        $ENV{'DYLD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/lib:$ENV{'DYLD_LIBRARY_PATH'}";
     67}
    8268
    8369# Loop through the arguements passed to the script
     
    337323        # Display message to user that verified STDOUT file doesn't exist
    338324        print("        File $streamFile doesn't exist.\n");
    339 
    340         # Set exit value bit 1 to indicate proper failure
    341         if ( $streamFile =~ /out$/ ) {
    342             $returnVal |= 2;
    343         }
    344         elsif ( $streamFile =~ /err$/ ) {
    345             $returnVal |= 4;
    346         }
    347325    }
    348326    else {
Note: See TracChangeset for help on using the changeset viewer.