meson: disable crypto tests are empty under win32

Disable following tests on msys2/mingw
      'test-crypto-tlscredsx509': ['crypto-tls-x509-helpers.c', 'pkix_asn1_tab.c',
                                   tasn1, crypto],
      'test-crypto-tlssession': ['crypto-tls-x509-helpers.c', 'pkix_asn1_tab.c', 'crypto-tls-psk-helpers.c',
                                 tasn1, crypto],
      'test-io-channel-tls': ['io-channel-helpers.c', 'crypto-tls-x509-helpers.c', 'pkix_asn1_tab.c',
                              tasn1, io, crypto]}
These tests are failure with:
ERROR test-crypto-tlscredsx509 - missing test plan
ERROR test-crypto-tlssession - missing test plan
ERROR test-io-channel-tls - missing test plan

Because on win32 those test case are all disabled.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Message-Id: <20200909094617.1582-12-luoyonggang@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
Yonggang Luo 2020-09-09 17:46:07 +08:00 committed by Thomas Huth
parent 2d89880003
commit 00650e6e46
1 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,8 @@ if have_block
'test-crypto-block': [io], 'test-crypto-block': [io],
} }
if 'CONFIG_GNUTLS' in config_host and \ if 'CONFIG_GNUTLS' in config_host and \
'CONFIG_TASN1' in config_host 'CONFIG_TASN1' in config_host and \
'CONFIG_POSIX' in config_host
tests += { tests += {
'test-crypto-tlscredsx509': ['crypto-tls-x509-helpers.c', 'pkix_asn1_tab.c', 'test-crypto-tlscredsx509': ['crypto-tls-x509-helpers.c', 'pkix_asn1_tab.c',
tasn1, crypto], tasn1, crypto],