forked from victoriadrake/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.bats
86 lines (67 loc) · 1.31 KB
/
test.bats
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env bats
load 'bats-assert/load'
load 'bats-support/load'
@test "curl is installed" {
result="curl --version"
[ "$?" -eq 0 ]
}
@test "git is installed" {
result="git --version"
[ "$?" -eq 0 ]
}
@test "User tmp dir exists" {
[ -d ~/tmp ]
}
@test "jq is installed" {
result="jq --version"
[ "$?" -eq 0 ]
}
@test "pip3 is installed" {
result="$(pip3 --version)"
[ "$?" -eq 0 ]
}
@test "pipx is installed" {
result="$(pipx --version)"
[ "$?" -eq 0 ]
}
@test "csvkit is installed" {
in2csv --version
[ $? -eq 0 ]
}
@test "aws-cli version 2 is installed" {
run aws --version
assert_output --regexp '^aws-cli/2'
}
@test "aws-sam-cli is installed" {
sam --version
}
@test "jccli is installed" {
jccli --version
}
@test "cfn-lint is installed" {
cfn-lint --version
}
# Latest working version of Taskcat
# See https://github.com/aws-quickstart/taskcat/issues/602
@test "taskcat version 0.9.13 is installed" {
run taskcat --version
assert_output --partial "version 0.9.13"
}
@test "docker is installed" {
docker --version
}
@test "scrcpy is installed" {
scrcpy --version
}
@test "yamllint is installed" {
yamllint --version
}
@test "yq is installed" {
yq --version
}
@test "cfn-flip is installed" {
cfn-flip --version
}
@test "rbenv is installed" {
rbenv --version
}