8000 [SYCLomatic #223] Add and update test cases for new option -use-dpcpp… · oneapi-src/SYCLomatic-test@39305e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39305e7

Browse files
authored
[SYCLomatic #223] Add and update test cases for new option -use-dpcpp-extensions (#123)
1. Update the test bt-autocomplete 2. Add new negative test ngt-use-dpcpp-extensions Signed-off-by: Jiang, Zhiwei <zhiwei.jiang@intel.com>
1 parent 07b8557 commit 39305e7

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

behavior_tests/behavior_tests.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
<test testName="bt-analysis-scope-path3" configFile="config/TEMPLATE_behavior_tests.xml" />
149149
<test testName="bt-analysis-scope-path4" configFile="config/TEMPLATE_behavior_tests.xml" />
150150
<test testName="ngt-analysis-scope-path1" configFile="config/TEMPLATE_behavior_tests.xml" />
151+
<test testName="ngt-use-dpcpp-extensions" configFile="config/TEMPLATE_behavior_tests.xml" />
151152
<test testName="bt-check-install-files" configFile="config/TEMPLATE_behavior_tests.xml" />
152153
<test testName="bt-deprecate-custom-helper" configFile="config/TEMPLATE_behavior_tests.xml" />
153154
<test testName="bt-check-c2s" configFile="config/TEMPLATE_behavior_tests.xml" />

behavior_tests/src/bt-autocomplete/do_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def migrate_test():
147147
'--suppress-warnings-all\n' + \
148148
'--sycl-named-lambda\n' + \
149149
'--use-custom-helper=\n' + \
150+
'--use-dpcpp-extensions=\n' + \
150151
'--use-experimental-features=\n' + \
151152
'--use-explicit-namespace=\n' + \
152153
'--usm-level=\n' + \
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ====------ do_test.py---------- *- Python -* ----------------------------===#
2+
#
3+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
# See https://llvm.org/LICENSE.txt for license information.
5+
# SPDX-License-Identifier: Apache-2.0 WITH LLV C23B M-exception
6+
#
7+
# ===----------------------------------------------------------------------===#
8+
import subprocess
9+
import platform
10+
import os
11+
import sys
12+
from test_config import CT_TOOL
13+
14+
from test_utils import *
15+
16+
def setup_test():
17+
change_dir(test_config.current_test)
18+
return True
19+
20+
def migrate_test():
21+
22+
call_subprocess(test_config.CT_TOOL + " --cuda-include-path=" + test_config.include_path +
23+
" --use-dpcpp-extensions=abc")
24+
return is_sub_string("Cannot find option named 'abc'", test_config.command_output)
25+
26+
def build_test():
27+
return True
28+
29+
def run_test():
30+
return True

0 commit comments

Comments
 (0)
0