-
Notifications
You must be signed in to change notification settings - Fork 37
/
test_linux_amd64.yaml
29 lines (28 loc) · 1.11 KB
/
test_linux_amd64.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
schemaVersion: "2.0.0"
commandTests:
- name: "echo hello"
command: "/bin/bash"
args: ["-c", "echo hello world!"]
expectedOutput: ["hello world!"]
- name: "apt list --installed"
command: "apt"
args: ["list", "--installed"]
expectedOutput:
- Listing\.\.\.
- apt/now 2\.7\.12 amd64 \[installed,local\]
- bash/now 5\.2\.21\-2ubuntu2 amd64 \[installed,local\]
- coreutils/now 9\.4\-2ubuntu4 amd64 \[installed,local\]
- dpkg/now 1\.22\.4ubuntu5 amd64 \[installed,local\]
- grep/now 3\.11-4 amd64 \[installed,local\]
- libssl3/now 3\.0\.10-1ubuntu4 amd64 \[installed,local\]
- libncurses6/now 6\.4\+20240113\-1ubuntu1 amd64 \[installed,local\]
- ncurses-base/now 6\.4\+20240113\-1ubuntu1 all \[installed,local\]
- perl/now 5\.38\.2\-3 amd64 \[installed,local\]
- tzdata/now 2024a\-1ubuntu1 all \[installed,local\]
- name: "coreutils depends on libssl3 on amd64"
command: "/bin/bash"
args: ["-c", "apt list --installed | grep -Eo libssl3"]
expectedOutput: ["libssl3"]
- name: "whoami"
command: "whoami"
expectedOutput: [r00t]