Skip to content

Commit fd65511

Browse files
Run test_usm_ndarray_topk under gdb in few combination
1 parent 4c8d7d7 commit fd65511

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/conda-package.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,19 +208,39 @@ jobs:
208208
. $CONDA/etc/profile.d/conda.sh
209209
conda activate ${{ env.TEST_ENV_NAME }}
210210
python -c "import dpctl; dpctl.lsplatform(verbosity=2)"
211+
- name: Create test temp dir
212+
# create temporary empty folder to runs tests from
213+
# https://github.com/pytest-dev/pytest/issues/11904
214+
run: mkdir -p ${GITHUB_WORKSPACE}/test_tmp
215+
211216
- name: Install gdb
212217
run: |
213218
sudo apt-get update --fix-missing
214219
sudo apt-get install -y gdb
215-
- name: Run test_elementwise under gdb
220+
- name: Run test_usm_ndarray_top_k under gdb
216221
run: |
217222
. $CONDA/etc/profile.d/conda.sh
218223
conda activate ${{ env.TEST_ENV_NAME }}
219-
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.elementwise.test_trigonometric::test_trig_order -vv || true
220-
- name: Create test temp dir
221-
# create temporary empty folder to runs tests from
222-
# https://github.com/pytest-dev/pytest/issues/11904
223-
run: mkdir -p ${GITHUB_WORKSPACE}/test_tmp
224+
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.test_usm_ndarray_sorting dpctl.tests.test_usm_ndarray_unique dpctl.tests.test_usm_ndarray_top_k -vv || true
225+
226+
- name: Run test_usm_ndarray_top_k under gdb 2
227+
run: |
228+
. $CONDA/etc/profile.d/conda.sh
229+
conda activate ${{ env.TEST_ENV_NAME }}
230+
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.test_usm_ndarray_sorting dpctl.tests.test_usm_ndarray_top_k -vv || true
231+
232+
- name: Run test_usm_ndarray_top_k under gdb 3
233+
run: |
234+
. $CONDA/etc/profile.d/conda.sh
235+
conda activate ${{ env.TEST_ENV_NAME }}
236+
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.test_usm_ndarray_unique dpctl.tests.test_usm_ndarray_top_k -vv || true
237+
238+
- name: Run test_usm_ndarray_top_k under gdb 4
239+
run: |
240+
. $CONDA/etc/profile.d/conda.sh
241+
conda activate ${{ env.TEST_ENV_NAME }}
242+
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.test_usm_ndarray_top_k -vv || true
243+
224244
- name: Run tests
225245
working-directory: ${{ github.workspace }}/test_tmp
226246
env:

0 commit comments

Comments
 (0)