Skip to content

Include multi-file cases and reject empty suites in the FreeBSD VM runner #506

Closed

Description

@LunaStev

Problem and code evidence

tools/check_freebsd_sys.py added in #502 discovers only test*.wave directly in a FreeBSD architecture directory. The regular case runner also supports testN/main.wave directories. Moving an integration test into that supported multi-file layout therefore silently drops it from FreeBSD VM execution.

At e204bbebbbede0086fbb670d43a65b9cf38f0231, the VM runner also has no empty-selection check. With no matching standalone files, it generates a shell loop with no cases and no result checks. This is a missing guard, not a claim that an empty-suite VM run was executed during this audit.

Local discovery reproduction, no VM required:

from pathlib import Path
from tempfile import TemporaryDirectory
with TemporaryDirectory() as tmp:
    suite = Path(tmp)
    (suite / "test1").mkdir()
    (suite / "test1/main.wave").write_text("fun main() -> i32 { return 0; }\n")
    print(list(suite.glob("test*.wave")))  # [] despite one supported multi-file case

Start with the discovery/build/result loops in tools/check_freebsd_sys.py and compare iter_test_entries in tools/run_tests.py.

Acceptance

  • Discover both standalone testN.wave and multi-file testN/main.wave cases with deterministic numeric ordering.
  • Preserve the logical case name and build the correct main.o for a directory case.
  • Reject empty or invalid/ambiguous selections before launching external tools or a VM.
  • Add temporary-directory Python tests covering standalone, multi-file, mixed and empty suites; no LLVM, QEMU or downloads needed.
  • Keep the existing O0/O2 execution and per-case result checks.

This is a small runner-discovery follow-up suitable for a first contribution. #460 covers orphan manifest directories and #461 covers the case generator; neither covers this VM runner.

Activity

  1. added
    bug
    good first issue
    needs testing
    on Sep 7, 2026
  2. self-assigned this
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issueneeds testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions