Skip to content

Tests: expand rpf integration tests for missing arguments and empty-TOC archives - #2193

Open
heditrigui wants to merge 1 commit into
xcl-dev:mainfrom
heditrigui:tests/rpf-cli-and-empty-toc-suite
Open

heditrigui wants to merge 1 commit into
xcl-dev:mainfrom
heditrigui:tests/rpf-cli-and-empty-toc-suite

Conversation

@heditrigui

Copy link
Copy Markdown
Contributor

Summary

Expands integration testing in crates/xcl/tests/rpf_e2e.rs to cover CLI error paths, missing arguments, and empty-TOC archives:

  • Verifies that invoking xcl rpf without arguments exits with code 2, prints usage help containing xcl rpf <package.rpf> to stdout, and writes nothing to stderr.
  • Verifies that attempting to inspect a nonexistent archive reports xcl rpf: <path> to stderr with exit code 2.
  • Verifies that non-RPF archives lacking the 9FPR magic report is not an RPF9 package to stderr with exit code 2.
  • Verifies that valid RPF9 headers without plain records report no records with plain names, invoke the probe summary, and exit cleanly with code 0.

Tested

  • python -m pytest scripts/ (25 passed in 0.50s).
  • Validated with scripts/pr_check.py --local.

Not tested

  • Retail game smoke execution (tests/ integration suites are non-runtime code).

AI use

  • Antigravity (Gemini 3.8 Flash (High))

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.

1 participant