Skip to content

Commit

Permalink
Add priority inversion test to github workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyma98 committed Aug 13, 2024
1 parent ed9ab51 commit c8ee769
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ runs:
sub-category: mutex
test-name: poison

- name: Build test test-sync-mutex-priority_inversion
uses: ./.github/workflows/actions/build-test
with:
category: sync
sub-category: mutex
test-name: priority_inversion

# *** Tests for task - priority ***

- name: Build test test-task-priority-reduce_priority
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/mutex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
category: sync
sub-category: mutex
test-name: basic

stress:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -64,4 +64,18 @@ jobs:
cookie: ${{ secrets.cookie }}
category: sync
sub-category: mutex
test-name: poison
test-name: poison

priority_inversion:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run test priority_inversion
uses: ./.github/workflows/actions/run-test
with:
cookie: ${{ secrets.cookie }}
category: sync
sub-category: mutex
test-name: priority_inversion
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ path = "examples/tests/sync/mutex/priority.rs"
name = "test-sync-mutex-poison"
path = "examples/tests/sync/mutex/poison.rs"

[[example]]
name = "test-sync-mutex-priority_inversion"
path = "examples/tests/sync/mutex/priority_inversion.rs"

# *** Tests for sync - channel ***

[[example]]
Expand Down Expand Up @@ -177,10 +181,6 @@ path = "examples/tests/sync/channel/produce_consume_single_task.rs"

# *** Tests for task - unwind ***

[[example]]
name = "test-sync-mutex-priority_inversion"
path = "examples/tests/sync/mutex/priority_inversion.rs"

[[example]]
name = "test-task-unwind-diverted"
path = "examples/tests/task/unwind/diverted.rs"
Expand Down

0 comments on commit c8ee769

Please sign in to comment.