示例#1
0
def test_copyright():
    excluded = [
        'co-g++.h', 'co-gcc.h', 'co-osx-g++.h', 'co-osx-gcc.h', 'co-cl.h',
        'co-cl++.h'
    ]

    rc = main(argv=['--exclude'] + excluded)
    assert rc == 0, 'Found errors'
示例#2
0
def test_copyright():
    excluded = [
        'co-g++.h',
        'co-gcc.h',
        'co-osx-g++.h',
        'co-osx-gcc.h',
        'co-cl.h',
        'co-cl++.h']

    rc = main(argv=['--exclude'] + excluded)
    assert rc == 0, 'Found errors'
示例#3
0
def test_bsd_tabs():
    rc = main(argv=[os.path.join(cases_path, 'bsd_license_tabs')])
    assert rc == 0, 'Found errors'
示例#4
0
def test_bsd_indented():
    rc = main(argv=[os.path.join(cases_path, 'bsd_license_indented')])
    assert rc == 0, 'Found errors'
示例#5
0
def test_bsd_standard():
    rc = main(argv=[os.path.join(cases_path, 'bsd_license')])
    assert rc == 0, 'Found errors'
示例#6
0
def test_boost1_py():
    rc = main(argv=[os.path.join(cases_path, 'boost1/case.py')])
    assert rc == 0, 'Found errors'
示例#7
0
def test_copyright():
    rc = main(argv=['.', '--verbose', '--exclude', 'quaternions.py'])
    assert rc == 0, 'Found errors'
示例#8
0
def test_copyright():
    # Test is called from package root
    rc = main(argv=['.'])
    assert rc == 0, 'Found errors'
示例#9
0
def test_mit_cpp():
    rc = main(argv=[os.path.join(cases_path, 'mit/case2.cpp')])
    assert rc == 0, 'Found errors'
示例#10
0
def test_copyright():
    rc = main(argv=['ament_tools', 'scripts', 'test'])
    assert rc == 0, 'Found errors'
def test_copyright():
    rc = main(argv=[".", "test"])
    assert rc == 0, "Found errors"
示例#12
0
def test_copyright():
    excluded = ['ElementInclude.py']
    rc = main(argv=['--exclude'] + excluded)
    assert rc == 0, 'Found errors'
示例#13
0
def test_copyright():
    rc = main(argv=["ament_clang_format", "test"])
    assert rc == 0, "Found errors"
示例#14
0
def test_copyright():
    rc = main()
    assert rc == 0, 'Found errors'
示例#15
0
def test_3bsd_py():
    rc = main(argv=[os.path.join(cases_path, '3clause_bsd/case.py')])
    assert rc == 0, 'Found errors'
示例#16
0
def test_mit_py():
    rc = main(argv=[os.path.join(cases_path, 'mit/case.py')])
    assert rc == 0, 'Found errors'
示例#17
0
def test_copyright():
    rc = main(argv=['.'])
    assert rc == 0, 'Found errors'
示例#18
0
def test_copyright():
    rc = main(argv=['.', 'test'])
    assert rc == 0, 'Found errors'
示例#19
0
def test_copyright():
    rc = main(argv=['ament_clang_tidy', 'test'])
    assert rc == 0, 'Found errors'
示例#20
0
def test_copyright():
    excluded = ['cpplint.py']
    rc = main(argv=['--exclude'] + excluded)
    assert rc == 0, 'Found errors'
示例#21
0
def test_copyright():
    rc = main(argv=['ament_clang_format', 'test'])
    assert rc == 0, 'Found errors'