(self)
| 63 | |
| 64 | class TestParseFlags: |
| 65 | def test_simple_cflags(self): |
| 66 | d = parse_flags("-I/usr/include") |
| 67 | assert_(d['include_dirs'] == ['/usr/include']) |
| 68 | |
| 69 | d = parse_flags("-I/usr/include -DFOO") |
| 70 | assert_(d['include_dirs'] == ['/usr/include']) |
| 71 | assert_(d['macros'] == ['FOO']) |
| 72 | |
| 73 | d = parse_flags("-I /usr/include -DFOO") |
| 74 | assert_(d['include_dirs'] == ['/usr/include']) |
| 75 | assert_(d['macros'] == ['FOO']) |
| 76 | |
| 77 | def test_simple_lflags(self): |
| 78 | d = parse_flags("-L/usr/lib -lfoo -L/usr/lib -lbar") |
nothing calls this directly
no test coverage detected