Skip to content

Commit

Permalink
feat: enable cpp extension standalone test case
Browse files Browse the repository at this point in the history
  • Loading branch information
halajohn committed Oct 4, 2024
1 parent f3b0d4c commit f6a511a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/ten_runtime/integration/cpp/standalone_test/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import subprocess
import os
import sys
from sys import stdout
from .common import build_config

Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit f6a511a

Please sign in to comment.