IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 4, 2005, 12:49:39 PM (21 years ago)
Author:
desonia
Message:

general autoconf cleanup.

Location:
trunk/psLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib

    • Property svn:ignore
      •  

        old new  
         1DoxygenLog
        12bin
        23lib
  • trunk/psLib/test/runTest

    r3115 r3127  
    2828#
    2929#  $Revison:  $  $Name: not supported by cvs2svn $
    30 #  $Date: 2005-02-03 00:54:12 $
     30#  $Date: 2005-02-04 22:49:37 $
    3131#
    3232#  Copyright 2004 Maui High Performance Computering Center, University of Hawaii
     
    3636# Provides functions for handling psS64 command line options
    3737use Getopt::Long;
     38
     39$verifiedDir = "verified";
    3840
    3941# Assign variables based on the presence of command line options to the script
     
    4244    "resetStderr!" => \$resetStderr,
    4345    "resetStdout!" => \$resetStdout,
     46    "verified=s"   => \$verifiedDir,
    4447    "help!"        => \$help
    4548);
     
    8386
    8487    # Check if a verified directory exists in the current work directory
    85     if ( !( -e "verified" ) ) {
     88    if ( !( -e $verifiedDir ) ) {
    8689
    8790        # Display message that verified subdirectory doesn't exist
     
    133136            # Open mod file to place filtered STDOUT
    134137            open( MODFILE,  "> temp/$testFile.stdout.mod" );
    135             open( MODFILE2, "> verified/$testFile.stdout" ) if $resetStdout;
     138            open( MODFILE2, "> $verifiedDir/$testFile.stdout" ) if $resetStdout;
    136139
    137140           # Replace the variable date, time and host information with constants
     
    143146                s/$hostname\s*/<HOST>/g;
    144147                s/: Line \d+/: Line <LINENO>/g;
    145                 s/\:\d+/\:<LINENO>/g;
     148                s/\(.*\:\d+\)/\(FILE\:LINENO\)/g;
    146149                s/allocate \d+ bytes at/allocate <N> bytes at/g;
    147150
     
    166169            # Open mod file to place filtered STDERR
    167170            open( MODFILE,  "> temp/$testFile.stderr.mod" );
    168             open( MODFILE2, "> verified/$testFile.stderr" ) if $resetStderr;
     171            open( MODFILE2, "> $verifiedDir/$testFile.stderr" ) if $resetStderr;
    169172
    170173           # Replace the variable date, time and host information with constants
     
    174177                s/$hostname\s*/<HOST>/g;
    175178                s/: Line \d+/: Line <LINENO>/g;
    176                 s/\:\d+/\:<LINENO>/g;
     179                s/\(.*\:\d+\)/\(FILE\:LINENO\)/g;
    177180                s/allocate \d+ bytes at/allocate <N> bytes at/g;
    178181
     
    193196
    194197            # Compare STDOUT capture with verified file
    195             $exitValue |= &compareStream("verified/$testFile.stdout");
     198            $exitValue |= &compareStream("$verifiedDir/$testFile.stdout");
    196199
    197200            # Check exit value to determine if verified file doesn't exist
     
    204207
    205208            # Compare STDERR capture with verified file
    206             $exitValue |= &compareStream("verified/$testFile.stderr");
     209            $exitValue |= &compareStream("$verifiedDir/$testFile.stderr");
    207210
    208211            # Check exit value to determine if verified file doesn't exist
     
    330333        # Create name of the temp file to compare
    331334        $tempFile = $streamFile;
    332         $tempFile =~ s/verified/temp/;
     335        $tempFile =~ s/$verifiedDir/temp/;
    333336        $tempFile = $tempFile . ".mod";
    334337
Note: See TracChangeset for help on using the changeset viewer.