eval.py 549 Bytes
Newer Older
Andreas Schmidt's avatar
Andreas Schmidt committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import sys
sys.path.insert(0, "./build")

import tests.perf as perf

def run_setup_and_report(setup):
    results = setup.run()
    print("Setup:\n   ", setup)
    print("Results:\n    " + str(results).replace("\n","\n    "))
    results.export()

if __name__ == "__main__":
    # Packet Count Works: 2^15; Segfault at: 2^16

    # TODO: support multiple tests via proper socket termination
    setups = [
        perf.TestSetup(packets=2**17,delay=1,loss=0,reorder=0,duplicate=0)
    ]

    for setup in setups:
        run_setup_and_report(setup)