main
py 19 lines 457 Bytes
Raw
1 # SPDX-License-Identifier: Apache-2.0
2 # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 import subprocess
4
5 import pytest
6
7
8 @pytest.mark.benchmark
9 def test_bench_startup():
10 command = [
11 "vllm",
12 "bench",
13 "startup",
14 ]
15 result = subprocess.run(command, capture_output=True, text=True)
16 print(result.stdout)
17 print(result.stderr)
18
19 assert result.returncode == 0, f"Benchmark failed: {result.stderr}"