Skip to content

Commit 194ab2d

Browse files
Added gdb call in test_linux as a separate step
1 parent 946bab9 commit 194ab2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/conda-package.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,14 @@ jobs:
162162
. $CONDA/etc/profile.d/conda.sh
163163
conda activate test_dpctl
164164
python -c "import dpctl; dpctl.lsplatform(verbosity=2)"
165+
- name: Install gdb
166+
run: |
167+
sudo apt-get install -y gdb
168+
- name: Run test_elementwise under gdb
169+
run: |
170+
. $CONDA/etc/profile.d/conda.sh
171+
conda activate test_dpctl
172+
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${PYTHON} -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.test_tensor_elementwise::test_cos_order -vv
165173
- name: Run tests
166174
run: |
167175
. $CONDA/etc/profile.d/conda.sh

0 commit comments

Comments
 (0)