Skip to content

tests: add unittest for DMA line drawing length (core #873) - #242

Open
VedantMadane wants to merge 1 commit into
MEGA65:developmentfrom
VedantMadane:test/dma-line-length-873
Open

tests: add unittest for DMA line drawing length (core #873)#242
VedantMadane wants to merge 1 commit into
MEGA65:developmentfrom
VedantMadane:test/dma-line-length-873

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

Adds test_873.prg, a unit test for DMA line-drawing length (mega65-core#873 / tools#239).

Details

Core PR MEGA65/mega65-core#887 fixed an off-by-two in DMAgic line mode startup delay that shortened drawn lines. This test:

  • Sets up 320x200 FCM graphics (same layout as test_290.c line draw)
  • Draws axis-aligned lines with explicit qty pixel counts
  • Checks start, near-end, and end pixels in the framebuffer via lpeek
  • Confirms past-end pixels stay clear on short lines (catches over/under-draw)
  • Reports results through the standard unit_test_* UART framework

Wired into Makefile TESTS and src/tests/regression-tests.lst.

Closes #239

Add test_873.prg covering the off-by-two DMAgic line qty bug fixed in mega65-core#887. Draws axis-aligned lines with explicit pixel counts and checks FCM framebuffer endpoints via lpeek + unit_test UART logging.

Closes MEGA65#239

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UNITTEST] DMA Line Drawing - Calculated length is incorrect

1 participant