Skip to content

Commit

Permalink
Updated orthrus show to fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhargava Shastry committed Oct 12, 2017
1 parent 02119d7 commit d4f7fd3
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions orthrus/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,16 +1002,33 @@ def show_conf(self):
for idx, routine in enumerate(self.routine_list):
util.color_print(util.bcolors.BOLD + util.bcolors.HEADER, "Configured routine jobs:")
util.color_print(util.bcolors.OKBLUE, "\t" + str(idx) + ") [" + routine['id'] + "] " +
routine['target'] + " " + routine['params'])
routine['target'] + " " + routine['params'] +
"\n\tNum. cores: {}".format(routine['num_cores']))
util.color_print(util.bcolors.OKBLUE, "\t" + '-' * 10)
util.color_print(util.bcolors.OKBLUE, "\t" + "Fuzzer: {}\n"
"\tFuzzer args: {}\n"
"\tSeeds dir: {}\n"
"\tQEMU: {}".
format(routine['fuzzers'], routine['fuzzer_args'],
routine['seed_dirs'], routine['qemus'])
)
util.color_print(util.bcolors.OKBLUE, "\t" + '-' * 10)
for idx, abtest in enumerate(self.abtest_list):
util.color_print(util.bcolors.BOLD + util.bcolors.HEADER, "Configured multivariate tests:")
util.color_print(util.bcolors.OKBLUE, "\t" + str(idx) + ") [" + abtest['id'] + "] " +
abtest['target'] + " " + abtest['params'] +
"\n\tNum_cores: {}".format(abtest['num_cores']))
for i in range(0, abtest['num_jobs']):
alp_idx = string.ascii_uppercase[i]
util.color_print(util.bcolors.OKBLUE, "\t" + str(idx) + ") [" + abtest['id'] + "] " +
abtest['target'] + " " + abtest['params'])
util.color_print(util.bcolors.OKBLUE, "\t" + '-' * 10)
util.color_print(util.bcolors.OKBLUE, "\t" + "Config {} [{}]".format(i, abtest['jobids'][i]))
util.color_print(util.bcolors.OKBLUE, "\t" + "Fuzzer {}: {}\t Fuzzer A args: {}".
format(alp_idx, abtest['fuzzers'][i],abtest['fuzzer_args'][i]))
util.color_print(util.bcolors.OKBLUE, "\t" + "Fuzzer {}: {}\n"
"\tFuzzer args: {}\n"
"\tSeeds dir: {}\n"
"\tQEMU: {}"
.format(alp_idx, abtest['fuzzers'][i],abtest['fuzzer_args'][i], abtest['seed_dirs'][i],
abtest['qemus'][i]))
util.color_print(util.bcolors.OKBLUE, "\t" + '-' * 10)
return True

def show_cov(self):
Expand Down

0 comments on commit d4f7fd3

Please sign in to comment.