diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 1c8d2d62a44e..4c3b3fa1c9ac 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -50,6 +50,7 @@ build: test: requires: - pytest + - pytest-repeat - setuptools about: diff --git a/conda-recipe/run_test.bat b/conda-recipe/run_test.bat index f6f6a061c5fa..3d77d24d7c39 100644 --- a/conda-recipe/run_test.bat +++ b/conda-recipe/run_test.bat @@ -8,6 +8,11 @@ if defined ONEAPI_ROOT ( set "DPLROOT=%ONEAPI_ROOT%\dpl\latest" ) +echo "DPCPPROOT=%DPCPPROOT%" +echo "MKLROOT=%MKLROOT%" +echo "TBBROOT=%TBBROOT%" +echo "DPLROOT=%DPLROOT%" + REM if DPCPPROOT is specified (work with custom DPCPP) if defined DPCPPROOT ( call "%DPCPPROOT%\env\vars.bat" @@ -37,5 +42,47 @@ if %errorlevel% neq 0 exit 1 "%PYTHON%" -m dpctl -f if %errorlevel% neq 0 exit 1 +echo "Test only dpnp.tests.test_usm_type::TestFft::test_rfftn" + +REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test-wheel-conda-stable/236 +"%PYTHON%" -m pytest --count 300 -ra -v --pyargs dpnp.tests.test_usm_type::TestFft::test_rfftn +if %errorlevel% neq 0 exit 1 + +"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type::TestFft::test_fft +if %errorlevel% neq 0 exit 1 + +echo "Test only dpnp.tests.test_usm_type::test_norm" + +REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.12/job/test-stable/137/ +"%PYTHON%" -m pytest --count 300 -ra -v --pyargs dpnp.tests.test_usm_type::test_norm +if %errorlevel% neq 0 exit 1 + +echo "Test only dpnp.tests.test_usm_type::TestFft::test_fftfreq" + +REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test-stable/120/ +"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type::TestFft::test_fftfreq +if %errorlevel% neq 0 exit 1 + +echo "Test only dpnp.tests.test_usm_type::TestFft" + +REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test/1713/ +REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test-wheel-conda-stable/232/ +REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.12/job/test-wheel-conda-stable/234/ +"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type::TestFft +if %errorlevel% neq 0 exit 1 + +echo "Test only dpnp.tests.test_usm_type" + +"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type +if %errorlevel% neq 0 exit 1 + +echo "Test only dpnp.tests.test_indexing" + +REM https://cje-fm-owrp-prod04.devtools.intel.com/satg-dap-intelpython/job/intel-packages/job/dpnp/job/dev-windows-py3.11/job/test-wheel-conda/1733/ +"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_indexing +if %errorlevel% neq 0 exit 1 + +echo "Test everything" + "%PYTHON%" -m pytest -ra --pyargs dpnp if %errorlevel% neq 0 exit 1 diff --git a/conda-recipe/run_test.sh b/conda-recipe/run_test.sh index b2c96df36242..7a434aac6cc6 100755 --- a/conda-recipe/run_test.sh +++ b/conda-recipe/run_test.sh @@ -37,4 +37,5 @@ set -e $PYTHON -c "import dpnp; print(dpnp.__version__)" $PYTHON -m dpctl -f +$PYTHON -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type::test_2in_1out $PYTHON -m pytest -ra --pyargs dpnp diff --git a/dpnp/tests/test_usm_type.py b/dpnp/tests/test_usm_type.py index 74fdd28d1272..91a256ae0cc2 100644 --- a/dpnp/tests/test_usm_type.py +++ b/dpnp/tests/test_usm_type.py @@ -16,7 +16,8 @@ is_win_platform, ) -list_of_usm_types = ["device", "shared", "host"] +# list_of_usm_types = ["device", "shared", "host"] +list_of_usm_types = ["shared"] @pytest.mark.parametrize("usm_type_x", list_of_usm_types, ids=list_of_usm_types) @@ -573,9 +574,10 @@ def test_meshgrid(usm_type_x, usm_type_y): @pytest.mark.parametrize("usm_type", list_of_usm_types, ids=list_of_usm_types) -@pytest.mark.parametrize( - "ord", [None, -dp.inf, -2, -1, 1, 2, 3, dp.inf, "fro", "nuc"] -) +# @pytest.mark.parametrize( +# "ord", [None, -dp.inf, -2, -1, 1, 2, 3, dp.inf, "fro", "nuc"] +# ) +@pytest.mark.parametrize("ord", [None]) @pytest.mark.parametrize( "axis", [-1, 0, 1, (0, 1), (-2, -1), None],