The script is an interface to run DTS with standard argument parser. Signed-off-by: Juraj Linkeš <juraj.lin...@pantheon.tech> --- dts/main.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 dts/main.py
diff --git a/dts/main.py b/dts/main.py new file mode 100755 index 0000000000..af1f5e4d01 --- /dev/null +++ b/dts/main.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2010-2014 Intel Corporation +# + +""" +A test framework for testing DPDK. +""" + +import argparse + +from framework import dts + +# Read cmd-line args +parser = argparse.ArgumentParser(description="DPDK test framework.") + +parser.add_argument( + "--config-file", + default="execution.cfg", + help="configuration file that describes the test " + "cases, SUTs and targets", +) + +parser.add_argument( + "-v", + "--verbose", + action="store_true", + help="enable verbose output, all message output on screen", +) + +args = parser.parse_args() + +# Main program begins here +dts.run_all( + args.config_file, + args.verbose, +) -- 2.20.1