[Yardstick-233]latency measurment by using pktgen-dpdk 21/17421/4
authorwu.zhihui <wu.zhihui1@zte.com.cn>
Fri, 22 Jul 2016 14:11:53 +0000 (22:11 +0800)
committerwu.zhihui <wu.zhihui1@zte.com.cn>
Fri, 12 Aug 2016 06:07:03 +0000 (14:07 +0800)
commit8953fa3d53019571a222a1aedb7cf796c5d67aec
tree6d30824e222242660d48ad7dd1451cd290bd2a6c
parent6ce3a97548e95a62cf39f37c76bf5b618f5575c4
[Yardstick-233]latency measurment by using pktgen-dpdk

VM A runs pktgen-dpdk as a traffic generator and is connected
back-to-back with VM B running testpmd for forwarding packets.

1. use linux expect to fetch the latency statics data.
2. fetch 10 samples of latency and calculate avg_latency.
3. use screen to keep test scripts running in the background.
4. add a function send_command() for screen in ssh.py

JIRA:YARDSTICK-233

Change-Id: I90ae64b3d198c79f159275ae35715eb284f05080
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
tests/unit/benchmark/scenarios/networking/test_pktgen_dpdk.py [new file with mode: 0644]
tests/unit/test_ssh.py
yardstick/benchmark/scenarios/networking/pktgen_dpdk.py [new file with mode: 0644]
yardstick/benchmark/scenarios/networking/pktgen_dpdk_latency_benchmark.bash [new file with mode: 0644]
yardstick/benchmark/scenarios/networking/testpmd_fwd.bash [new file with mode: 0644]
yardstick/ssh.py