-
Notifications
You must be signed in to change notification settings - Fork 285
Expand file tree
/
Copy pathTaskfile.yml
More file actions
68 lines (54 loc) · 1.55 KB
/
Taskfile.yml
File metadata and controls
68 lines (54 loc) · 1.55 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3"
vars:
CARGO: cargo
LIVE_TIMEOUT_SECS: '{{default "30" .LIVE_TIMEOUT_SECS}}'
tasks:
build:
desc: Build debug binaries
cmds:
- "{{.CARGO}} build"
build-release:
desc: Build release binaries
cmds:
- "{{.CARGO}} build --release"
test:
desc: Run unit + integration tests (live mount tests remain ignored)
cmds:
- "{{.CARGO}} test"
test-live:
desc: Run live-mount FUSE integration tests (requires Linux+FUSE); sets ENCFS_LIVE_TESTS=1
cmds:
- |
set -euo pipefail
ENCFS_LIVE_TESTS=1 ENCFS_LIVE_MOUNT_TIMEOUT_SECS='{{.LIVE_TIMEOUT_SECS}}' \
{{.CARGO}} test --test live_mount -- --ignored --test-threads=1
fmt:
desc: Format Rust code
cmds:
- "{{.CARGO}} fmt"
fmt-check:
desc: Check formatting (CI-friendly)
cmds:
- "{{.CARGO}} fmt -- --check"
clippy:
desc: Run clippy (lints)
cmds:
- "{{.CARGO}} clippy --all-targets --all-features -- -D warnings"
coverage:
desc: Run coverage tests
cmds:
- "{{.CARGO}} tarpaulin --out lcov --output-dir coverage"
fuzz:
desc: Run the differential file-operations fuzzer (requires nightly; pass FUZZ_ARGS to add libFuzzer flags)
vars:
FUZZ_ARGS: '{{default "" .FUZZ_ARGS}}'
cmds:
- "{{.CARGO}} +nightly fuzz run fuzz_file_ops -- {{.FUZZ_ARGS}}"
fuzz-build:
desc: Build the fuzz target without running it
cmds:
- "{{.CARGO}} +nightly fuzz build fuzz_file_ops"
clean:
desc: Clean build artifacts
cmds:
- "{{.CARGO}} clean"