def main():
    arguments = get_arguments()
    imports = {
        sniffer: import_module(f'{sniffer}.run_test')
        for sniffer in set(arguments[0])
    }

    for sniffer in arguments[0]:
        print('#' * 30)
        print(f'RUNNING SNIFFER: {sniffer}\t{datetime.now()}')
        print('#' * 30)
        os.chdir(sniffer)
        ccbench.runBash('make clean; make;')
        imports[sniffer].main([f'-c{arguments[1]}'], arguments[2])
        ccbench.runBash('make clean;')
        os.chdir('..')

    print('*' * 15, 'FINISHED', '*' * 15)
Beispiel #2
0
def runBenchmark(processor, app_bin, app_args, report_filename):
    
    if (processor == "spike"):
        cmd = "spike pk "
    else:
        cmd = "emulator +dramsim pk " 

    print cmd + app_bin + " " + app_args + " >> " + report_filename
    value = ccbench.runBash(cmd + app_bin + " " + app_args + " >> " + report_filename)
    if value != "": print value
Beispiel #3
0
def runBenchmark(processor, app_bin, app_args, report_filename):

    if (processor == "spike"):
        cmd = "spike pk "
    else:
        cmd = "emulator +dramsim pk "

    print cmd + app_bin + " " + app_args + " >> " + report_filename
    value = ccbench.runBash(cmd + app_bin + " " + app_args + " >> " +
                            report_filename)
    if value != "": print value
Beispiel #4
0
def runBenchmark(processor, app_bin, app_args, report_filename):
    print "" + app_bin + " " + app_args + " >> " + report_filename
    value = ccbench.runBash("" + app_bin + " " + app_args + " >> " + report_filename)
    if value != "": print value
Beispiel #5
0
def runBenchmark(processor, app_bin, app_args, report_filename):
    print "" + app_bin + " " + app_args + " >> " + report_filename
    value = ccbench.runBash("" + app_bin + " " + app_args + " >> " +
                            report_filename)
    if value != "": print value