3 """Basic sanity checks on compiled executables."""
5 from subprocess import run, PIPE
7 from testlib import path, check
8 from testlib.log import log
14 path.SPTPS_KEYPAIR_PATH,
17 log.info('testing command "%s"', cmd)
18 res = run(cmd, stdout=PIPE, stderr=PIPE, encoding="utf-8", timeout=10, check=False)
19 check.equals(0, res.returncode)
20 check.is_in("Usage:", res.stdout, res.stderr)