Skip to content

Commit 2baf28d

Browse files
TEST: env val to enbale DPNP backend tests (#534)
* TEST: env val to enbale DPNP backend tests
1 parent 87163d0 commit 2baf28d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

scripts/azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,5 @@ jobs:
255255
./scripts/install_system_deps.sh # no intel python
256256
./scripts/install_python_deps.sh # numpy, conda-build and etc.
257257
echo ========================= build DPNP package ===============================
258+
export DPNP_BACKEND_TESTS_ENABLE=1
258259
./0.build.sh

utils/command_build_cmake_clib.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@
7373
"""
7474
pass
7575

76+
"""
77+
Detect enabling DPNP backend tests
78+
"""
79+
_dpnp_backend_tests_enable = os.environ.get('DPNP_BACKEND_TESTS_ENABLE', None)
80+
7681

7782
"""
7883
CmakeList.txt based build_clib
@@ -99,7 +104,7 @@ def run(self):
99104

100105
if IS_WIN:
101106
cmake_generator = "-GNinja"
102-
if IS_LIN:
107+
if _dpnp_backend_tests_enable is not None:
103108
enable_tests = "ON"
104109

105110
cmake_args = [

0 commit comments

Comments
 (0)