Files
codex/scripts/codex_package/smoke_tests/conftest.py
Adam Perry @ OpenAI ad32eba832 Add smoke tests for assembled Codex packages (#40292)
## What changed

Add a cross-platform pytest suite that extracts the CLI and app-server
archives and verifies:

- common CLI discovery commands;
- code-mode execution through both packaged entrypoints, including use of each
  package's bundled `rg`; and
- the presence and usability of packaged debug symbols on Linux, macOS, and
  Windows.

The suite accepts gzip or zstd package archives and isolates its Codex
configuration and state from the invoking environment.

GitOrigin-RevId: 25e517d349242c9f6226e95ef41e37a783e2373f
2026-08-23 23:26:06 +00:00

40 lines
1.1 KiB
Python

from pathlib import Path
import pytest
from fixtures import code_mode_host_debug_symbols, package, responses_server
__all__ = ["code_mode_host_debug_symbols", "package", "responses_server"]
def pytest_addoption(parser: pytest.Parser) -> None:
group = parser.getgroup("Codex package smoke")
group.addoption(
"--compression",
choices=("gzip", "zstd"),
required=True,
help="Compression format of the supplied package archives.",
)
group.addoption(
"--package-target",
required=True,
help="Rust target triple for the assembled release packages.",
)
group.addoption(
"--cli-archive",
type=Path,
required=True,
help="Assembled Codex CLI package archive in the selected format.",
)
group.addoption(
"--app-server-archive",
type=Path,
required=True,
help="Assembled app-server package archive in the selected format.",
)
group.addoption(
"--symbols-archive",
type=Path,
required=True,
help="Gzip archive containing symbols for all packaged binaries.",
)