Statistics
| Branch: | Revision:

root / tests / fdc-test.c @ e4b42e6e

History | View | Annotate | Download (12.6 kB)

# Date Author Comment
1f507913 11/14/2012 07:19 pm Hervé Poussineau

fdc-test: split test_media_change() test, so insert part can be reused

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

44212dcc 11/14/2012 07:19 pm Hervé Poussineau

fdc-test: insert media before fuzzing registers

A media will be required for future fdc tests.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

5f8ae8e2 11/14/2012 07:19 pm Hervé Poussineau

fdc-test: add tests for non-DMA READ command

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

075f5532 11/14/2012 07:19 pm Hervé Poussineau

fdc: fix false FD_SR0_SEEK

Do not always set FD_SR0_SEEK, as callers already set it if needed.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

67f194bd 11/14/2012 07:19 pm Kevin Wolf

fdc-test: Check READ ID

ST0 shouldn't include 0x20 (FD_SR0_SEEK) after READ ID.

Signed-off-by: Kevin Wolf <>
Tested-by: Hervé Poussineau <>

6f442fe8 11/14/2012 07:19 pm Hervé Poussineau

fdc-tests: add tests for VERIFY command

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

98272dbb 07/17/2012 05:48 pm Pavel Hrdina

fdc-test: introduce test_relative_seek

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

c3cdc1b0 07/17/2012 05:48 pm Kevin Wolf

fdc-test: Clean up a bit

Readability of the test code has suffered as the test case evolved. This
should improve it a bit again.

Signed-off-by: Kevin Wolf <>

59240c34 07/09/2012 04:53 pm Pavel Hrdina

fdc_test: update media_change test

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 <>
Signed-off-by: Kevin Wolf <>

b3ce604e 07/09/2012 04:53 pm Pavel Hrdina

fdc_test: introduce test_sense_interrupt

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 <>
Signed-off-by: Kevin Wolf <>

3359847e 06/21/2012 09:45 pm Blue Swirl

qtest: add a fuzz test to fdc-test

Add a simple register fuzzing test to floppy controller tests.

Signed-off-by: Blue Swirl <>

8b9ef60d 06/15/2012 03:03 pm Pavel Hrdina

fdc-test: introduced qtest read_without_media

If you try to read from a floppy drive without a media, you should get
an abnormal termination error.

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

7cd33161 05/25/2012 07:23 pm Pavel Hrdina

fdc-test: introduced qtest no_media_on_start and cmos qtest for floppy

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....

93e9eb68 05/10/2012 11:32 am Kevin Wolf

qtest: Add floppy test

Let's start with testing media change.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Paolo Bonzini <>