Files
fail/tools/tests/fib/state/floppy
Christian Dietrich f92b930acb tools/tests: small end-to-end test suite for importing/pruning
As bigger changes lie ahead, we want a small end-to-end test suite
that ensures that our importing and tracing does not fall apart. With
this change, we add the infrastructure and two test-cases (fib, qsort)
including ELFs, traces, and injection results.

In order to run the basic-pruner test cases, one needs to setup a
MySQL table and set the CMake option ENABLE_DATABASE_TESTS.
2020-12-16 15:38:29 +01:00

88 lines
1.3 KiB
Plaintext

floppy = {
data_rate = 2
command = {
0 = 0x00
1 = 0x00
2 = 0x00
3 = 0x00
4 = 0x00
5 = 0x00
6 = 0x00
7 = 0x18
8 = 0x55
9 = 0xfa
}
command_index = 0
command_size = 0
command_complete = true
pending_command = 0xfe
multi_track = false
pending_irq = false
reset_sensei = 0
format_count = 170
format_fillbyte = 0x5c
result = {
0 = 0x6d
1 = 0xe2
2 = 0x7f
3 = 0x00
4 = 0x00
5 = 0x04
6 = 0x10
7 = 0x20
8 = 0x00
9 = 0x00
}
result_index = 0
result_size = 0
DOR = 0x00
TDR = 0x00
TC = false
main_status_reg = 0x00
status_reg0 = 0x00
status_reg1 = 0x00
status_reg2 = 0x00
status_reg3 = 0x00
floppy_buffer_index = 0
lock = false
SRT = 0x00
HUT = 0x00
HLT = 0x00
config = 0x00
pretrk = 0
perp_mode = 0
buffer = floppy.buffer
drive0 = {
cylinder = 0
head = 0
sector = 0
eot = 0
media_present = false
DIR = 0x80
}
drive1 = {
cylinder = 0
head = 0
sector = 0
eot = 0
media_present = false
DIR = 0x80
}
drive2 = {
cylinder = 0
head = 0
sector = 0
eot = 0
media_present = false
DIR = 0x80
}
drive3 = {
cylinder = 0
head = 0
sector = 0
eot = 0
media_present = false
DIR = 0x80
}
}