diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000000000000000000000000000000000000..30ab3b4442741ca02beb1c107d0572f0c35b2809 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,18 @@ +import sys +import subprocess + + +def run_command(cmd: str, args: str): + cmd = f"{sys.executable} -m bitia {cmd} {args}" + print(f"Executing `{cmd}`") + return subprocess.check_output(cmd) + + +def test_cli_sanity(): + output = run_command("run", '"ls -ltr /"') + print(output.decode().rstrip()) + assert len(output) > 20, "Too little output" + + +if __name__ == "__main__": + test_cli_sanity()