--- /dev/null
+0000
\ No newline at end of file
{
if (!defined $parm_malware{$1}) { $wantthis = 0; last; }
}
+ elsif (/^feature (.*)$/)
+ {
+ # move to a subroutine?
+ my $eximinfo = "$parm_exim -C $parm_cwd/test-config -DDIR=$parm_cwd -bP macro $1";
+
+ open (IN, "$parm_cwd/confs/0000") ||
+ tests_exit(-1, "Couldn't open $parm_cwd/confs/0000: $!\n");
+ open (OUT, ">test-config") ||
+ tests_exit(-1, "Couldn't open test-config: $!\n");
+ while (<IN>)
+ {
+ do_substitute($testno);
+ print OUT;
+ }
+ close(IN);
+ close(OUT);
+
+ system($eximinfo . " >/dev/null 2>&1");
+ if ($? != 0) {
+ unlink("$parm_cwd/test-config");
+ $wantthis = 0;
+ $_ = "feature $1";
+ last;
+ }
+ unlink("$parm_cwd/test-config");
+ }
else
{
tests_exit(-1, "Unknown line in \"scripts/$testdir/REQUIRES\": \"$_\"");
****
killdaemon
no_msglog_check
-#
-#
-exim -be
-sha256: ${sha256:}
-sha256: ${sha256:abc}
-
-sha3: ${sha3:}
-sha3: ${sha3:abc}
-sha3_256: ${sha3_256:}
-sha3_256: ${sha3_256:abc}
-sha3_512: ${sha3_512:}
-sha3_512: ${sha3_512:abc}
-****
****
killdaemon
no_msglog_check
-#
-#
-exim -be
-sha256: ${sha256:}
-sha256: ${sha256:abc}
-
-sha3: ${sha3:}
-sha3: ${sha3:abc}
-sha3_256: ${sha3_256:}
-sha3_256: ${sha3_256:abc}
-sha3_512: ${sha3_512:}
-sha3_512: ${sha3_512:abc}
-****
--- /dev/null
+# sha3 expansions
+#
+exim -be
+sha256: ${sha256:}
+sha256: ${sha256:abc}
+
+sha3: ${sha3:}
+sha3: ${sha3:abc}
+sha3_256: ${sha3_256:}
+sha3_256: ${sha3_256:abc}
+sha3_512: ${sha3_512:}
+sha3_512: ${sha3_512:abc}
+****
--- /dev/null
+feature _CRYPTO_HASH_SHA3
+++ /dev/null
-> sha256: E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855
-> sha256: BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD
->
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
->
+++ /dev/null
-> sha256: E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855
-> sha256: BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD
->
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
-> Failed: sha3 only supported with GnuTLS 3.5.0 + or OpenSSL 1.1.1 +
->
--- /dev/null
+> sha256: E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855
+> sha256: BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD
+>
+> sha3: A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A
+> sha3: 3A985DA74FE225B2045C172D6BD390BD855F086E3E9D525B46BFE24511431532
+> sha3_256: A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A
+> sha3_256: 3A985DA74FE225B2045C172D6BD390BD855F086E3E9D525B46BFE24511431532
+> sha3_512: A69F73CCA23A9AC5C8B567DC185A756E97C982164FE25859E0D1DCC1475C80A615B2123AF1F5F94C11E3E9402C3AC558F500199D95B6D3E301758586281DCD26
+> sha3_512: B751850B1A57168A5693CD924B6B096E08F621827444F70D884F5D0240D2712E10E116E9192AF3C91A7EC57647E3934057340B4CF408D5A56592F8274EEC53F0
+>