Hi,

This patch adds new test for virtio_console. It supports booth, serialport and 
console, virtio_console types and it contains three tests:
1) smoke
2) loopback
3) perf


Before any tests are executed it starts the machine with required number of 
virtio_consoles. Than it allows user to run all three tests. Using the 
parameters user can control which tests are executed and what setting is used. 
All tests supports multiple run using ';' separated list of settings. Most of 
the settings are optional only. The mandatory ones are written in CAPITALS.

ad1) virtio_console_smoke format:
$VIRTIO_CONSOLE_TYPE:$custom_data

It creates a loopback via $VIRTIO_CONSOLE_TYPE console and sends $custom_data. 
If the received data match the original test pass

ad2) virtio_console_loopback format:
$source_console_t...@$buffer_length:$destination_console1_t...@$buffer_length:...:$destination_consolex_t...@$buffer_length:$loopback_buffer_length

Creates loopback between the $SOURCE_CONSOLE_TYPE console and all following 
$DESTINATION_CONSOLEn_TYPE consoles. Than it sends data by $buffer_length to 
the source port. The loopback resends the data by $loopback_buffer_length to 
all destination consoles. The test listens on the destination consoles and 
controls the received data.

NOTE: in the debug mode you can see the send/received data's buffers in every 
second during the test.

ad3) virtio_console_perf format:
$virtio_console_t...@$buffer_size:$test_duration

First it sends the prepared data in a loop over $VIRTIO_CONSOLE_TYPE console 
from host to guest. Guest only reads all the data and throw them away. This 
part runs $test_duration seconds.
Second it does the same from guest to host.

For booth runs it provides information of minimum/median/maximum throughput and 
guest/host average loads.


Best regards,
Lukas Doktor
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to