summaryrefslogtreecommitdiffstats
path: root/tests/fdc-test.c
Commit message (Collapse)AuthorAgeFilesLines
* fdc-tests: add tests for VERIFY commandHervé Poussineau2012-11-141-3/+13
| | | | | Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* fdc-test: Check READ IDKevin Wolf2012-11-141-0/+66
| | | | | | | ST0 shouldn't include 0x20 (FD_SR0_SEEK) after READ ID. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Tested-by: Hervé Poussineau <hpoussin@reactos.org>
* fdc: fix false FD_SR0_SEEKHervé Poussineau2012-11-141-3/+3
| | | | | | | Do not always set FD_SR0_SEEK, as callers already set it if needed. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* fdc-test: add tests for non-DMA READ commandHervé Poussineau2012-11-141-0/+98
| | | | | Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* fdc-test: insert media before fuzzing registersHervé Poussineau2012-11-141-0/+1
| | | | | | | A media will be required for future fdc tests. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* fdc-test: split test_media_change() test, so insert part can be reusedHervé Poussineau2012-11-141-1/+8
| | | | | Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* fdc-test: Clean up a bitKevin Wolf2012-07-171-16/+20
| | | | | | | Readability of the test code has suffered as the test case evolved. This should improve it a bit again. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* fdc-test: introduce test_relative_seekPavel Hrdina2012-07-171-5/+41
| | | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* fdc_test: introduce test_sense_interruptPavel Hrdina2012-07-091-1/+24
| | | | | | | | | | Calling sense interrupt status while there is no interrupt should return invalid command (0x80). Read command should always returns in st0 seek_end bit set to 1. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* fdc_test: update media_change testPavel Hrdina2012-07-091-8/+17
| | | | | | | | After rewrite DSKCHG bit handling the test has to be updated. Now is needed to seek to different track to clear DSKCHG bit. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* qtest: add a fuzz test to fdc-testBlue Swirl2012-06-211-0/+17
| | | | | | Add a simple register fuzzing test to floppy controller tests. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* fdc-test: introduced qtest read_without_mediaPavel Hrdina2012-06-151-0/+66
| | | | | | | | If you try to read from a floppy drive without a media, you should get an abnormal termination error. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* fdc-test: introduced qtest no_media_on_start and cmos qtest for floppyPavel Hrdina2012-05-251-17/+48
| | | | | | | | | | | | | | | As default a guest has always one floppy drive so 0x10 byte in CMOS has to have 0x40 value. Higher 4 bits means that the first floppy drive is 1.44 Mb 3"5 drive and lower 4 bits means the second drive is not present. After the guest starts DSKCHG bit in DIR register should be set. If there is no media in drive, this bit should be set all the time. Because we start the guest without media in drive, we have to swap 'eject' and 'change' in 'test_media_change'. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* qtest: Add floppy testKevin Wolf2012-05-101-0/+195
Let's start with testing media change. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
OpenPOWER on IntegriCloud