Lines Matching refs:cmds
32 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
33 assert len(cmds) != 0
38 cmds = cdb.getAllCompileCommands()
39 assert len(cmds) == 3
51 for i in range(len(cmds)):
52 assert cmds[i].directory == expected[i]['wd']
53 for arg, exp in zip(cmds[i].arguments, expected[i]['line']):
59 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
60 assert len(cmds) == 1
61 assert cmds[0].directory == '/home/john.doe/MyProject'
64 for arg, exp in zip(cmds[0].arguments, expected):
70 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project2.cpp')
71 assert len(cmds) == 2
80 for i in range(len(cmds)):
81 assert cmds[i].directory == expected[i]['wd']
82 for arg, exp in zip(cmds[i].arguments, expected[i]['line']):
96 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
99 workingdir = cmds[0].directory
104 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
106 cmd0 = cmds[0]
107 del cmds