tests/test-check-code
changeset 10722 c4fb2103e734
parent 10715 83dce0f817f4
child 10727 62b8f15683f2
equal deleted inserted replaced
10721:67ba66070aee 10722:c4fb2103e734
    10 def toto( arg1, arg2):
    10 def toto( arg1, arg2):
    11     del(arg2)
    11     del(arg2)
    12     return ( 5+6, 9)
    12     return ( 5+6, 9)
    13 EOF
    13 EOF
    14 
    14 
       
    15 cat > quote.py <<EOF
       
    16 (''' ( 4x5 )
       
    17 but """\''' and finally''',
       
    18 """let's fool checkpatch""", '1+2',
       
    19 '"""', 42+1, """and
       
    20 ( 4-1 ) """, "( 1+1 )\" and ")
       
    21 EOF
       
    22 
    15 check_code=`dirname $0`/../contrib/check-code.py
    23 check_code=`dirname $0`/../contrib/check-code.py
    16 ${check_code} ./wrong.py ./correct.py
    24 ${check_code} ./wrong.py ./correct.py ./quote.py