Changeset 5942 for icGREP


Ignore:
Timestamp:
Apr 5, 2018, 11:54:47 AM (12 months ago)
Author:
cameron
Message:

Test case for single unterminated 6KB line

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

Legend:

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

    r5826 r5942  
    7878                datafile = None
    7979                expected_count = None
    80                 extra_flags = None
     80                flags = None
    8181                for a in attrs:
    8282                        if a == 'regexp':
     
    8787                                expected_count = attrs[a]
    8888                        elif a == 'flags':
    89                                 extra_flags = attrs[a]
     89                                flags = attrs[a]
    9090                if regexp == None or datafile == None or expected_count == None:
    9191                        print("Bad grepcase: missing regexp and/or datafile attributes.")
    9292                        return
     93                if flags == None: flags = "-c" # Our default is counting if flags not set explicitly
    9394                #execute grep test
    94                 flags = "-c"
    95                 if extra_flags != None:
    96                     flags += " " + extra_flags
    9795                grep_cmd = "%s %s '%s' %s" % (grep_program_under_test, flags, escape_quotes(regexp), os.path.join(options.datafile_dir, datafile))
    9896                if options.verbose:
  • icGREP/icgrep-devel/QA/greptest.xml

    r5900 r5942  
    371371</datafile>
    372372
    373 <grepcase regexp="^$" datafile="CRLF" flags="-Unicode-lines" grepcount="1"/>
    374 <grepcase regexp="^$" datafile="CRLF" flags="-v -Unicode-lines" grepcount="3"/>
    375 <grepcase regexp="^.*$" datafile="CRLF" flags="-Unicode-lines" grepcount="4"/>
    376 <grepcase regexp="" datafile="CRLF" flags="-Unicode-lines" grepcount="4"/>
     373<grepcase regexp="^$" datafile="CRLF" flags="-c -Unicode-lines" grepcount="1"/>
     374<grepcase regexp="^$" datafile="CRLF" flags="-c -v -Unicode-lines" grepcount="3"/>
     375<grepcase regexp="^.*$" datafile="CRLF" flags="-c -Unicode-lines" grepcount="4"/>
     376<grepcase regexp="" datafile="CRLF" flags="-c -Unicode-lines" grepcount="4"/>
    377377
    378378 <datafile id = "LU_test">
     
    474474<grepcase regexp="[f-h]{5}" datafile="bounded_charclass" grepcount="3"/>
    475475<grepcase regexp="[a-z]{5}" datafile="bounded_charclass" grepcount="22"/>
    476 <grepcase regexp="[a-z]{5}" datafile="bounded_charclass" flags="-enable-pablo-s2p" grepcount="22"/>
     476<grepcase regexp="[a-z]{5}" datafile="bounded_charclass" flags="-c -enable-pablo-s2p" grepcount="22"/>
    477477<grepcase regexp="[a-z]{5,15}" datafile="bounded_charclass" grepcount="22"/>
    478478<grepcase regexp="=[a-z]{7,}" datafile="bounded_charclass" grepcount="20"/>
     
    491491<grepcase regexp="=[0-9]{50,};" datafile="bounded_charclass" grepcount="9"/>
    492492<grepcase regexp="=[0-9]{107,};" datafile="bounded_charclass" grepcount="8"/>
    493 <grepcase regexp="=[0-9]{107,};" datafile="bounded_charclass" flags="-m=5" grepcount="5"/>
     493<grepcase regexp="=[0-9]{107,};" datafile="bounded_charclass" flags="-c -m=5" grepcount="5"/>
    494494<grepcase regexp="=0123[0-9]{107,};" datafile="bounded_charclass" grepcount="7"/>
    495495<grepcase regexp="=[0-9]{299,};" datafile="bounded_charclass" grepcount="2"/>
     
    517517<grepcase regexp="[]]" datafile="special_characters" grepcount="9"/>
    518518<grepcase regexp="[-]" datafile="special_characters" grepcount="8"/>
    519 <grepcase regexp="[-]" datafile="special_characters" flags="-m=4" grepcount="4"/>
     519<grepcase regexp="[-]" datafile="special_characters" flags="-c -m=4" grepcount="4"/>
    520520<grepcase regexp="[]^-]" datafile="special_characters" grepcount="14"/>
    521521<grepcase regexp="[\-\]\^]" datafile="special_characters" grepcount="14"/>
     
    584584Unterminated</datafile>
    585585
    586 <grepcase regexp="^.*$" datafile="LineBreaking" flags="-Unicode-lines" grepcount="19"/>
    587 <grepcase regexp="^\X*$" datafile="LineBreaking" flags="-Unicode-lines" grepcount="19"/>
    588 <grepcase regexp="(?g)^.*$" datafile="LineBreaking" flags="-Unicode-lines" grepcount="19"/>
    589 <grepcase regexp="Unterminated$" datafile="LineBreaking" flags="-Unicode-lines" grepcount="1"/>
    590 <grepcase regexp="^CRLF.$" datafile="LineBreaking" flags="-Unicode-lines" grepcount="5"/>
    591 <grepcase regexp="LS[0-9]*" datafile="LineBreaking" flags="-Unicode-lines" grepcount="6"/>
    592 <grepcase regexp="PS" datafile="LineBreaking" flags="-Unicode-lines" grepcount="4"/>
    593 <grepcase regexp="\S" datafile="LineBreaking" flags="-Unicode-lines" grepcount="16"/>
    594 <grepcase regexp="$" datafile="LineBreaking" flags="-Unicode-lines" grepcount="19"/>
     586<grepcase regexp="^.*$" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="19"/>
     587<grepcase regexp="^\X*$" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="19"/>
     588<grepcase regexp="(?g)^.*$" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="19"/>
     589<grepcase regexp="Unterminated$" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="1"/>
     590<grepcase regexp="^CRLF.$" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="5"/>
     591<grepcase regexp="LS[0-9]*" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="6"/>
     592<grepcase regexp="PS" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="4"/>
     593<grepcase regexp="\S" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="16"/>
     594<grepcase regexp="$" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="19"/>
    595595<grepcase regexp="$" datafile="LineBreaking" grepcount="9"/>
    596 <grepcase regexp="\p{ascii}" datafile="LineBreaking" flags="-Unicode-lines" grepcount="16"/>
     596<grepcase regexp="\p{ascii}" datafile="LineBreaking" flags="-c -Unicode-lines" grepcount="16"/>
    597597
    598598<grepcase regexp="[a-z]{20}" datafile="4KiB-onepage" grepcount="77"/>
     
    817817</datafile>
    818818
    819 <grepcase regexp="^\X$" datafile="graphemebreaktest" flags="-Unicode-lines" grepcount="55"/>
     819<grepcase regexp="^\X$" datafile="graphemebreaktest" flags="-c -Unicode-lines" grepcount="55"/>
    820820<!--<grepcase regexp="^\X\X$" datafile="graphemebreaktest" grepcount="153"/>
    821821<grepcase regexp="^\X{3}$" datafile="graphemebreaktest" grepcount="2"/>-->
     
    854854<grepcase regexp="(?:\p{greek}\p{greek}\p{greek})" datafile="upper_lower_greek" grepcount="3"/>
    855855
    856 <grepcase regexp="\p{name=/AIRPLANE/}" datafile="../All_good" flags="-enable-object-cache=0 -enable-segment-pipeline-parallel" grepcount="8"/>
    857 <grepcase regexp="\xc4[\x80-\x85]" datafile="../All_good" flags="-Unicode-lines" grepcount="5"/>
    858 <grepcase regexp="\xc4[\x80-\x85]" datafile="../All_good" flags="-Unicode-lines=0" grepcount="6"/>
     856<grepcase regexp="\p{name=/AIRPLANE/}" datafile="../All_good" flags="-c -enable-object-cache=0 -enable-segment-pipeline-parallel" grepcount="8"/>
     857<grepcase regexp="\xc4[\x80-\x85]" datafile="../All_good" flags="-c -Unicode-lines" grepcount="5"/>
     858<grepcase regexp="\xc4[\x80-\x85]" datafile="../All_good" flags="-c -Unicode-lines=0" grepcount="6"/>
    859859<grepcase regexp="[\N{GREEK CAPITAL LETTER ALPHA}-\N{Greek capital letter UPSILON with DIALYTIKA}]" datafile="../All_good" grepcount="27"/>
     860
     861<datafile id = "Unterminated7">7</datafile>
     862<grepcase regexp="[0-9]" datafile="Unterminated7" flags="" grepcount="7"/>
     863<datafile id="Unterminated6000">123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890</datafile>
     864<grepcase regexp="[0-9]" datafile="Unterminated6000" flags="" grepcount="123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"/>
     865
    860866</greptest>
     867
Note: See TracChangeset for help on using the changeset viewer.