aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser')
-rw-r--r--bruiser/bruiser.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/bruiser/bruiser.h b/bruiser/bruiser.h
index cf47924..a3c9594 100644
--- a/bruiser/bruiser.h
+++ b/bruiser/bruiser.h
@@ -77,6 +77,8 @@ namespace bruiser
#define SHELL_HISTORY_SIZE 100
#define SHELL_HISTORY_FILE "bruiser-history.txt"
+#define GLOBAL_TIME_OUT 100000
+
#define NOT_IMPLEMENTED \
do{\
printf(BROWN "not implemented yet.");\
@@ -116,27 +118,29 @@ struct help
};
help CMDHelp[] = {
- {"help()", "", "display general help", "none", "none"},
- {"quit()", "", "quit bruiser", "none", "none"},
- {"exit()", "", "quit bruiser", "none", "none"},
- {"m0()", "", "bruiser reads the report generated by mutator-lvl0", "", ""},
+ {"help()", "help()", "display general help", "none", "none"},
+ {"quit()", "quit()", "quit bruiser", "none", "none"},
+ {"exit()", "exit()", "quit bruiser", "none", "none"},
+ {"m0()", "m0()", "bruiser reads the report generated by mutator-lvl0", "", ""},
{"readxmlfile()", "readxmlfile(\"myxml.xml\")", "bruiser reads the specified xml file, if no argument is provided bruiser tries to read the m0 report at the default location", "", "tinyxml2::XMLError"},
- {"hijackmain()", "", "runs a specific matcher that replaces the main with a new main", "none", "returns the rewritten source code as a string"},
- {"clear()", "", "clears the terminal", "", ""},
- {"history()", "", "prints bruiser's history", "", ""},
- {"!", "", "prints the command from history", "", ""},
+ {"hijackmain()", "hijackmain()", "runs a specific matcher that replaces the main with a new main", "none", "returns the rewritten source code as a string"},
+ {"clear()", "clear()", "clears the terminal", "", "none"},
+ {"history()", "", "prints bruiser's history", "", "none"},
+ {"!", "", "prints the command from history", "", "none"},
{"Vars()", "", "lists all available variable declarations", "none", "returns a string array of the variable declarations"},
{"Funcs()", "", "lists all available function declarations", "none", "returns a string array of the function declarations"},
{"Classess()", "", "lists all available class declarations", "none", "returns a string array of the class declarations"},
- {"Structs()", "", "lists all available struct declarations", "none", "returns a string array of the structur declarations"},
+ {"Structs()", "", "lists all available struct declarations", "none", "returns a string array of the structure declarations"},
{"Arrays()", "", "lists all available array declarations", "none", "returns a string array of the array declarations"},
{"Unions()", "", "lists all available union declarations", "none", "returns a string array of the union declarations"},
{"make()", "make(\"all\")", "runs your make command", "", ""},
- {"historysize()", "historysize(200)", "sets the history size", "[uint history_size]", ""},
+ {"historysize()", "historysize(200)", "sets the history size", "[uint history_size]", "none"},
{"showsource()", "showsource(1,5,\"test.cpp\")", "shows the source code for the given range and filename", "[uint beginline, uint endline, string filename]", "returns a string array of the returned source file"},
{"extractmutagen()", "extractmutagen(\"test.cpp\")", "runs m0 on the source(s)", "[string]", "pid"},
{"strainrecognition()", "", "", "", ""},
- {"setmakepath()", "setmakepath(\"../../myproject\")", "tells bruiser where to execute the make command run from make()", "string", "child pid"}
+ {"setmakepath()", "setmakepath(\"../../myproject\")", "tells bruiser where to execute the make command run from make()", "string", "none"},
+ {"run()", "run(\"myexecutable\")", "runs the mutant", "string", "return value"},
+ {"setbinpath()", "setbinpath(\"bin_path\")", "sets the binary path for mutant executable", "string", "none"}
};
/**********************************************************************************************************************/
/**