test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Lin, Xueqin" <xueqin.lin@intel.com>
To: "Liu, Yong" <yong.liu@intel.com>,
	xueqin.lin <xlin15@ecsmtp.sh.intel.com>,
	 "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH] tests: add ftag test suite and plan
Date: Thu, 11 Aug 2016 01:56:19 +0000	[thread overview]
Message-ID: <0D300480287911409D9FF92C1FA2A3351A7C11D1@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <57ABDAD5.4080204@intel.com>

Ok , thanks for reminder.

From: Liu, Yong
Sent: Thursday, August 11, 2016 9:54 AM
To: xueqin.lin; dts@dpdk.org
Cc: Lin, Xueqin
Subject: Re: [dts][PATCH] tests: add ftag test suite and plan

Xueqin, one comment about dpdk build.
On 08/10/2016 03:55 PM, xueqin.lin wrote:

+    def set_up_all(self):

+        """

+        Run at the start of each test suite.

+        """

+        self.verify(self.nic in ['redrockcanyou','atwood','boulderrapid'], 'ftag test can not support %s nic'%self.nic)

+        self.ports = self.dut.get_ports(self.nic)

+        self.verify(len(self.ports) >= 2, "Insufficient number of ports.")

+        patch_file = r'dep/fm10k-add-a-unit-test-for-FTAG-based-forwarding.patch'

+        patch_dst = "/tmp/"

+        self.dut.session.copy_file_to(patch_file, patch_dst)

+        self.patch_hotfix_dpdk(patch_dst + "fm10k-add-a-unit-test-for-FTAG-based-forwarding.patch", True)

+        self.dut.send_expect("sed -i -e '/CONFIG_RTE_VIRTIO_USER=y/a\CONFIG_RTE_LIBRTE_FM10K_FTAG_FWD=y' config/common_linuxapp", "# ")

+        self.dut.send_expect("sed -i -e '/SRCS-y += test_pmd_perf.c/a\SRCS-y += test_fm10k_ftag.c' app/test/Makefile", "# ")

+        out = self.dut.send_expect("make install T=%s -j" %self.dut.target, "# ", 300)

+        self.verify('Build complete' in out, "Compilation failed")

You can use function self.dut.build_install_dpdk(self.target) to build dpdk.
It's better to rebuild dpdk in tear_down_all function.

  reply	other threads:[~2016-08-11  1:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1470815735-10949-1-git-send-email-xlin15@shecgisg005.sh.intel.com>
2016-08-11  1:54 ` Liu, Yong
2016-08-11  1:56   ` Lin, Xueqin [this message]
     [not found] <1470723536-16674-1-git-send-email-xlin15@shecgisg005.sh.intel.com>
2016-08-10  2:08 ` Liu, Yong
2016-08-10  6:31   ` Lin, Xueqin
2016-08-10  7:37     ` Liu, Yong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0D300480287911409D9FF92C1FA2A3351A7C11D1@SHSMSX103.ccr.corp.intel.com \
    --to=xueqin.lin@intel.com \
    --cc=dts@dpdk.org \
    --cc=xlin15@ecsmtp.sh.intel.com \
    --cc=yong.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).