[dts] dts Digest, Vol 116, Issue 1
Liu, Yong
yong.liu at intel.com
Thu Jun 1 10:56:09 CEST 2017
Hi Sandeep,
The execution files under folder "executions" are just reference, so
what we need is that create your own execution file under dts folder.
You can find basic usage of DTS from *http://www.dpdk.org/doc/dts/gsg/. *
For configuration files, the usages of them are not included in getting
started guide. I can just give a basic introduction here.
1) ports.cfg
When port detection mode is "cfg" in execution.cfg, DTS will
generate network topo mapping table based on this configuration file.
This configuration file just describe the connections between
tester and DUT.
2) execution.cfg
Configuration file for suite executions, describe which suites
will be run on which host.
One thing need to take care is that value of "crbs" should
match section name in ports.cfg and crbs.cfg.
3) crbs.cfg
Configuration file for DUT and Tester, included of their ip
addresses and login user name and password.
Thanks,
Marvin
On 05/31/2017 08:32 PM, Sandeep Sandy wrote:
> Hi All,
>
> The issue disappeared when I used the following command to execute.
> .*/dts --config-file executions/execution.cfg
>
> *
> The default value of command line argument obtains non existing blank
> file, which led me to the above error.
>
> diff --git a/framework/main.py b/framework/main.py
> index a018af0..5ced34e 100755
> --- a/framework/main.py
> +++ b/framework/main.py
> @@ -73,9 +73,9 @@ def git_build_package(gitLabel, pkgName, depot="dep"):
> parser = argparse.ArgumentParser(description='DPDK test framework.')
>
> parser.add_argument('--config-file',
> - default='execution.cfg',
> - help='configuration file that describes the test ' +
> - 'cases, DUTs and targets')
> + default='execution.cfg',
> + help='configuration file that describes the test ' +
> + 'cases, DUTs and targets')
>
>
> [root at hobbes dts]# ./dts --config-file executions/execution.cfg
> duts ['10.193.186.216']
> INFO:
> DUT 10.193.186.216
> INFO: ssh root at 10.193.184.86 <mailto:root at 10.193.184.86>
> INFO: ssh root at 10.193.184.86 <mailto:root at 10.193.184.86>
> INFO: ssh root at 10.193.186.216 <mailto:root at 10.193.186.216>
> INFO: ssh root at 10.193.186.216 <mailto:root at 10.193.186.216>
>
> Do I need trigger the suit on tester machine?,
> please point me to the elaborated explanation of configuring:
> 1) ports.cfg
> 2) execution.cfg
> 3) crbs.cfg.
>
>
> On Wed, May 31, 2017 at 3:30 PM, <dts-request at dpdk.org
> <mailto:dts-request at dpdk.org>> wrote:
>
> Send dts mailing list submissions to
> dts at dpdk.org <mailto:dts at dpdk.org>
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://dpdk.org/ml/listinfo/dts <http://dpdk.org/ml/listinfo/dts>
> or, via email, send a message with subject or body 'help' to
> dts-request at dpdk.org <mailto:dts-request at dpdk.org>
>
> You can reach the person managing the list at
> dts-owner at dpdk.org <mailto:dts-owner at dpdk.org>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dts digest..."
>
>
> Today's Topics:
>
> 1. Failing to parse configuration file (Sandeep Sandy)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 31 May 2017 11:21:01 +0530
> From: Sandeep Sandy <sandy3589 at gmail.com <mailto:sandy3589 at gmail.com>>
> To: dts at dpdk.org <mailto:dts at dpdk.org>
> Subject: [dts] Failing to parse configuration file
> Message-ID:
>
> <CAFMhpyDO7tgOUQ32PDRd66hc_=8v8pdjoZa5o+ZV8otixYdjyA at mail.gmail.com <mailto:8v8pdjoZa5o%2BZV8otixYdjyA at mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
>
> Hi All,
>
> I am a naive user, The* following error is encountered* on
> triggering the
> test suite.
> kindly help me, am i missing something ?
>
> --------------------------------------------------
> Traceback (most recent call last):
> File "./main.py", line 159, in <module>
> args.debug, args.debugcase, args.commands)
> File "/root/sandeep/DPDK/dts/framework/dts.py", line 481, in run_all
> raise ConfigParseException(config_file)
> exception.ConfigParseException: Faile to parse config file
> [execution.cfg]
> ------------------------------------------------------
>
> *snap of execution.cfg file:*
> -----------------------------------------------------
> [root at hobbes dts]# cat executions/execution.cfg
> [Execution1]
> crbs=10.193.186.216
> drivername=igb_uio
> test_suites=cmdline,hello_world,multiprocess,timer
> targets=x86_64-native-linuxapp-gcc
> parameters=nic_type=cfg:func=true
>
> [Execution2]
> crbs=10.193.186.214
> drivername=igb_uio
> test_suites=l2fwd,l3fwd,pmd
> targets=x86_64-native-linuxapp-gcc
> parameters=nic_type=niantic:perf=true
> -------------------------------------------------------------
>
>
> *change set:*------------------------------------------
> commit 924c30b603b61aa99f9a452a3220b41a87c2b4d7
> Author: xu,huilong <huilongx.xu at intel.com
> <mailto:huilongx.xu at intel.com>>
> Date: Tue May 23 14:31:03 2017 +0800
>
> Thanks
> Sandeep
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://dpdk.org/ml/archives/dts/attachments/20170531/25eaefaa/attachment-0001.html
> <http://dpdk.org/ml/archives/dts/attachments/20170531/25eaefaa/attachment-0001.html>>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> dts mailing list
> dts at dpdk.org <mailto:dts at dpdk.org>
> http://dpdk.org/ml/listinfo/dts <http://dpdk.org/ml/listinfo/dts>
>
> ------------------------------
>
> End of dts Digest, Vol 116, Issue 1
> ***********************************
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dpdk.org/ml/archives/dts/attachments/20170601/b9f969e0/attachment.html>
More information about the dts
mailing list