Exemplo n.º 1
0
args = parser.parse_args()


test_configs = {"BW_size": args.BW_sizes,
                "BW_flows": args.BW_flows,
                "BW_types": args.BW_types,
                "BW_queue": args.BW_queue,
                "BW_interval": args.BW_interval,
                "BW_measurements": args.BW_measurements,
                "BW_direction": args.BW_direction,
                "BW_pcap_tester": args.BW_pcap_tester,
                "BW_tx_flow": not args.BW_no_tx_flow,
                "BW_port_min": args.BW_port_min,
                "BW_port_max": args.BW_port_max,
                "BW_target_gbps": args.BW_target_gbps,
                "stress_cpu_inst": args.stress_cpu_inst,
                "stress_vm_inst": args.stress_vm_inst,
                "stress_vm_size": args.stress_vm_size,
                "skip_target_env_setup": args.skip_target_env_setup,
                "try_reuse_pcaps": args.try_reuse_pcaps and \
                        "test_perf_bw" in args.test_cases,
                }

# Main program begins here
dts.run_all(args.config_file, args.snapshot, args.patch, args.force_setup,
            args.read_cache, args.project, args.suite_dir, args.test_cases,
            args.dir, args.output, args.verbose, args.virttype, args.debug,
            args.debugcase, args.re_run, args.commands, args.pktgen,
            test_configs)
Exemplo n.º 2
0
                    help='executes only the followings test cases')

parser.add_argument('-d', '--dir',
                    default='~/dpdk',
                    help='Output directory where dpdk package is extracted')

parser.add_argument('-v', '--verbose',
                    action='store_true',
                    help='enable verbose output, all message output on screen')

parser.add_argument('--debug',
                    action='store_true',
                    help='enable debug mode, user can enter debug mode in process')

args = parser.parse_args()


# prepare DPDK source test package, DTS will exited when failed.
if args.git is not None:
    try:
        git_build_package(args.git, os.path.split(args.snapshot)[1])
    except Exception:
        print "FAILED TO PREPARE DPDK PACKAGE!!!"
        sys.exit()

# Main program begins here
dts.run_all(args.config_file, args.snapshot, args.git,
            args.patch, args.skip_setup, args.read_cache,
            args.project, args.suite_dir, args.test_cases,
            args.dir, args.output, args.verbose, args.debug)