Skip to content

Commit 5f471c7

Browse files
committed
Numbering the checks
1 parent 042b0c1 commit 5f471c7

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

t/21_baseline_starttls.t

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,66 +35,71 @@ die "Unable to open $prg" unless -f $prg;
3535

3636
$uri="smtp-relay.gmail.com:587";
3737

38-
# we will have client simulations later, so we don't need to run everything again:
38+
39+
#1
3940
# unlink "tmp.json";
41+
# we will have client simulations later, so we don't need to run everything again:
4042
printf "\n%s\n", "STARTTLS SMTP unit test via sockets --> $uri ...";
4143
$socket_out = `./testssl.sh $check2run_smtp -t smtp $uri 2>&1`;
4244
# $socket_json = json('tmp.json');
4345
unlike($socket_out, qr/$socket_regex_bl/, "");
4446
$tests++;
4547

48+
#2
4649
# unlink "tmp.json";
4750
printf "\n%s\n", "STARTTLS SMTP unit tests via OpenSSL --> $uri ...";
4851
$openssl_out = `./testssl.sh --ssl-native $check2run_smtp -t smtp $uri 2>&1`;
4952
# $openssl_json = json('tmp.json');
5053
unlike($openssl_out, qr/$openssl_regex_bl/, "");
5154
$tests++;
5255

53-
5456
$uri="pop.gmx.net:110";
5557

58+
#3
5659
# unlink "tmp.json";
5760
printf "\n%s\n", "STARTTLS POP3 unit tests via sockets --> $uri ...";
5861
$socket_out = `./testssl.sh $check2run -t pop3 $uri 2>&1`;
5962
# $socket_json = json('tmp.json');
6063
unlike($socket_out, qr/$socket_regex_bl/, "");
6164
$tests++;
6265

66+
#4
6367
printf "\n%s\n", "STARTTLS POP3 unit tests via OpenSSL --> $uri ...";
6468
$openssl_out = `./testssl.sh --ssl-native $check2run -t pop3 $uri 2>&1`;
6569
# $openssl_json = json('tmp.json');
6670
unlike($openssl_out, qr/$openssl_regex_bl/, "");
6771
$tests++;
6872

69-
7073
$uri="imap.gmx.net:143";
7174

75+
#5
7276
# unlink "tmp.json";
7377
printf "\n%s\n", "STARTTLS IMAP unit tests via sockets --> $uri ...";
7478
$socket_out = `./testssl.sh $check2run -t imap $uri 2>&1`;
7579
# $socket_json = json('tmp.json');
7680
unlike($socket_out, qr/$socket_regex_bl/, "");
7781
$tests++;
7882

83+
#6
7984
printf "\n%s\n", "STARTTLS IMAP unit tests via OpenSSL --> $uri ...";
8085
$openssl_out = `./testssl.sh --ssl-native $check2run -t imap $uri 2>&1`;
8186
# $openssl_json = json('tmp.json');
8287
unlike($openssl_out, qr/$openssl_regex_bl/, "");
8388
$tests++;
8489

85-
8690
$uri="mail.tigertech.net:4190";
8791

92+
#7
8893
# unlink "tmp.json";
8994
printf "\n%s\n", "STARTTLS MANAGE(SIEVE) unit tests via sockets --> $uri ...";
9095
$socket_out = `./testssl.sh $check2run -t sieve $uri 2>&1`;
9196
# $socket_json = json('tmp.json');
9297
unlike($openssl_out, qr/$openssl_regex_bl/, "");
9398
$tests++;
9499

95-
96100
$uri="jabber.org:5222";
97101

102+
#8
98103
# unlink "tmp.json";
99104
printf "\n%s\n", "STARTTLS XMPP unit tests via sockets --> $uri ...";
100105
$socket_out = `./testssl.sh $check2run -t xmpp $uri 2>&1`;
@@ -120,6 +125,7 @@ $tests++;
120125

121126
$uri="ldap.uni-rostock.de:21";
122127

128+
#9
123129
# unlink "tmp.json";
124130
printf "\n%s\n", "STARTTLS FTP unit tests via sockets --> $uri ...";
125131
$socket_out = `./testssl.sh $check2run -t ftp $uri 2>&1`;
@@ -143,12 +149,14 @@ $tests++;
143149
# https://ldapwiki.com/wiki/Public%20LDAP%20Servers
144150
$uri="db.debian.org:389";
145151

152+
#10
146153
printf "\n%s\n", "STARTTLS LDAP unit tests via sockets --> $uri ...";
147154
$socket_out = `./testssl.sh $check2run -t ldap $uri 2>&1`;
148155
# $socket_json = json('tmp.json');
149156
unlike($socket_out, qr/$socket_regex_bl/, "");
150157
$tests++;
151158

159+
#11
152160
printf "\n%s\n", "STARTTLS LDAP unit tests via OpenSSL --> $uri ...";
153161
$openssl_out = `./testssl.sh --ssl-native $check2run -t ldap $uri 2>&1`;
154162
# $openssl_json = json('tmp.json');
@@ -172,12 +180,10 @@ $tests++;
172180
#unlike($openssl_out, qr/$openssl_regex_bl/, "");
173181
#$tests++;
174182

175-
176183
# IRC: missing
177184
# LTMP, mysql, postgres
178185

179186

180-
181187
done_testing($tests);
182188
# unlink "tmp.json";
183189

0 commit comments

Comments
 (0)