Skip to content

Commit

Permalink
ci(linux): set core pattern in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Sep 9, 2023
1 parent a95aa28 commit aa557cb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Set core dump file pattern
run: |
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
ulimit -c unlimited
python3.10 -c "import ctypes;ctypes.string_at(0)" || true
ls core.*
Expand All @@ -126,48 +126,56 @@ jobs:
- name: Run unit tests
run: |
ulimit -c unlimited
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
.venv/bin/pytest -sv test/cunit
- name: Run functional Austin tests (with sudo)
run: |
ulimit -c unlimited
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a test/functional -k "not austinp"
if: always()

- name: Run functional Austin tests (without sudo)
run: |
ulimit -c unlimited
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
.venv/bin/pytest --pastebin=failed -svr a test/functional -k "not austinp"
if: always()

- name: Run functional austinp tests (with sudo)
run: |
ulimit -c unlimited
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a test/functional -k "austinp"
if: always()

- name: Run functional austinp tests (without sudo)
run: |
ulimit -c unlimited
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
.venv/bin/pytest --pastebin=failed -svr a test/functional -k "austinp"
if: always()

- name: Run integrity tests (with sudo)
run: |
ulimit -c unlimited
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a test/integrity
if: always()

- name: Run integrity tests (without sudo)
run: |
ulimit -c unlimited
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
.venv/bin/pytest --pastebin=failed -svr a test/integrity
if: always()

- name: Run support tests
run: |
ulimit -c unlimited
.venv/bin/pytest -sv test/support
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
sudo -E env PATH="$PATH" .venv/bin/pytest -sv test/support
if: always()

wheels-linux:
Expand Down

0 comments on commit aa557cb

Please sign in to comment.