diff --git a/tests/1-gdextension/build.py b/tests/1-gdextension/build.py index d4e2e802..85198891 100644 --- a/tests/1-gdextension/build.py +++ b/tests/1-gdextension/build.py @@ -4,11 +4,11 @@ PROJECT_DIR = Path(__file__).resolve().parent -GODOT_HEADERS_DIR = PROJECT_DIR / "godot_headers" +GDEXTENSION_DIR = PROJECT_DIR / "gdextension_api" if platform.system() == "Windows": - cmd = ["cl.exe", "/DEBUG", "/LD", "my.c", "/I", str(GODOT_HEADERS_DIR)] + cmd = ["cl.exe", "/DEBUG", "/LD", "my.c", "/I", str(GDEXTENSION_DIR)] print(f"cd {PROJECT_DIR} && " + " ".join(cmd)) subprocess.check_call(cmd, cwd=PROJECT_DIR) @@ -24,7 +24,7 @@ "-o", "my.o", "-I", - str(GODOT_HEADERS_DIR), + str(GDEXTENSION_DIR), ] print(f"cd {PROJECT_DIR} && " + " ".join(cmd)) subprocess.check_call(cmd, cwd=PROJECT_DIR) diff --git a/tests/run.py b/tests/run.py index ba3e02c2..6b74e739 100644 --- a/tests/run.py +++ b/tests/run.py @@ -123,8 +123,8 @@ def create_test_workdir(test_dir: Path, distrib_workdir: Path, test_workdir: Pat shutil.copytree(test_dir, test_workdir, dirs_exist_ok=True) symlink(distrib_workdir / "addons", test_workdir / "addons") shutil.copy(distrib_workdir / "pythonscript.gdextension", test_workdir) - # Godot headers are needed to compile Cython modules - symlink(test_dir / "../../godot_headers", test_workdir / "godot_headers") + # GDExtension headers are needed to compile Cython modules + symlink(build_dir / "gdextension_api", test_workdir / "gdextension_api") build_script = test_workdir / "build.py" if build_script.exists():