NOTE
Historical document. Planning/test artifact from the removed Rust prototype (crates/xl1200-emu). Paths, cargo commands and the 1 GB test_1gb.sh rule no longer apply; the current emulator is the C11 tree in emu/ (make -C emu test, make -C emu test-e2e).
E2E Test Infra: Standalone Symbolics Ivory XL1200 / NXP1000 Hardware Platform Emulation
Test Philosophy
- Opaque-box, requirement-driven. Derived strictly from
ORIGINAL_REQUEST.mdand hardware specifications, independent of internal implementation details. - Methodology: Category-Partition + Boundary Value Analysis (BVA) + Pairwise Combinatorial Testing + Real-World Workload Testing.
- Zero mock strings or synthetic instruction injections; asserts authentic binary execution, hardware register transactions, and genuine cycle progression past reset.
Feature Inventory
| # | Feature | Source (Requirement) | Tier 1 | Tier 2 | Tier 3 |
|---|---|---|---|---|---|
| 1 | FEP Disk Formatting & Label ("LABL") | ORIGINAL_REQUEST §R1 | 5 | 5 | ✓ |
| 2 | FEP Block Header & Checkwords ("FEPF") | ORIGINAL_REQUEST §R1 | 5 | 5 | ✓ |
| 3 | Root Directory & Extent Data Maps | ORIGINAL_REQUEST §R1 | 5 | 5 | ✓ |
| 4 | IFEP-Kernel Packaging & 5-Byte Alignment | ORIGINAL_REQUEST §R1 | 5 | 5 | ✓ |
| 5 | ivory-disk CLI Subcommands (format, add, ls, verify) | ORIGINAL_REQUEST §R1 | 5 | 5 | ✓ |
| 6 | WD33C93 SASR & SCMD Register Handshake | ORIGINAL_REQUEST §R2 | 5 | 5 | ✓ |
| 7 | SCSI CDB Command Processing (TUR, INQUIRY, READ) | ORIGINAL_REQUEST §R2 | 5 | 5 | ✓ |
| 8 | 1280-Byte Sector Block Read & DMA | ORIGINAL_REQUEST §R2 | 5 | 5 | ✓ |
| 9 | Merlin ESDI Clean Register Stub | ORIGINAL_REQUEST §R2 | 5 | 5 | ✓ |
| 10 | 1280×1024 1-Bit Framebuffer Memory Mapping | ORIGINAL_REQUEST §R3 | 5 | 5 | ✓ |
| 11 | SLB Console Packet & Keystroke Translation | ORIGINAL_REQUEST §R3 | 5 | 5 | ✓ |
| 12 | Z8530 SCC Serial UART Controller & Baud Timing | ORIGINAL_REQUEST §R3 | 5 | 5 | ✓ |
| 13 | NXP1000 Headless Serial Console & Ctrl-_ Escapes | ORIGINAL_REQUEST §R3 | 5 | 5 | ✓ |
| 14 | EPROM Bus Swapping & Call Indirection Fix | ORIGINAL_REQUEST §R4 | 5 | 5 | ✓ |
| 15 | Authentic ROM Reset Past 0o777400100 (>50k Cycles) | ORIGINAL_REQUEST §R4 | 5 | 5 | ✓ |
| 16 | Hardware Storage Transfer to Guest RAM | ORIGINAL_REQUEST §R4 | 5 | 5 | ✓ |
| 17 | Diagnostic & Prompt Text Emission (UART / Video) | ORIGINAL_REQUEST §R4 | 5 | 5 | ✓ |
Test Architecture
- Test runner:
cargo test --workspaceand integration test binaries incrates/xl1200-emu/tests/andcrates/ivory-disk/tests/. - Test case format:
- Unit tests in
ivory-diskandxl1200-emuverifying binary struct layouts, magic headers, register state transitions, and scan code decoders. - End-to-end integration tests spawning the emulator with genuine
ivory-fep-roms/fep330/rom.dumpand generated virtual disk image containingIFEP-Kernel. - Pass/Fail semantics: All tests must exit 0; guest CPU must increment
dbg.cpu.state.cycle_countpast 50,000 without hitting%haltbarriers (0o0777401744,0o0777410747); active storage controller register reads/writes must be asserted; serial stream / framebuffer must receive output.
- Unit tests in
Real-World Application Scenarios (Tier 4)
| # | Scenario | Features Exercised | Complexity |
|---|---|---|---|
| 1 | Full Virtual Disk Generation & Self-Verification | F1, F2, F3, F4, F5 | Medium |
| 2 | Authentic FEP 3.30 PROM Cold Boot past 50,000 cycles | F6, F7, F8, F9, F14, F15 | High |
| 3 | WD33C93 SCSI Virtual Disk Read into Guest Memory | F6, F7, F8, F16 | High |
| 4 | Headless NXP1000 Serial UART Console Interaction | F12, F13, F15, F17 | High |
| 5 | Full Interactive Workstation Boot with Framebuffer & SLB | F10, F11, F15, F17 | High |
Coverage Thresholds
- Number of features (\(N\)): 17
- Tier 1: \(\ge 5 \times 17 = 85\) test cases
- Tier 2: \(\ge 5 \times 17 = 85\) test cases
- Tier 3: \(\ge 17\) cross-feature combination test cases
- Tier 4: \(\ge \max(5, \lceil 17/2 \rceil) = 9\) real-world application scenarios
- Total Minimum Target: \(\ge 196\) test cases
- Western Digital WD33C93A —
wd_WD33C93A_datasheet_and_appnotes_1990.pdf(mirror) - Western Digital WD33C93A —
wd_WD33C93A_scsi_datasheet.pdf(mirror)