XL1200-EMU Symbolics XL1200 Emulator
Archive & Legacy Notes docs/history/TEST_INFRA.md
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.md and 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

#FeatureSource (Requirement)Tier 1Tier 2Tier 3
1FEP Disk Formatting & Label ("LABL")ORIGINAL_REQUEST §R155✓
2FEP Block Header & Checkwords ("FEPF")ORIGINAL_REQUEST §R155✓
3Root Directory & Extent Data MapsORIGINAL_REQUEST §R155✓
4IFEP-Kernel Packaging & 5-Byte AlignmentORIGINAL_REQUEST §R155✓
5ivory-disk CLI Subcommands (format, add, ls, verify)ORIGINAL_REQUEST §R155✓
6WD33C93 SASR & SCMD Register HandshakeORIGINAL_REQUEST §R255✓
7SCSI CDB Command Processing (TUR, INQUIRY, READ)ORIGINAL_REQUEST §R255✓
81280-Byte Sector Block Read & DMAORIGINAL_REQUEST §R255✓
9Merlin ESDI Clean Register StubORIGINAL_REQUEST §R255✓
101280×1024 1-Bit Framebuffer Memory MappingORIGINAL_REQUEST §R355✓
11SLB Console Packet & Keystroke TranslationORIGINAL_REQUEST §R355✓
12Z8530 SCC Serial UART Controller & Baud TimingORIGINAL_REQUEST §R355✓
13NXP1000 Headless Serial Console & Ctrl-_ EscapesORIGINAL_REQUEST §R355✓
14EPROM Bus Swapping & Call Indirection FixORIGINAL_REQUEST §R455✓
15Authentic ROM Reset Past 0o777400100 (>50k Cycles)ORIGINAL_REQUEST §R455✓
16Hardware Storage Transfer to Guest RAMORIGINAL_REQUEST §R455✓
17Diagnostic & Prompt Text Emission (UART / Video)ORIGINAL_REQUEST §R455✓

Test Architecture

  • Test runner: cargo test --workspace and integration test binaries in crates/xl1200-emu/tests/ and crates/ivory-disk/tests/.
  • Test case format:
    • Unit tests in ivory-disk and xl1200-emu verifying 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.dump and generated virtual disk image containing IFEP-Kernel.
    • Pass/Fail semantics: All tests must exit 0; guest CPU must increment dbg.cpu.state.cycle_count past 50,000 without hitting %halt barriers (0o0777401744, 0o0777410747); active storage controller register reads/writes must be asserted; serial stream / framebuffer must receive output.

Real-World Application Scenarios (Tier 4)

#ScenarioFeatures ExercisedComplexity
1Full Virtual Disk Generation & Self-VerificationF1, F2, F3, F4, F5Medium
2Authentic FEP 3.30 PROM Cold Boot past 50,000 cyclesF6, F7, F8, F9, F14, F15High
3WD33C93 SCSI Virtual Disk Read into Guest MemoryF6, F7, F8, F16High
4Headless NXP1000 Serial UART Console InteractionF12, F13, F15, F17High
5Full Interactive Workstation Boot with Framebuffer & SLBF10, F11, F15, F17High

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
Related Chip Datasheets (2)All Component Datasheets →