|
Gaudi Framework, version v23r4 |
| Home | Generated: Mon Sep 17 2012 |
Functions | |
| def | _test_package |
| def | test_version |
| def | test_library |
| def | test_macro |
| def test_cmt_parser::_test_package | ( | ) | [private] |
Definition at line 4 of file test_cmt_parser.py.
| def test_cmt_parser::test_library | ( | ) |
Definition at line 12 of file test_cmt_parser.py.
00013 : 00014 statement = 'library GaudiKernelLib *.cpp -no_static -import=Boost' 00015 tokens = list(CMTParser.parseString(statement)) 00016 print tokens 00017 assert tokens == ['library', 'GaudiKernelLib', '*.cpp', '-no_static', '-import=Boost'] 00018 00019 statement = 'library TestLib test/lib/*.cpp a_variable=some_value -group=tests' 00020 tokens = list(CMTParser.parseString(statement)) 00021 print tokens 00022 assert tokens == ['library', 'TestLib', 'test/lib/*.cpp', 'a_variable=some_value', '-group=tests']
| def test_cmt_parser::test_macro | ( | ) |
Definition at line 23 of file test_cmt_parser.py.
00024 : 00025 s = 'macro_append ROOT_linkopts "some" WIN32 "other"' 00026 tokens = list(CMTParser.parseString(s)) 00027 print tokens 00028 assert tokens == ['macro_append', 'ROOT_linkopts', '"some"', 'WIN32', '"other"'] 00029 00030 s = 'macro a_var "value"' 00031 tokens = list(CMTParser.parseString(s)) 00032 print tokens 00033 assert tokens == ['macro', 'a_var', '"value"'] 00034 00035 s = 'macro a_var' 00036 try: 00037 tokens = list(CMTParser.parseString(s)) 00038 assert False, 'parsing should have failed: %r' % s 00039 except ParseException: 00040 pass
| def test_cmt_parser::test_version | ( | ) |
Definition at line 8 of file test_cmt_parser.py.