(example, sandboxed_install_run)
| 216 | @pytest.mark.parametrize("example", API_EXAMPLES, ids=lambda case: str(case)) |
| 217 | @pytest.mark.script_launch_mode("subprocess") |
| 218 | def test_api_examples(example, sandboxed_install_run): |
| 219 | if mod.version(trt.__version__) < mod.version("8.0") and (example.path.endswith("07_tensorrt_and_dynamic_shapes")): |
| 220 | pytest.skip("Not intended for older versions of TRT") |
| 221 | |
| 222 | with example as commands: |
| 223 | for command in commands: |
| 224 | example.run(command, sandboxed_install_run) |
| 225 | |
| 226 | |
| 227 | CLI_EXAMPLES = [ |