Skip to content

Commit

Permalink
test in ci...
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmith- committed Aug 21, 2024
1 parent 41f68ea commit 57a63c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,10 @@ def test_cmake_static_compilation(csetstr: str):
print(ret.stdout.decode())
print(ret.stderr.decode())
raise RuntimeError(f"cmake build failed (args: {ret.args})")
import glob

print("\n".join(glob.glob(os.path.join(tmpdir, "*"))))
if os.name == "nt":
print("\n".join(glob.glob(os.path.join(tmpdir, "Debug", "*"))))
prog = r"Debug\test.exe" if os.name == "nt" else "test"
subprocess.run([os.path.join(tmpdir, prog)], check=True)
subprocess.run([os.path.join(tmpdir, prog)], check=True, cwd=tmpdir)

0 comments on commit 57a63c7

Please sign in to comment.