mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 05:45:26 +01:00 
			
		
		
		
	renumber tests properly
This commit is contained in:
		| @@ -22,7 +22,7 @@ my $socket_out=""; | |||||||
| my $openssl_out=""; | my $openssl_out=""; | ||||||
| my $socket_json=""; | my $socket_json=""; | ||||||
| my $openssl_json=""; | my $openssl_json=""; | ||||||
| #FIXME: Blacklists we use to trigger an error, but likely we can skip that and instead we should?/could use | #FIXME: Pattern we use to trigger an error, but likely we can skip that and instead we should?/could use the following?? | ||||||
| #       @args="$prg $check2run $uri >/dev/null"; | #       @args="$prg $check2run $uri >/dev/null"; | ||||||
| #       system("@args") == 0 | #       system("@args") == 0 | ||||||
| #           or die ("FAILED: \"@args\" "); | #           or die ("FAILED: \"@args\" "); | ||||||
| @@ -38,23 +38,26 @@ unlink $tmp_json; | |||||||
|  |  | ||||||
| # Title | # Title | ||||||
| printf "\n%s\n", "Baseline unit test IPv4 against \"$uri\""; | printf "\n%s\n", "Baseline unit test IPv4 against \"$uri\""; | ||||||
|  |  | ||||||
| #1 |  | ||||||
| $socket_out = `$prg $check2run $uri 2>&1`; | $socket_out = `$prg $check2run $uri 2>&1`; | ||||||
| $socket_json = json($tmp_json); | $socket_json = json($tmp_json); | ||||||
|  |  | ||||||
|  | #1 | ||||||
| unlike($socket_out, qr/$socket_errors≈/, "via sockets, checking terminal output"); | unlike($socket_out, qr/$socket_errors≈/, "via sockets, checking terminal output"); | ||||||
| $tests++; | $tests++; | ||||||
|  |  | ||||||
|  | #2 | ||||||
| unlike($socket_json, qr/$json_errors/, "via sockets checking JSON output"); | unlike($socket_json, qr/$json_errors/, "via sockets checking JSON output"); | ||||||
| $tests++; | $tests++; | ||||||
|  |  | ||||||
| unlink $tmp_json; | unlink $tmp_json; | ||||||
|  |  | ||||||
|  | #3 | ||||||
| #2 |  | ||||||
| $openssl_out = `$prg --ssl-native $check2run $uri 2>&1`; | $openssl_out = `$prg --ssl-native $check2run $uri 2>&1`; | ||||||
| $openssl_json = json($tmp_json); | $openssl_json = json($tmp_json); | ||||||
| unlike($openssl_out, qr/$openssl_errors/, "via (builtin) OpenSSL, checking terminal output"); | unlike($openssl_out, qr/$openssl_errors/, "via (builtin) OpenSSL, checking terminal output"); | ||||||
| $tests++; | $tests++; | ||||||
|  |  | ||||||
|  | #4 | ||||||
| unlike($openssl_json, qr/$json_errors/, "via OpenSSL (builtin) checking JSON output"); | unlike($openssl_json, qr/$json_errors/, "via OpenSSL (builtin) checking JSON output"); | ||||||
| $tests++; | $tests++; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dirk Wetter
					Dirk Wetter