diff --git a/tests/ten_runtime/integration/cpp/standalone_test/test_case.py b/tests/ten_runtime/integration/cpp/standalone_test/test_case.py index faea2843b6..c82f0fb143 100644 --- a/tests/ten_runtime/integration/cpp/standalone_test/test_case.py +++ b/tests/ten_runtime/integration/cpp/standalone_test/test_case.py @@ -4,6 +4,7 @@ import subprocess import os +import sys from sys import stdout from .common import build_config @@ -44,8 +45,13 @@ def test_standalone_test(): # Step 2: # # Execute tgn gen to generate the build files. + if sys.platform == "win32": + tgn_cmd = os.path.join(root_dir, "../../../core/ten_gn/tgn.bat") + else: + tgn_cmd = os.path.join(root_dir, "../../../core/ten_gn/tgn") + tgn_gen_cmd = [ - "tgn", + tgn_cmd, "gen", build_config_args.target_os, build_config_args.target_cpu, @@ -68,7 +74,7 @@ def test_standalone_test(): # # Execute tgn build to build the extension and its test cases. tgn_build_cmd = [ - "tgn", + tgn_cmd, "build", build_config_args.target_os, build_config_args.target_cpu,