Mercurial > hg
comparison tests/test-check-code @ 10727:62b8f15683f2
check-code: more tests and more robust python filtering
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 18 Mar 2010 16:32:03 +0100 |
parents | c4fb2103e734 |
children | 920a783e5f91 |
comparison
equal
deleted
inserted
replaced
10726:bedef1c228d3 | 10727:62b8f15683f2 |
---|---|
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 | 15 cat > quote.py <<EOF |
16 # let's use quote in comments | |
16 (''' ( 4x5 ) | 17 (''' ( 4x5 ) |
17 but """\''' and finally''', | 18 but """\\''' and finally''', |
18 """let's fool checkpatch""", '1+2', | 19 """let's fool checkpatch""", '1+2', |
19 '"""', 42+1, """and | 20 '"""', 42+1, """and |
20 ( 4-1 ) """, "( 1+1 )\" and ") | 21 ( 4-1 ) """, "( 1+1 )\" and ") |
22 a, '\\\\\\\\', "\\\\\\" x-2", "c-1" | |
21 EOF | 23 EOF |
22 | 24 |
23 check_code=`dirname $0`/../contrib/check-code.py | 25 check_code=`dirname $0`/../contrib/check-code.py |
24 ${check_code} ./wrong.py ./correct.py ./quote.py | 26 ${check_code} ./wrong.py ./correct.py ./quote.py |