* [dts] [PATCH V1] tests/example_build: optimize script
@ 2019-10-18 16:06 Wenjie Li
2019-10-18 7:23 ` Li, WenjieX A
2019-10-23 9:41 ` Tu, Lijuan
0 siblings, 2 replies; 3+ messages in thread
From: Wenjie Li @ 2019-10-18 16:06 UTC (permalink / raw)
To: dts; +Cc: Wenjie Li
On some platforms, if intel-cmt-cat is installed by yum/apt etc,
the intel-cmt-cat/lib is not at /root/intel-cmt-cat-master/lib and it is
unneccessary to export PQOS_INSTALL_PATH.
Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
---
tests/TestSuite_example_build.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_example_build.py b/tests/TestSuite_example_build.py
index f0bf0ee..a70e1b3 100644
--- a/tests/TestSuite_example_build.py
+++ b/tests/TestSuite_example_build.py
@@ -57,7 +57,9 @@ class TestExamplebuild(TestCase):
"""
Verify example applications compile successfully
"""
- self.dut.send_expect('export PQOS_INSTALL_PATH=/root/intel-cmt-cat-master/lib', '#')
+ out = self.dut.send_expect('ls /root/intel-cmt-cat-master/lib', '#')
+ if "No such file or directory" not in out:
+ self.dut.send_expect('export PQOS_INSTALL_PATH=/root/intel-cmt-cat-master/lib', '#')
out = self.dut.build_dpdk_apps("./examples", '#')
verify_info = ['error','Error','Stop','terminate','failed','No such file','no input files','not found','No rule']
for failed_info in verify_info:
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/example_build: optimize script
2019-10-18 16:06 [dts] [PATCH V1] tests/example_build: optimize script Wenjie Li
@ 2019-10-18 7:23 ` Li, WenjieX A
2019-10-23 9:41 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Li, WenjieX A @ 2019-10-18 7:23 UTC (permalink / raw)
To: dts; +Cc: Li, WenjieX A
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
Tested-by: Li, WenjieX A <wenjiex.a.li@intel.com>
> -----Original Message-----
> From: Li, WenjieX A
> Sent: Saturday, October 19, 2019 12:06 AM
> To: dts@dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li@intel.com>
> Subject: [dts][PATCH V1] tests/example_build: optimize script
>
> On some platforms, if intel-cmt-cat is installed by yum/apt etc, the intel-cmt-
> cat/lib is not at /root/intel-cmt-cat-master/lib and it is unneccessary to export
> PQOS_INSTALL_PATH.
>
> Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
> ---
> tests/TestSuite_example_build.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_example_build.py
> b/tests/TestSuite_example_build.py
> index f0bf0ee..a70e1b3 100644
> --- a/tests/TestSuite_example_build.py
> +++ b/tests/TestSuite_example_build.py
> @@ -57,7 +57,9 @@ class TestExamplebuild(TestCase):
> """
> Verify example applications compile successfully
> """
> - self.dut.send_expect('export PQOS_INSTALL_PATH=/root/intel-cmt-cat-
> master/lib', '#')
> + out = self.dut.send_expect('ls /root/intel-cmt-cat-master/lib', '#')
> + if "No such file or directory" not in out:
> + self.dut.send_expect('export
> + PQOS_INSTALL_PATH=/root/intel-cmt-cat-master/lib', '#')
> out = self.dut.build_dpdk_apps("./examples", '#')
> verify_info = ['error','Error','Stop','terminate','failed','No such file','no input
> files','not found','No rule']
> for failed_info in verify_info:
> --
> 2.17.1
[-- Attachment #2: TestExamplebuild.log --]
[-- Type: application/octet-stream, Size: 12160 bytes --]
18/10/2019 14:40:21 dts:
TEST SUITE : TestExamplebuild
18/10/2019 14:40:21 dts: NIC : fortville_25g
18/10/2019 14:40:21 dut.10.238.54.219:
18/10/2019 14:40:21 tester:
18/10/2019 14:40:21 TestExamplebuild: Rerun Test Case test_example_build Begin
18/10/2019 14:40:21 dts: I/O operation on closed file
18/10/2019 14:40:21 dut.10.238.54.219: kill_all: called by dut and has no prefix list.
18/10/2019 15:01:12 dts:
TEST SUITE : TestExamplebuild
18/10/2019 15:01:12 dts: NIC : fortville_25g
18/10/2019 15:01:12 dut.10.238.54.219:
18/10/2019 15:01:12 tester:
18/10/2019 15:01:12 TestExamplebuild: Rerun Test Case test_example_build Begin
18/10/2019 15:01:12 dts: I/O operation on closed file
18/10/2019 15:01:12 dut.10.238.54.219: kill_all: called by dut and has no prefix list.
18/10/2019 15:39:16 dts:
TEST SUITE : TestExamplebuild
18/10/2019 15:39:16 dts: NIC : fortville_25g
18/10/2019 15:39:16 dut.10.238.54.219:
18/10/2019 15:39:16 tester:
18/10/2019 15:39:16 TestExamplebuild: Rerun Test Case test_example_build Begin
18/10/2019 15:39:37 TestExamplebuild: Rerun Test Case test_example_build Begin
18/10/2019 15:39:37 TestExamplebuild: Test Case test_example_build Begin
18/10/2019 15:39:37 dut.10.238.54.219:
18/10/2019 15:39:37 tester:
18/10/2019 15:39:37 dut.10.238.54.219: ls /root/intel-cmt-cat-master/lib
18/10/2019 15:39:37 dut.10.238.54.219: ls: cannot access /root/intel-cmt-cat-master/lib: No such file or directory
18/10/2019 15:39:37 dut.10.238.54.219: rm -rf ./app/test/test_resource_c.res.o
18/10/2019 15:39:37 dut.10.238.54.219:
18/10/2019 15:39:37 dut.10.238.54.219: rm -rf ./app/test/test_resource_tar.res.o
18/10/2019 15:39:37 dut.10.238.54.219:
18/10/2019 15:39:37 dut.10.238.54.219: rm -rf ./app/test/test_pci_sysfs.res.o
18/10/2019 15:39:37 dut.10.238.54.219:
18/10/2019 15:39:37 dut.10.238.54.219: make -j 110 -C ./examples #
18/10/2019 15:39:41 dut.10.238.54.219: vm_power_manager requires libvirt >= 0.9.3
make: Entering directory `/root/dpdk/examples'
== bbdev_app
== bond
== cmdline
== distributor
== ethtool
== exception_path
== server_node_efd
== fips_validation
== flow_classify
== flow_filtering
== helloworld
== ip_pipeline
== ipsec-secgw
== ipv4_multicast
== l2fwd
== kni
== l2fwd-crypto
== l2fwd-jobstats
== l2fwd-keepalive
== l2fwd-keepalive/ka-agent
== l3fwd-acl
== l3fwd
== l3fwd-power
== l3fwd-vf
== link_status_interrupt
== multi_process
== load_balancer
== netmap_compat/bridge
== ntb
== packet_ordering
== performance-thread
== qos_meter
== qos_sched
== quota_watermark
== rxtx_callbacks
== service_cores
== skeleton
== tep_termination
== timer
== vhost_crypto
== vhost_scsi
== vdpa
== vhost
== vmdq_dcb
== vmdq
== eventdev_pipeline
== server
== node
== lib
== l3fwd-thread
== pthread_shim
== qw
== qwctl
== simple_mp
== client_server_mp
== symmetric_mp
== hotplug_mp
CC main.o
== mp_client
== mp_server
CC main.o
CC commands.o
CC parse_obj_list.o
CC main.o
CC fips_validation.o
CC fips_validation_aes.o
CC fips_validation_hmac.o
CC main.o
CC main.o
CC fips_validation_tdes.o
CC fips_validation_gcm.o
CC main.o
CC main.o
CC fips_validation_cmac.o
CC main.o
CC fips_validation_ccm.o
CC flow_classify.o
CC fips_validation_sha.o
CC main.o
CC fips_dev_self_test.o
CC main.o
CC main.o
CC main.o
CC main.o
CC bridge.o
CC main.o
CC compat_netmap.o
CC perf_core.o
CC main.o
CC main.o
CC l3fwd_lpm.o
CC main.o
CC l3fwd_em.o
CC main.o
CC shm.o
CC main.o
CC main.o
CC basicfwd.o
CC rte_policer.o
CC main.o
CC main.o
CC main.o
CC main.o
CC vxlan_setup.o
CC vxlan.o
CC main.o
CC main.o
CC main.o
CC ntb_fwd.o
CC runtime.o
CC config.o
CC init.o
CC main.o
CC main.o
CC args.o
CC init.o
CC main.o
CC app_thread.o
CC cfg_file.o
CC virtio_net.o
CC main.o
CC cmdline.o
CC scsi.o
CC main.o
CC stats.o
CC vhost_scsi.o
CC main.o
CC pipeline_worker_generic.o
CC pipeline_worker_tx.o
CC parser.o
CC ipsec.o
CC esp.o
CC sp4.o
CC main.o
CC sp6.o
CC sa.o
CC rt.o
CC ipsec_process.o
CC ipsec-secgw.o
CC action.o
CC cli.o
CC conn.o
CC kni.o
CC link.o
CC main.o
CC mempool.o
CC parser.o
CC pipeline.o
CC swq.o
CC tap.o
CC thread.o
CC tmgr.o
CC cryptodev.o
LD cmdline
LD helloworld
LD ka-agent
LD service_cores
LD timer
LD ntb_fwd
LD vdpa
CC rte_ethtool.o
LD l2fwd
CC main.o
CC init.o
CC args.o
CC node.o
CC main.o
CC mp_commands.o
CC main.o
CC lthread.o
CC lthread_sched.o
CC lthread_cond.o
LD vhost-scsi
CC lthread_tls.o
LD qos_meter
CC main.o
CC pthread_shim.o
CC lthread.o
LD flow
CC lthread_sched.o
CC lthread_mutex.o
CC lthread_diag.o
LD link_status_interrupt
CC ctx.o
CC lthread_cond.o
CC lthread_tls.o
CC commands.o
CC qwctl.o
CC lthread_mutex.o
CC main.o
CC main.o
CC commands.o
LD basicfwd
CC lthread_diag.o
CC ctx.o
CC args.o
CC init.o
CC main.o
LD l2fwd-keepalive
LD flow_classify
LD vhost-crypto
LD exception_path
LD bond_app
LD qwctl
LD l2fwd-jobstats
LD vmdq_app
LD rxtx_callbacks
LD kni
LD hotplug_mp
LD simple_mp
LD eventdev_pipeline
LD qos_sched
LD vmdq_dcb_app
LD tep_termination
AR librte_ethtool.a
INSTALL-LIB librte_ethtool.a
== ethtool-app
LD fips_validation
LD bridge
CC client.o
LD symmetric_mp
CC args.o
CC init.o
CC main.o
LD distributor_app
LD server
INSTALL-APP helloworld
INSTALL-MAP helloworld.map
LD l3fwd-vf
LD load_balancer
LD node
INSTALL-APP ka-agent
INSTALL-MAP ka-agent.map
INSTALL-APP cmdline
INSTALL-MAP cmdline.map
LD l3fwd
INSTALL-APP service_cores
INSTALL-MAP service_cores.map
LD packet_ordering
INSTALL-APP ntb_fwd
INSTALL-MAP ntb_fwd.map
LD bbdev
INSTALL-APP timer
INSTALL-MAP timer.map
INSTALL-MAP l2fwd.map
INSTALL-APP l2fwd
LD mp_client
LD qw
INSTALL-APP vdpa
INSTALL-MAP vdpa.map
LD vhost-switch
INSTALL-MAP flow.map
INSTALL-APP flow
LD ipv4_multicast
LD mp_server
LD l3fwd-acl
INSTALL-APP link_status_interrupt
INSTALL-MAP link_status_interrupt.map
INSTALL-APP vhost-crypto
INSTALL-MAP vhost-crypto.map
INSTALL-APP vhost-scsi
INSTALL-MAP vhost-scsi.map
INSTALL-APP l2fwd-keepalive
INSTALL-MAP l2fwd-keepalive.map
INSTALL-APP qos_meter
INSTALL-MAP qos_meter.map
INSTALL-MAP exception_path.map
INSTALL-APP exception_path
LD lthread_pthread_shim
INSTALL-APP flow_classify
INSTALL-MAP flow_classify.map
INSTALL-APP l2fwd-jobstats
INSTALL-MAP l2fwd-jobstats.map
INSTALL-MAP bond_app.map
INSTALL-APP bond_app
INSTALL-APP qwctl
INSTALL-MAP qwctl.map
INSTALL-MAP vmdq_app.map
INSTALL-APP vmdq_app
INSTALL-APP rxtx_callbacks
INSTALL-MAP rxtx_callbacks.map
INSTALL-APP hotplug_mp
INSTALL-MAP hotplug_mp.map
INSTALL-APP eventdev_pipeline
INSTALL-MAP eventdev_pipeline.map
INSTALL-APP kni
INSTALL-MAP kni.map
INSTALL-APP basicfwd
INSTALL-MAP basicfwd.map
INSTALL-APP vmdq_dcb_app
INSTALL-MAP vmdq_dcb_app.map
INSTALL-APP tep_termination
INSTALL-MAP tep_termination.map
INSTALL-APP qos_sched
INSTALL-MAP qos_sched.map
INSTALL-MAP symmetric_mp.map
INSTALL-APP symmetric_mp
INSTALL-APP simple_mp
INSTALL-MAP simple_mp.map
INSTALL-MAP fips_validation.map
INSTALL-APP fips_validation
INSTALL-MAP distributor_app.map
INSTALL-APP distributor_app
INSTALL-APP server
INSTALL-MAP server.map
CC ethapp.o
CC main.o
INSTALL-MAP l3fwd-vf.map
INSTALL-APP l3fwd-vf
INSTALL-APP bridge
INSTALL-MAP bridge.map
INSTALL-MAP load_balancer.map
INSTALL-APP load_balancer
INSTALL-APP node
INSTALL-MAP node.map
INSTALL-APP l3fwd
INSTALL-MAP l3fwd.map
INSTALL-APP qw
INSTALL-MAP qw.map
INSTALL-MAP bbdev.map
INSTALL-APP bbdev
LD l2fwd-crypto
INSTALL-APP ipv4_multicast
INSTALL-MAP ipv4_multicast.map
INSTALL-APP vhost-switch
INSTALL-MAP vhost-switch.map
INSTALL-APP mp_server
INSTALL-MAP mp_server.map
INSTALL-APP packet_ordering
INSTALL-MAP packet_ordering.map
INSTALL-APP mp_client
INSTALL-MAP mp_client.map
LD ethtool
INSTALL-APP lthread_pthread_shim
INSTALL-MAP lthread_pthread_shim.map
LD ip_pipeline
INSTALL-MAP l3fwd-acl.map
INSTALL-APP l3fwd-acl
LD l3fwd-power
LD l3fwd-thread
INSTALL-MAP l2fwd-crypto.map
INSTALL-APP l2fwd-crypto
INSTALL-APP ethtool
INSTALL-MAP ethtool.map
INSTALL-APP ip_pipeline
INSTALL-MAP ip_pipeline.map
INSTALL-APP l3fwd-power
INSTALL-MAP l3fwd-power.map
INSTALL-APP l3fwd-thread
INSTALL-MAP l3fwd-thread.map
LD ipsec-secgw
INSTALL-APP ipsec-secgw
INSTALL-MAP ipsec-secgw.map
make: Leaving directory `/root/dpdk/examples'
18/10/2019 15:39:41 TestExamplebuild: Test Case test_example_build Result PASSED:
18/10/2019 15:39:46 TestExamplebuild: Rerun Test Case test_example_build Begin
18/10/2019 15:39:46 TestExamplebuild: Test Case test_example_build Begin
18/10/2019 15:39:46 dut.10.238.54.219:
18/10/2019 15:39:46 tester:
18/10/2019 15:39:46 dut.10.238.54.219: ls /root/intel-cmt-cat-master/lib
18/10/2019 15:39:46 dut.10.238.54.219: ls: cannot access /root/intel-cmt-cat-master/lib: No such file or directory
18/10/2019 15:39:46 dut.10.238.54.219: rm -rf ./app/test/test_resource_c.res.o
18/10/2019 15:39:46 dut.10.238.54.219:
18/10/2019 15:39:46 dut.10.238.54.219: rm -rf ./app/test/test_resource_tar.res.o
18/10/2019 15:39:46 dut.10.238.54.219:
18/10/2019 15:39:46 dut.10.238.54.219: rm -rf ./app/test/test_pci_sysfs.res.o
18/10/2019 15:39:46 dut.10.238.54.219:
18/10/2019 15:39:46 dut.10.238.54.219: make -j 110 -C ./examples #
18/10/2019 15:39:49 dut.10.238.54.219: vm_power_manager requires libvirt >= 0.9.3
make: Entering directory `/root/dpdk/examples'
== bbdev_app
== bond
== cmdline
== distributor
== ethtool
== exception_path
== server_node_efd
== fips_validation
== flow_classify
== flow_filtering
== ip_pipeline
== helloworld
== ipsec-secgw
== ipv4_multicast
== kni
== l2fwd-crypto
== l2fwd
== l2fwd-jobstats
== l3fwd
== l2fwd-keepalive
== l2fwd-keepalive/ka-agent
== l3fwd-power
== link_status_interrupt
== l3fwd-acl
== l3fwd-vf
== multi_process
== netmap_compat/bridge
== load_balancer
== ntb
== performance-thread
== packet_ordering
== qos_meter
== qos_sched
== rxtx_callbacks
== quota_watermark
== service_cores
== skeleton
== tep_termination
== timer
== vhost
== vdpa
== vhost_scsi
== vmdq
== vhost_crypto
== vmdq_dcb
== eventdev_pipeline
== server
== node
== qw
== qwctl
== lib
== l3fwd-thread
== pthread_shim
== client_server_mp
== simple_mp
== symmetric_mp
== hotplug_mp
== mp_client
== mp_server
== ethtool-app
make: Leaving directory `/root/dpdk/examples'
18/10/2019 15:39:49 TestExamplebuild: Test Case test_example_build Result PASSED:
18/10/2019 15:53:35 dut.10.238.54.219: kill_all: called by dut and has no prefix list.
18/10/2019 15:53:38 dts:
TEST SUITE ENDED: TestExamplebuild
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/example_build: optimize script
2019-10-18 16:06 [dts] [PATCH V1] tests/example_build: optimize script Wenjie Li
2019-10-18 7:23 ` Li, WenjieX A
@ 2019-10-23 9:41 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-10-23 9:41 UTC (permalink / raw)
To: Li, WenjieX A, dts; +Cc: Li, WenjieX A
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li
> Sent: Saturday, October 19, 2019 12:06 AM
> To: dts@dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li@intel.com>
> Subject: [dts] [PATCH V1] tests/example_build: optimize script
>
> On some platforms, if intel-cmt-cat is installed by yum/apt etc, the intel-cmt-
> cat/lib is not at /root/intel-cmt-cat-master/lib and it is unneccessary to
> export PQOS_INSTALL_PATH.
>
> Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
> ---
> tests/TestSuite_example_build.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_example_build.py
> b/tests/TestSuite_example_build.py
> index f0bf0ee..a70e1b3 100644
> --- a/tests/TestSuite_example_build.py
> +++ b/tests/TestSuite_example_build.py
> @@ -57,7 +57,9 @@ class TestExamplebuild(TestCase):
> """
> Verify example applications compile successfully
> """
> - self.dut.send_expect('export PQOS_INSTALL_PATH=/root/intel-cmt-cat-
> master/lib', '#')
> + out = self.dut.send_expect('ls /root/intel-cmt-cat-master/lib', '#')
> + if "No such file or directory" not in out:
> + self.dut.send_expect('export
> + PQOS_INSTALL_PATH=/root/intel-cmt-cat-master/lib', '#')
> out = self.dut.build_dpdk_apps("./examples", '#')
> verify_info = ['error','Error','Stop','terminate','failed','No such file','no
> input files','not found','No rule']
> for failed_info in verify_info:
> --
> 2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-23 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-18 16:06 [dts] [PATCH V1] tests/example_build: optimize script Wenjie Li
2019-10-18 7:23 ` Li, WenjieX A
2019-10-23 9:41 ` Tu, Lijuan
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).