vinix-ports / ports / libseccomp / check.py
8 lines · 7 sloc · 466 bytes · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1"""Query both release ABI tables with the target resolver."""
2import subprocess
3
4for architecture, expected in (("x86_64", "0"), ("aarch64", "63")):
5 result = subprocess.check_output(["vinix-run", "--library-path", "src/.libs",
6 "tools/.libs/scmp_sys_resolver", "-a", architecture, "read"], text=True)
7 if result.strip() != expected:
8 raise SystemExit(f"incorrect read syscall for {architecture}: {result.strip()}")
9