##// END OF EJS Templates
convert: display files data retrieval progress
convert: display files data retrieval progress

File last commit:

r10727:62b8f156 default
r11136:ecc8b187 default
Show More
test-check-code
26 lines | 515 B | text/plain | TextLexer
Pierre-Yves David
add a small test for contrib/check-code.py...
r10715 #!/bin/sh
#cd `dirname $0`
cat > correct.py <<EOF
def toto(arg1, arg2):
del arg2
return (5 + 6, 9)
EOF
cat > wrong.py <<EOF
def toto( arg1, arg2):
del(arg2)
return ( 5+6, 9)
EOF
Benoit Boissinot
check-code: improve quote detection regexp, add tests
r10722 cat > quote.py <<EOF
Benoit Boissinot
check-code: more tests and more robust python filtering
r10727 # let's use quote in comments
Benoit Boissinot
check-code: improve quote detection regexp, add tests
r10722 (''' ( 4x5 )
Benoit Boissinot
check-code: more tests and more robust python filtering
r10727 but """\\''' and finally''',
Benoit Boissinot
check-code: improve quote detection regexp, add tests
r10722 """let's fool checkpatch""", '1+2',
'"""', 42+1, """and
( 4-1 ) """, "( 1+1 )\" and ")
Benoit Boissinot
check-code: more tests and more robust python filtering
r10727 a, '\\\\\\\\', "\\\\\\" x-2", "c-1"
Benoit Boissinot
check-code: improve quote detection regexp, add tests
r10722 EOF
Pierre-Yves David
add a small test for contrib/check-code.py...
r10715 check_code=`dirname $0`/../contrib/check-code.py
Benoit Boissinot
check-code: improve quote detection regexp, add tests
r10722 ${check_code} ./wrong.py ./correct.py ./quote.py