24 PString command(program +
" __bashcompletionmode=\""+cursorOption+
"\" __bashcompletionmodeprev=\""+prevCursorOption+
"\" prgName " + partialOption);
27 bool b(
phoenix_check(
"checkOptionCompletion cmd("+command+
")", resultCmd, expectedResult));
52 int main(
int argc,
char** argv){
int main(int argc, char **argv)
bool checkOptionCompletion(const PString &program, const PString &partialOption, const PString &prevCursorOption, const PString &cursorOption, const PString &expectedResult)
Check the option completion of a program.
void testCompletion()
Test the completion of the option.
#define phoenix_assert(isOk)
bool phoenix_check(const std::string &testName, const std::string &val, const std::string &reference)
Check two string.
PString phoenix_popen(const PString &command)
Execute the given command and returns the output of this command.