Skip to content

[upstream #1735] Tests: add CLI integration test suite covering top-level flags and inspect - #393

Open
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1735
Open

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1735

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

Adds integration tests for xcl top-level CLI flags and inspect subcommand in crates/xcl/tests/cli_e2e.rs.

Coverage includes:

  • Top-level --version and -V flags (verifies exit 0 and xcl <version> output).
  • Top-level --help and -h flags (verifies exit 0 and usage text covering run, inspect, disasm, shaders, and rpf).
  • Unknown subcommand dispatch (verifies exit 2 with usage on stdout).
  • xcl inspect with missing arguments (verifies exit 2 with usage).
  • xcl inspect with nonexistent file (verifies exit 2 with cannot read error on stderr).
  • xcl inspect with invalid PE binary (verifies exit 3 with PE format error on stderr).
  • xcl inspect with valid PE binary both in plain-text output (File:, Type:, ImageBase:) and --json format output (verifies valid JSON containing file, machine, image_base, and imports).

Tested

  • Non-runtime integration test additions under crates/xcl/tests/cli_e2e.rs.
  • Python scripts test suite (python -m pytest scripts/ passing 16/16).
  • Validated with scripts/pr_check.py --local.

Not tested

  • Retail game smoke execution (crates/xcl/tests/ files are integration tests and non-runtime code).

AI use

  • Antigravity (Gemini 3.8 Flash (High))

Mirror of xcl-dev#1735 (auto-synced, do not edit).

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.

2 participants