Ignore:
Timestamp:
Sep 8, 2016, 12:45:43 PM (3 years ago)
Author:
cameron
Message:

Test for empty regexp

Location:
icGREP/icgrep-devel/QA
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/QA/greptest.xml

    r5146 r5148  
    373373<grepcase regexp="^$" datafile="CRLF" grepcount="1"/>
    374374<grepcase regexp="^.*$" datafile="CRLF" grepcount="4"/>
     375<grepcase regexp="" datafile="CRLF" grepcount="4"/>
    375376
    376377 <datafile id = "LU_test">
  • icGREP/icgrep-devel/QA/system-tests/RunSystemTests

    r5041 r5148  
    135135
    136136        # Generate the valid output using the "correct" GNU grep program.
    137         validOutputFile="ExpectedOutputFiles/ValidOutputNum_$((TEST_NUM/NumOfParametersPerTest)).txt"
     137        validOutputFile="ExpectedOutputFiles/OutputNum_$((TEST_NUM/NumOfParametersPerTest)).txt"
    138138        if [ "${Tests[$((TEST_NUM+2))]}" == "" ]; then
    139139                touch $validOutputFile                  # GNU grep goes into interactive mode if no file are provided. So just make an empty valid file.
     
    143143
    144144        # Create the icGrep output file.
    145         outputFile="OutputFiles/TestOutputNum_$((TEST_NUM/NumOfParametersPerTest)).txt"
     145        outputFile="OutputFiles/OutputNum_$((TEST_NUM/NumOfParametersPerTest)).txt"
    146146        $1 ${Tests[$TEST_NUM]} "${Tests[$((TEST_NUM+1))]}" ${Tests[$((TEST_NUM+2))]} > $outputFile
    147147
Note: See TracChangeset for help on using the changeset viewer.