File size: 1,146 Bytes
2569bec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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.",
    )