forked from cloud-hypervisor/fuse-backend-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
49 lines (41 loc) · 2.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
current_dir := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
build:
cargo build --features="fusedev"
cargo build --features="virtiofs"
cargo build --features="vhost-user-fs"
cargo build --features="fusedev,async-io"
cargo build --features="virtiofs,async-io"
cargo build --features="vhost-user-fs,async-io"
build-macos:
cargo build --features="fusedev"
cargo build --features="fusedev,fuse-t"
check-macos: build-macos
cargo fmt -- --check
cargo clippy --features="fusedev" -- -Dwarnings
cargo test --features="fusedev" -- --nocapture --skip integration
cargo clippy --features="fusedev,fuse-t" -- -Dwarnings
cargo test --features="fusedev,fuse-t" -- --nocapture --skip integration
check: build
cargo fmt -- --check
cargo clippy --features="fusedev" --no-default-features -- -Dwarnings
cargo clippy --features="virtiofs" --no-default-features -- -Dwarnings
cargo clippy --features="vhost-user-fs" --no-default-features -- -Dwarnings
cargo clippy --features="fusedev,virtiofs" --no-default-features -- -Dwarnings
cargo test --features="fusedev" --no-default-features -- --nocapture --skip integration
cargo test --features="virtiofs" --no-default-features -- --nocapture --skip integration
cargo test --features="vhost-user-fs" --no-default-features -- --nocapture --skip integration
cargo test --features="fusedev,virtiofs" --no-default-features -- --nocapture --skip integration
cargo test --features="fusedev,async-io" --no-default-features -- --nocapture --skip integration
cargo test --features="virtiofs,async-io" --no-default-features -- --nocapture --skip integration
cargo test --features="vhost-user-fs,async-io" --no-default-features -- --nocapture --skip integration
cargo test --features="fusedev,virtiofs,async-io" --no-default-features -- --nocapture --skip integration
cargo test --features="fusedev,persist" --no-default-features -- --nocapture --skip integration
cargo test --all-features -- --nocapture --skip integration
smoke: check
cargo test --features="fusedev,persist" -- --nocapture
smoke-all: smoke
cargo test --features="fusedev,persist" -- --nocapture --ignored
smoke-macos: check-macos
cargo test --features="fusedev,fuse-t" -- --nocapture
docker-smoke:
docker run --env RUST_BACKTRACE=1 --rm --privileged --volume ${current_dir}:/fuse-rs rust:1.68 sh -c "rustup component add clippy rustfmt; cd /fuse-rs; make smoke-all"