From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 85E05A046B for ; Wed, 24 Jul 2019 04:51:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 580DA1C0BE; Wed, 24 Jul 2019 04:51:46 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 8F1E61C07B for ; Wed, 24 Jul 2019 04:51:43 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jul 2019 19:51:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,300,1559545200"; d="scan'208,217";a="368642974" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga005.fm.intel.com with ESMTP; 23 Jul 2019 19:51:42 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jul 2019 19:51:41 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jul 2019 19:51:41 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.110]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.55]) with mapi id 14.03.0439.000; Wed, 24 Jul 2019 10:51:39 +0800 From: "Chen, Zhaoyan" To: "dts@dpdk.org" CC: "Chen, Zhaoyan" Thread-Topic: DTS Enhancement Plan Thread-Index: AdVBx0Km+VjG6je5QSm08Jia/aHreA== Date: Wed, 24 Jul 2019 02:51:38 +0000 Message-ID: <9DEEADBC57E43F4DA73B571777FECECA41D52001@SHSMSX104.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: multipart/alternative; boundary="_000_9DEEADBC57E43F4DA73B571777FECECA41D52001SHSMSX104ccrcor_" MIME-Version: 1.0 Subject: [dts] DTS Enhancement Plan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" --_000_9DEEADBC57E43F4DA73B571777FECECA41D52001SHSMSX104ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, DTS developers/users, With DPDK development rapidly, more and more test suites were developed in = DTS. (150+ test suites and 3k+ test cases in DTS). Meanwhile, paralleling e= xecution tests for NICs/crypto/other device on same DUT become important fo= r reducing execution time for covering all test cases. So we plan to enhanc= e the DTS, for * Improve test suite quality * Unified test capability/function into framework * Paralleling execution So we draft a DTS development plan, and share with you. Looking forward to hear your thoughts, ideas and suggestions. /Zhaoyan DTS framework enhancement =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Unified packet sending for functionality test * Implement all packet sending features in Packet Class * Remove others sending functions in DTS framework * Sending packet from Tester only Generic EAL options generator for DPDK based application * Generate EAL options for DPDK app, and consider the assigne= d hardware resource for test, instead of whole DUT * Test suite can overwrite the options, in restricted range * Define hardware resource in crb.cfg, port.cfg and pktgen.cf= g Global resource management * Global driver load or unload, vfio-pci, igb_uio, uio_pci_ge= neric * Define a parameter to decside if insmod/rmmod, if the modul= e updated. otherwise, keep this module on host. * External_memory setup * Define DUT's cores mask in crb configuration * Define DUT's ports mask * Define physical ports in crb config Clean up unused APIs, unused imported libraries, and unused APIs * plotting.py, plotgraph.py, numpy, matplotlib * e.g. self.tester.run_rfc2544, has been replaced by pktgen c= lass * Replace private texttable.py with public version All-in-one configuration file * Support configure all information in one configuration file= for easy using * yaml file is better Prepare to move to Python 3, make code be compatible with py2 and py3 Generate auto-script for all DTS dependencies * Update requirements.txt * Generate script for binary dependencies for compilation pyt= hon packages Release DTS container version Test Suites cleanness =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Move to new packet sending API * Update all tests, which generate packets and send packets Move to generic EAL generator API * Update all tests which use DPDK based application with new = EAL string Clean up "sleep" * Replace "sleep" with a stable checking mechanism Replace "pktgen app" with "testpmd app" for testing * pktgen app needs be built for special DPDK version and too = heavy for a simple function test, replace it in test case with testpmd app Clean up absolute path * Replace "/tmp" with "/tmp//", or relative p= ath "tmp". * Replace specific OS path in test case Clean up test case dependencies, (files, libraries or tools) * Check all test suites, and add dependencies into auto-scrip= t or requirements.txt --_000_9DEEADBC57E43F4DA73B571777FECECA41D52001SHSMSX104ccrcor_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi, DTS developers/users,

 

With DPDK development rapidly, more and more test su= ites were developed in DTS. (150+ test suites and 3k+ test cases in= DTS). Meanwhile, paralleling execution tests for NICs/crypto/other device = on same DUT become important for reducing execution time for covering all test cases. So we plan to enhance the DTS,= for

·        Improve test suite quality

·        Unified test capability/function into framew= ork

·        Paralleling execution

 

So we draft a DTS development plan, and share with y= ou.

 

Looking forward to hear your thoughts, ideas and sug= gestions.

 

/Zhaoyan

 

DTS framework enhancement

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D

 

Unified packet sending for functionality test

        &nbs= p;     * Implement all packet sending features in Packe= t Class

        &nbs= p;     * Remove others sending functions in DTS framewo= rk

        &nbs= p;     * Sending packet from Tester only

 

Generic EAL options generator for DPDK based applica= tion

        &nbs= p;     * Generate EAL options for DPDK app, and conside= r the assigned hardware resource for test, instead of whole DUT<= /p>

        &nbs= p;     * Test suite can overwrite the options, in restr= icted range

        &nbs= p;     * Define hardware resource in crb.cfg, port.cfg = and pktgen.cfg

 

Global resource management

        &nbs= p;     * Global driver load or unload, vfio-pci, igb_ui= o, uio_pci_generic

        &nbs= p;     * Define a parameter to decside if insmod/rmmod,= if the module updated. otherwise, keep this module on host.

        &nbs= p;     * External_memory setup

        &nbs= p;     * Define DUT's cores mask in crb configuration

        &nbs= p;     * Define DUT's ports mask

        &nbs= p;     * Define physical ports in crb config=

 

Clean up unused APIs, unused imported libraries, and= unused APIs

        &nbs= p;     * plotting.py, plotgraph.py, numpy, matplotlib

        &nbs= p;     * e.g. self.tester.run_rfc2544, has been replace= d by pktgen class

        &nbs= p;     * Replace private texttable.py with public versi= on

 

All-in-one configuration file

        &nbs= p;     * Support configure all information in one confi= guration file for easy using

        &nbs= p;     * yaml file is better

 

Prepare to move to Python 3, make code be compatible= with py2 and py3

 

Generate auto-script for all DTS dependencies

        &nbs= p;     * Update requirements.txt

        &nbs= p;     * Generate script for binary dependencies for co= mpilation python packages

 

Release DTS container version

 

 

Test Suites cleanness

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<= o:p>

 

Move to new packet sending API

        &nbs= p;     * Update all tests, which generate packets and s= end packets

 

Move to generic EAL generator API

        &nbs= p;     * Update all tests which use DPDK based applicat= ion with new EAL string

 

Clean up "sleep"

        &nbs= p;     * Replace "sleep" with a stable checki= ng mechanism

 

Replace "pktgen app" with "testpmd ap= p" for testing

        &nbs= p;     * pktgen app needs be built for special DPDK ver= sion and too heavy for a simple function test, replace it in test case with= testpmd app

Clean up absolute path

        &nbs= p;     * Replace "/tmp" with "/tmp/<d= ts_pid_random>/", or relative path "tmp".

        &nbs= p;     * Replace specific OS path in test case

 

Clean up test case dependencies, (files, libraries o= r tools)

        &nbs= p;     * Check all test suites, and add dependencies in= to auto-script or requirements.txt

 

--_000_9DEEADBC57E43F4DA73B571777FECECA41D52001SHSMSX104ccrcor_--