Files
Triforce-Source/tests/test_movie_upscale_policy.py
ruckus7382sfgsgdf 34b3683441 Triforce v0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:32:48 -06:00

23 lines
755 B
Python

"""Compile and run the production movie-upscale policy helper (no game/GPU required)."""
import argparse
import subprocess
import tempfile
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--cxx", default="g++")
args = parser.parse_args()
with tempfile.TemporaryDirectory(prefix="movie-upscale-policy-") as tmp:
exe = Path(tmp) / "movie-upscale-policy"
subprocess.run([args.cxx, "-std=c++20", "-Wall", "-Wextra", "-Werror",
str(ROOT / "tests/test_movie_upscale_policy.cpp"), "-o", str(exe)], check=True)
subprocess.run([str(exe)], check=True)
if __name__ == "__main__":
main()