mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-08-01 13:00:28 +02:00
15 lines
675 B
Python
15 lines
675 B
Python
from mamba import description, context, it, fit, before, after
|
|
from expects import expect, equal, contain, match
|
|
from helper.spec_helper import run_cmd, clean_env, kill_xvnc, clean_locks
|
|
|
|
with description("Benchmarking"):
|
|
with before.each:
|
|
clean_env()
|
|
with after.each:
|
|
kill_xvnc()
|
|
with it("runs benchmarks"):
|
|
run_cmd("wget --no-check-certificate https://kasmweb-build-artifacts.s3.us-east-1.amazonaws.com/kasmvnc/static/127072-737747495_small.mp4 -O /tmp/video.mp4")
|
|
completed_process = run_cmd("Xvnc -interface 0.0.0.0 :1 -Benchmark /tmp/video.mp4")
|
|
clean_locks()
|
|
expect(completed_process.returncode).to(equal(0))
|