-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdo_test.py
More file actions
28 lines (24 loc) · 929 Bytes
/
do_test.py
File metadata and controls
28 lines (24 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ====------ do_test.py---------- *- Python -* ----===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#
# ===----------------------------------------------------------------------===#
import subprocess
import platform
import os
import sys
from test_utils import *
def setup_test(single_case_text):
change_dir(single_case_text.name, single_case_text)
return True
def migrate_test(single_case_text):
call_subprocess(single_case_text.CT_TOOL + " --cuda-include-path=" + single_case_text.include_path + " " +
os.path.join("cuda", "migrate_nonbuilding_code.cu"), single_case_text)
return is_sub_string("unknown type name", single_case_text.print_text)
def build_test(single_case_text):
return True
def run_test(single_case_text):
return True