-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevsm.toml
More file actions
64 lines (55 loc) · 1.62 KB
/
devsm.toml
File metadata and controls
64 lines (55 loc) · 1.62 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
[function]
fn1 = { restart = "devsm-in-tmux" }
[service.devsm]
pwd = "tests/workspace"
cmd = ["cargo", "run", "--", "server"]
env.DEVSM_SOCKET = "/tmp/.devsm.test.socket"
env.DEVSM_LOG_STDOUT = "1"
ready.when.output_contains = "RPC Socket bound"
ready.timeout = 5.0
cache.never = true
[action.tmux-attach]
pwd = "tests/workspace"
sh = "tmux attach -t devsm-tester:0 || tmux new-session -A -s devsm-tester"
env.DEVSM_SOCKET = "/tmp/.devsm.test.socket"
managed = false
[action.devsm-in-tmux]
pwd = "tests/workspace"
sh = """
COMMAND="cargo run"
if [ -f "/tmp/rust-target/debug/devsm" ]; then
# Avoid the slight delay introduced by executing cargo once again,
# Since devsm-in-tmux requires devsm and devsm is cache never, it will always run
# devsm-in-tmux will run building exceeds, on my system, this is the location of the
# target directory.
COMMAND=/tmp/rust-target/debug/devsm
fi
tmux send-keys -t devsm-tester:0 "env DEVSM_SOCKET=/tmp/.devsm.test.socket DEVSM_NO_AUTO_SPAWN=1 $COMMAND" "ENTER" || exit 1
"""
require = ["devsm"]
[action.devsm-tui]
pwd = "tests/workspace"
cmd = ["cargo", "run"]
env.DEVSM_SOCKET = "/tmp/.devsm.test.socket"
managed = false
[test.taplo-validate-json-schema]
sh = """
taplo validate --schema "file://$(realpath schema/devsm.json)" ./schema/devsm.example-big.toml
"""
tag = ["schema"]
[test.devsm-validate-big-config]
cmd = [
"cargo",
"run",
"--",
"validate",
"--skip-path-checks",
"schema/devsm.example-big.toml",
]
tag = ["schema"]
[test.typos]
cmd = ["typos", "--color", "always"]
[test.check]
cmd = ["cargo", "check"]
[test.cargo-test]
cmd = ["cargo", "test", "--features=fuzz"]