From a41b3c14eb3d7005114e2bdda48895763c1acd54 Mon Sep 17 00:00:00 2001 From: Ziran Zhang Date: Fri, 15 Jul 2022 18:31:36 +0800 Subject: [PATCH] [SYCLomatic] Add ngt test for option query-api-mapping --- behavior_tests/behavior_tests.xml | 1 + .../src/ngt-query-api-mapping/do_test.py | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 behavior_tests/src/ngt-query-api-mapping/do_test.py diff --git a/behavior_tests/behavior_tests.xml b/behavior_tests/behavior_tests.xml index c733c021e..76b33bb2a 100644 --- a/behavior_tests/behavior_tests.xml +++ b/behavior_tests/behavior_tests.xml @@ -137,6 +137,7 @@ + diff --git a/behavior_tests/src/ngt-query-api-mapping/do_test.py b/behavior_tests/src/ngt-query-api-mapping/do_test.py new file mode 100644 index 000000000..f7d39e57a --- /dev/null +++ b/behavior_tests/src/ngt-query-api-mapping/do_test.py @@ -0,0 +1,29 @@ +# ====------ 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_config import CT_TOOL + +from test_utils import * + +def setup_test(): + change_dir(test_config.current_test) + return True + +def migrate_test(): + call_subprocess(test_config.CT_TOOL + " -query-api-mapping=fail") + return is_sub_string("Mapping for fail is not available", test_config.command_output) + +def build_test(): + return True + +def run_test(): + return True \ No newline at end of file