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

最新文章

  1. [C#] 多线程总结(结合进度条)
  2. div的水平和垂直居中
  3. 第三方侧滑菜单SlidingMenu在android studio中的使用
  4. [Leetcode][JAVA] Best Time to Buy and Sell Stock I, II, III
  5. August 4th, 2016, Week 32nd, Thursday
  6. HDU 4405 期望DP
  7. Neutron LBaaS Service(1)—— Neutron LBaaS Service基本知识
  8. 6步图文教你优化myeclipse2014
  9. easyui textarea IE8中无法换行
  10. iOS开发——实用篇Swift篇&状态栏操作
  11. sql Servers数据库基础
  12. CodeForces 577A Multiplication Table 质因子数
  13. jquery对象和js对象
  14. IT男的别样人生,爱折腾,竟然辞职跑丽江去了
  15. 一天搞懂深度学习-训练深度神经网络(DNN)的要点
  16. IP网络设计
  17. phpExcel中文帮助手册
  18. spark、hadoop集群添加节点
  19. 『编程题全队』Alpha 阶段冲刺博客Day1
  20. 学习JQuery - 10

热门文章

  1. Win2D 官方文章系列翻译 - 像素格式
  2. MySQL如何查询当月数据
  3. 存储过程 返回值 procedure return values
  4. iOS UIWebView 和 WKWebView 的 cookie 获取,设置,删除
  5. HTML标签_2
  6. 编写tab切换插件
  7. Python爬虫教程——入门五之URLError异常处理
  8. 如何将centos7自带的firewall防火墙更换为iptables防火墙
  9. April 18 2017 Week 16 Tuesday
  10. 【转载】#349 - The Difference Between Virtual and Non-Virtual Methods