dts--tests(三)
2024-08-24 07:24:26
sample_built.py
"""
DPDK Test suite.
Test sample_built.
""" import utils
import string
import time
import re
from test_case import TestCase class TestSamplebuilt(TestCase): def set_up_all(self):
"""
Run at the start of each test suite.
"""
pass
def set_up(self):
"""
Run before each test case.
"""
pass def test_sample_built(self):
"""
Verify netmap compatibility with one port
"""
verify_info = ['error','Stop','terminate','No such file']
examples = self.dut.send_expect("ls examples/","#",60)
'''
'bbdev_app bond cmdline distributor ethtool\teventdev_pipeline exception_path flow_classify flow_filtering helloworld ip_fragmentation\tip_pipeline ip_reassembly
ipsec-secgw ipv4_multicast kni l2fwd l2fwd-cat\tl2fwd-crypto l2fwd-jobstats l2fwd-keepalive l3fwd l3fwd-acl l3fwd-power l3fwd-vf\tlink_status_interrupt load_balancer
Makefile\tmeson.build multi_process netmap_compat packet_ordering performance-thread\tptpclient qos_meter qos_sched quota_watermark rxtx_callbacks server_node_efd
service_cores skeleton tep_termination timer vdpa vhost vhost_crypto vhost_scsi vmdq vmdq_dcb vm_power_manager'
'''
samples = examples.split()
'''
['bbdev_app', 'bond', 'cmdline', 'distributor', 'ethtool', 'eventdev_pipeline', 'exception_path', 'flow_classify', 'flow_filtering', 'helloworld', 'ip_fragmentation', 'ip_pipeline',
'ip_reassembly', 'ipsec-secgw', 'ipv4_multicast', 'kni', 'l2fwd', 'l2fwd-cat', 'l2fwd-crypto', 'l2fwd-jobstats', 'l2fwd-keepalive', 'l3fwd', 'l3fwd-acl', 'l3fwd-power', 'l3fwd-vf',
'link_status_interrupt', 'load_balancer', 'Makefile', 'meson.build', 'multi_process', 'netmap_compat', 'packet_ordering', 'performance-thread', 'ptpclient', 'qos_meter', 'qos_sched',
'quota_watermark', 'rxtx_callbacks', 'server_node_efd', 'service_cores', 'skeleton', 'tep_termination', 'timer', 'vdpa', 'vhost', 'vhost_crypto', 'vhost_scsi', 'vmdq', 'vmdq_dcb', 'vm_power_manager']
'''
samples.remove('Makefile') results = []
for sample in samples:
if 'l2fwd-cat' == sample:
self.dut.send_expect('export PQOS_INSTALL_PATH=/root/intel-cmt-cat-master/lib','#',60)
out = self.dut.build_dpdk_apps("./examples/%s" % sample)
for info in verify_info:
if info in out:
results.append(sample)
results = list(set(results))
self.verify(results == [], "sample built failed %s" % results) def tear_down(self):
"""
Run after each test case.
"""
pass def tear_down_all(self):
"""
Run after each test suite.
"""
pass
最新文章
- [C#] 多线程总结(结合进度条)
- div的水平和垂直居中
- 第三方侧滑菜单SlidingMenu在android studio中的使用
- [Leetcode][JAVA] Best Time to Buy and Sell Stock I, II, III
- August 4th, 2016, Week 32nd, Thursday
- HDU 4405 期望DP
- Neutron LBaaS Service(1)—— Neutron LBaaS Service基本知识
- 6步图文教你优化myeclipse2014
- easyui textarea IE8中无法换行
- iOS开发——实用篇Swift篇&;状态栏操作
- sql Servers数据库基础
- CodeForces 577A Multiplication Table 质因子数
- jquery对象和js对象
- IT男的别样人生,爱折腾,竟然辞职跑丽江去了
- 一天搞懂深度学习-训练深度神经网络(DNN)的要点
- IP网络设计
- phpExcel中文帮助手册
- spark、hadoop集群添加节点
- 『编程题全队』Alpha 阶段冲刺博客Day1
- 学习JQuery - 10
热门文章
- Win2D 官方文章系列翻译 - 像素格式
- MySQL如何查询当月数据
- 存储过程 返回值 procedure return values
- iOS UIWebView 和 WKWebView 的 cookie 获取,设置,删除
- HTML标签_2
- 编写tab切换插件
- Python爬虫教程——入门五之URLError异常处理
- 如何将centos7自带的firewall防火墙更换为iptables防火墙
- April 18 2017 Week 16 Tuesday
- 【转载】#349 - The Difference Between Virtual and Non-Virtual Methods