@@ -4,184 +4,184 @@ load test_helper
44
55@test " utils user" {
66 run check_cmd " whoami"
7- [ " $status " -eq 0 ]
8- [ $( echo " $output " | grep -v WARNING ) = " utils" ]
7+ assert_success
8+ assert_output " utils"
99}
1010
1111@test " utils user home" {
1212 run check_cmd " pwd"
13- [ " $status " -eq 0 ]
13+ assert_success
1414 assert_output " /home/utils"
1515}
1616
1717@test " curl" {
1818 run check_cmd " curl --version"
19- [ " $status " -eq 0 ]
19+ assert_success
2020}
2121
2222@test " httpie" {
2323 run check_cmd " http --version"
24- [ " $status " -eq 0 ]
24+ assert_success
2525}
2626
2727@test " dnsutils" {
2828 run check_cmd " dig -v"
29- [ " $status " -eq 0 ]
29+ assert_success
3030
3131 run check_cmd " nslookup localhost"
32- [ " $status " -eq 0 ]
32+ assert_success
3333}
3434
3535@test " iputils-ping" {
3636 run check_cmd " ping -V"
37- [ " $status " -eq 0 ]
37+ assert_success
3838}
3939
4040@test " jq" {
4141 run check_cmd " jq --version"
42- [ " $status " -eq 0 ]
42+ assert_success
4343}
4444
4545@test " mongosh" {
4646 run check_cmd " mongosh --version"
47- [ " $status " -eq 0 ]
47+ assert_success
4848}
4949
5050@test " mysql-client" {
5151 run check_cmd " mysql --version"
52- [ " $status " -eq 0 ]
52+ assert_success
5353}
5454
5555@test " net-tools" {
5656 run check_cmd " netstat --version"
57- [ " $status " -eq 0 ]
57+ assert_success
5858
5959 run check_cmd " ifconfig --version"
60- [ " $status " -eq 0 ]
60+ assert_success
6161}
6262
6363@test " iproute2" {
6464 run check_cmd " ip -V"
65- [ " $status " -eq 0 ]
65+ assert_success
6666}
6767
6868@test " iptables" {
6969 run check_cmd " iptables -V"
70- [ " $status " -eq 0 ]
70+ assert_success
7171}
7272
7373@test " postgresql-client" {
7474 run check_cmd " psql --version"
75- [ " $status " -eq 0 ]
75+ assert_success
7676}
7777
7878@test " redis-tools" {
7979 run check_cmd " redis-cli --version"
80- [ " $status " -eq 0 ]
80+ assert_success
8181}
8282
8383@test " telnet" {
8484 run check_cmd " telnet"
85- [ " $status " -eq 0 ]
85+ assert_success
8686}
8787
8888@test " vim" {
8989 run check_cmd " vim --version"
90- [ " $status " -eq 0 ]
90+ assert_success
9191}
9292
9393@test " influxdb-client" {
9494 run check_cmd " influx --version"
95- [ " $status " -eq 0 ]
95+ assert_success
9696}
9797
9898@test " rabbitmq-server" {
9999 run check_cmd " rabbitmqctl help"
100- [ " $status " -eq 0 ]
100+ assert_success
101101}
102102
103103@test " rabbitmqadmin" {
104104 run check_cmd " rabbitmqadmin --version"
105- [ " $status " -eq 0 ]
105+ assert_success
106106}
107107@test " swaks" {
108108 run check_cmd " swaks --version"
109- [ " $status " -eq 0 ]
109+ assert_success
110110}
111111@test " netcat-openbsd" {
112112 run check_cmd " nc -h"
113- [ " $status " -eq 0 ]
113+ assert_success
114114}
115115@test " wget" {
116116 run check_cmd " wget --version"
117- [ " $status " -eq 0 ]
117+ assert_success
118118}
119119@test " bind9-host" {
120120 run check_cmd " host -V"
121- [ " $status " -eq 0 ]
121+ assert_success
122122}
123123
124124@test " pip" {
125125 run check_cmd " pip3 -V"
126- [ " $status " -eq 0 ]
126+ assert_success
127127}
128128
129129@test " cqlsh" {
130130 run check_cmd " cqlsh --version"
131- [ " $status " -eq 0 ]
131+ assert_success
132132}
133133
134134@test " ssh" {
135135 run check_cmd " ssh -V"
136- [ " $status " -eq 0 ]
136+ assert_success
137137}
138138
139139@test " oha" {
140140 run check_cmd " oha --version"
141- [ " $status " -eq 0 ]
141+ assert_success
142142}
143143
144144@test " archive and compression" {
145145 run check_cmd " 7z --help"
146- [ " $status " -eq 0 ]
146+ assert_success
147147
148148 run check_cmd " tar --version"
149- [ " $status " -eq 0 ]
149+ assert_success
150150
151151 run check_cmd " xz --version"
152- [ " $status " -eq 0 ]
152+ assert_success
153153}
154154
155155@test " gnupg" {
156156 run check_cmd " gpg --version"
157- [ " $status " -eq 0 ]
157+ assert_success
158158}
159159
160160@test " kafkacat" {
161161 run check_cmd " kcat -V"
162- [ " $status " -eq 0 ]
162+ assert_success
163163}
164164
165165@test " kaf" {
166166 run check_cmd " kaf help"
167- [ " $status " -eq 0 ]
167+ assert_success
168168}
169169
170170@test " tcpdump" {
171171 run check_cmd " tcpdump --version"
172- [ " $status " -eq 0 ]
172+ assert_success
173173}
174174
175175@test " ngrep" {
176176 run check_cmd " ngrep -V"
177- [ " $status " -eq 0 ]
177+ assert_success
178178}
179179
180180@test " nmap" {
181181 run check_cmd " nmap --version"
182- [ " $status " -eq 0 ]
182+ assert_success
183183}
184184@test " sngrep" {
185185 run check_cmd " sngrep --version"
186- [ " $status " -eq 0 ]
186+ assert_success
187187}
0 commit comments