-
Notifications
You must be signed in to change notification settings - Fork 321
/
lang-rust.yaml
38 lines (38 loc) · 1.27 KB
/
lang-rust.yaml
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
- desc: it should run rustc
command: [rustc --version]
entrypoint: [bash, -i, -c]
assert:
- status == 0
- stdout.indexOf("rustc") != -1
- desc: it should have properly functioning rustup
command: [
rustup show && rustup update && rustup toolchain install nightly && cargo new /tmp/foo && rustup target install wasm32-unknown-unknown,
] # Testing out `cargo` at the end is necessary to assert that rustup isn't messing things up
entrypoint: [bash, -i, -c]
assert:
- status == 0
- stdout.indexOf("/home/gitpod/.rustup") != -1
- stdout.indexOf("x86_64-unknown-linux-gnu") != -1
- stdout.indexOf("x86_64-unknown-linux-musl") == -1
- desc: it should have cargo
command: [cargo --version]
entrypoint: [bash, -i, -c]
assert:
- status == 0
- stdout.indexOf("cargo") != -1 ||
stderr.indexOf("cargo") != -1
- desc: it should have watch subcommand for cargo
entrypoint: [bash, -i, -c]
command: [cargo watch --help]
assert:
- status == 0
- desc: it should have one of edit(add, rm, upgrade, set-version) subcommand(s) for cargo
entrypoint: [bash, -i, -c]
command: [cargo add --help]
assert:
- status == 0
- desc: it should have workspaces subcommand for cargo
entrypoint: [bash, -i, -c]
command: [cargo workspaces --help]
assert:
- status == 0