Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
key: ${{ runner.os }}-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.toolchain }}-
- run: sudo apt-get install libvirt-dev fuse3
- run: sudo apt-get install libvirt-dev fuse3 dbus python3-pytest python3-dbus
- run: make pre-push
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
/tests/component/__pycache__
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ clean:
unit-test:
RUST_BACKTRACE=1 cargo test --all-features

.PHONY: component-test
component-test:
cargo build --locked --no-default-features \
--features threshold-engine,fake-backend,mockfs
python3 -m pytest tests/component -q

.PHONY: test
test: unit-test
test: unit-test component-test

.PHONY: pre-push
pre-push: check test
Expand Down
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
pythonpath = tests/component
testpaths = tests/component
Loading
Loading