summaryrefslogtreecommitdiffstats
path: root/virtserial.h
Commit message (Collapse)AuthorAgeFilesLines
* auto-test: Add test for lseek()Amit Shah2010-09-281-0/+1
| | | | | | | | | lseek() on console ports should fail with -ESPIPE. (This behaviour will be seen from kernel 2.6.37 onwards. Older kernels just returned success without seeking.) Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: Shut down a guest after all tests are done.Amit Shah2010-09-131-0/+1
| | | | | | | | Currently we forcibly kill qemu from the run_test.sh script once each test is done. Instead, give a chance to the guest to shut itself down by sending a 'shutdown' command. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: Add a key to specify poll events to poll forAmit Shah2010-08-261-0/+1
| | | | | | | | We always invoked a guest poll with POLLIN|POLLOUT events. There's a case where custom events might be necessary -- the sigio handler test, for example. Add a new key to set the poll events. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-virtserial: Add guest SIGIO testsAmit Shah2010-08-261-0/+1
| | | | | | | | | The guest can receive the SIGIO signal on host connection and disconnection events. This commit just adds a simple test for one open/close event. A lot more are to be added, as explained in the comments. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: Introduce a threaded read/write testAmit Shah2010-08-231-0/+2
| | | | | | | | Introduce a test that creates a new thread and blocks on a port for read. The parent thread then writes to the port, and later the host writes something to the port, unblocking the read. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: add support for guest->host file sendAmit Shah2009-12-221-4/+8
| | | | | | Send file from guest->host and compare csums Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: add tests for checking sysfs, debugfs entries and udev rulesAmit Shah2009-10-271-0/+2
| | | | | | | | | | | | | | | This commit tests for: 1. sysfs entries created (the 'name' attribute) 2. debugfs entries created for ports (in /sys/kernel/debug/virtio-console/vconNN) (this needs debugfs to be mounted in /sys/kernel/debug) 3. udev rule that creates a symlink based on the port 'name' attribute (this needs a udev rule to create a symlink, like: KERNEL==vcon*, SYMLINK+=virtio-console/{name} in a file in the /etc/udev/rules.d/ directory) Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: support for transferring a big file and comparing sha1sumsAmit Shah2009-10-241-0/+5
| | | | | | | There are a lot of values hardcoded; they should become configurable someplace. Signed-off-by: Amit Shah <amit.shah@redhat.com>
* auto-test: whitespace cleanupsAmit Shah2009-10-241-10/+10
| | | | Signed-off-by: Amit Shah <amit.shah@redhat.com>
* Automated test suite for new virtio-console functionalityAmit Shah2009-10-201-0/+15
This commit adds programs that run automated tests in the guest. One program (auto-virtserial.c) is to be run on the host and another (auto-virtserial-guest.c) is to be run in the guest. A README file is added that explains how to run them using the supplied script (run-test.sh). Signed-off-by: Amit Shah <amit.shah@redhat.com>