ignore this
authorVolker Birk <vb@pep.foundation>
Sat, 04 Aug 2018 23:59:14 +0200
changeset 2802cdfc6bed129f
parent 2801 59c46d9c9de3
child 2803 fadf1e8e22ff
ignore this
test/src/SuiteMaker.cc
     1.1 --- a/test/src/SuiteMaker.cc	Sat Aug 04 23:51:26 2018 +0200
     1.2 +++ b/test/src/SuiteMaker.cc	Sat Aug 04 23:59:14 2018 +0200
     1.3 @@ -12,159 +12,159 @@
     1.4  #include "SuiteMaker.h"
     1.5  
     1.6  // Begin where we generate stuff
     1.7 -#include "MapAsn1Tests.h"
     1.8 -#include "DecorateTests.h"
     1.9 -#include "EncryptMissingPrivateKeyTests.h"
    1.10 -#include "KeyeditTests.h"
    1.11 -#include "BlacklistAcceptNewKeyTests.h"
    1.12 -#include "DecryptAttachPrivateKeyUntrustedTests.h"
    1.13 -#include "AppleMailTests.h"
    1.14 -#include "CaseAndDotAddressTests.h"
    1.15 -#include "SequenceTests.h"
    1.16 -#include "BCCTests.h"
    1.17 -#include "MessageApiTests.h"
    1.18 -#include "I18nTests.h"
    1.19 -#include "CrashdumpTests.h"
    1.20 -#include "PgpBinaryTests.h"
    1.21 -#include "RevokeRegenAttachTests.h"
    1.22 -#include "BlacklistTests.h"
    1.23 -#include "LeastCommonDenomColorTests.h"
    1.24 -#include "PepSubjectReceivedTests.h"
    1.25 -#include "MistrustUndoTests.h"
    1.26 -#include "StringpairListTests.h"
    1.27 -#include "PgpListKeysTests.h"
    1.28 -#include "ReencryptPlusExtraKeysTests.h"
    1.29  #include "MimeTests.h"
    1.30  #include "BloblistTests.h"
    1.31  #include "NewUpdateIdAndMyselfTests.h"
    1.32 +#include "I18nTests.h"
    1.33 +#include "IdentityListTests.h"
    1.34 +#include "PgpBinaryTests.h"
    1.35 +#include "MistrustUndoTests.h"
    1.36 +#include "LeastCommonDenomColorTests.h"
    1.37  #include "StringlistTests.h"
    1.38 +#include "PgpListKeysTests.h"
    1.39 +#include "MessageApiTests.h"
    1.40 +#include "EncryptMissingPrivateKeyTests.h"
    1.41 +#include "CaseAndDotAddressTests.h"
    1.42 +#include "UserIDAliasTests.h"
    1.43 +#include "BCCTests.h"
    1.44 +#include "BlacklistAcceptNewKeyTests.h"
    1.45 +#include "DecryptAttachPrivateKeyUntrustedTests.h"
    1.46 +#include "BlacklistTests.h"
    1.47 +#include "RevokeRegenAttachTests.h"
    1.48 +#include "PepSubjectReceivedTests.h"
    1.49 +#include "SequenceTests.h"
    1.50 +#include "EncryptAttachPrivateKeyTests.h"
    1.51 +#include "ExternalRevokeTests.h"
    1.52 +#include "KeyeditTests.h"
    1.53  #include "LeastColorGroupTests.h"
    1.54 -#include "ExternalRevokeTests.h"
    1.55 +#include "DecryptAttachPrivateKeyTrustedTests.h"
    1.56 +#include "TrustwordsTests.h"
    1.57 +#include "ReencryptPlusExtraKeysTests.h"
    1.58 +#include "MapAsn1Tests.h"
    1.59 +#include "DecorateTests.h"
    1.60 +#include "MessageTwoPointOhTests.h"
    1.61 +#include "CrashdumpTests.h"
    1.62 +#include "StringpairListTests.h"
    1.63  #include "EncryptForIdentityTests.h"
    1.64 -#include "TrustwordsTests.h"
    1.65  #include "TrustManipulationTests.h"
    1.66 -#include "MessageTwoPointOhTests.h"
    1.67 -#include "EncryptAttachPrivateKeyTests.h"
    1.68 -#include "DecryptAttachPrivateKeyTrustedTests.h"
    1.69 -#include "IdentityListTests.h"
    1.70 -#include "UserIDAliasTests.h"
    1.71 +#include "AppleMailTests.h"
    1.72  
    1.73  
    1.74  const char* SuiteMaker::all_suites[] = {
    1.75 -    "MapAsn1Tests",
    1.76 -    "DecorateTests",
    1.77 -    "EncryptMissingPrivateKeyTests",
    1.78 -    "KeyeditTests",
    1.79 -    "BlacklistAcceptNewKeyTests",
    1.80 -    "DecryptAttachPrivateKeyUntrustedTests",
    1.81 -    "AppleMailTests",
    1.82 -    "CaseAndDotAddressTests",
    1.83 -    "SequenceTests",
    1.84 -    "BCCTests",
    1.85 -    "MessageApiTests",
    1.86 -    "I18nTests",
    1.87 -    "CrashdumpTests",
    1.88 -    "PgpBinaryTests",
    1.89 -    "RevokeRegenAttachTests",
    1.90 -    "BlacklistTests",
    1.91 -    "LeastCommonDenomColorTests",
    1.92 -    "PepSubjectReceivedTests",
    1.93 -    "MistrustUndoTests",
    1.94 -    "StringpairListTests",
    1.95 -    "PgpListKeysTests",
    1.96 -    "ReencryptPlusExtraKeysTests",
    1.97      "MimeTests",
    1.98      "BloblistTests",
    1.99      "NewUpdateIdAndMyselfTests",
   1.100 +    "I18nTests",
   1.101 +    "IdentityListTests",
   1.102 +    "PgpBinaryTests",
   1.103 +    "MistrustUndoTests",
   1.104 +    "LeastCommonDenomColorTests",
   1.105      "StringlistTests",
   1.106 +    "PgpListKeysTests",
   1.107 +    "MessageApiTests",
   1.108 +    "EncryptMissingPrivateKeyTests",
   1.109 +    "CaseAndDotAddressTests",
   1.110 +    "UserIDAliasTests",
   1.111 +    "BCCTests",
   1.112 +    "BlacklistAcceptNewKeyTests",
   1.113 +    "DecryptAttachPrivateKeyUntrustedTests",
   1.114 +    "BlacklistTests",
   1.115 +    "RevokeRegenAttachTests",
   1.116 +    "PepSubjectReceivedTests",
   1.117 +    "SequenceTests",
   1.118 +    "EncryptAttachPrivateKeyTests",
   1.119 +    "ExternalRevokeTests",
   1.120 +    "KeyeditTests",
   1.121      "LeastColorGroupTests",
   1.122 -    "ExternalRevokeTests",
   1.123 +    "DecryptAttachPrivateKeyTrustedTests",
   1.124 +    "TrustwordsTests",
   1.125 +    "ReencryptPlusExtraKeysTests",
   1.126 +    "MapAsn1Tests",
   1.127 +    "DecorateTests",
   1.128 +    "MessageTwoPointOhTests",
   1.129 +    "CrashdumpTests",
   1.130 +    "StringpairListTests",
   1.131      "EncryptForIdentityTests",
   1.132 -    "TrustwordsTests",
   1.133      "TrustManipulationTests",
   1.134 -    "MessageTwoPointOhTests",
   1.135 -    "EncryptAttachPrivateKeyTests",
   1.136 -    "DecryptAttachPrivateKeyTrustedTests",
   1.137 -    "IdentityListTests",
   1.138 -    "UserIDAliasTests",
   1.139 +    "AppleMailTests",
   1.140  };
   1.141  
   1.142  // This file is generated, so magic constants are ok.
   1.143  int SuiteMaker::num_suites = 36;
   1.144  
   1.145  void SuiteMaker::suitemaker_build(const char* test_class_name, const char* test_home, Test::Suite** test_suite) {
   1.146 -    if (strcmp(test_class_name, "MapAsn1Tests") == 0)
   1.147 -        *test_suite = new MapAsn1Tests(test_class_name, test_home);
   1.148 -    else if (strcmp(test_class_name, "DecorateTests") == 0)
   1.149 -        *test_suite = new DecorateTests(test_class_name, test_home);
   1.150 -    else if (strcmp(test_class_name, "EncryptMissingPrivateKeyTests") == 0)
   1.151 -        *test_suite = new EncryptMissingPrivateKeyTests(test_class_name, test_home);
   1.152 -    else if (strcmp(test_class_name, "KeyeditTests") == 0)
   1.153 -        *test_suite = new KeyeditTests(test_class_name, test_home);
   1.154 -    else if (strcmp(test_class_name, "BlacklistAcceptNewKeyTests") == 0)
   1.155 -        *test_suite = new BlacklistAcceptNewKeyTests(test_class_name, test_home);
   1.156 -    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyUntrustedTests") == 0)
   1.157 -        *test_suite = new DecryptAttachPrivateKeyUntrustedTests(test_class_name, test_home);
   1.158 -    else if (strcmp(test_class_name, "AppleMailTests") == 0)
   1.159 -        *test_suite = new AppleMailTests(test_class_name, test_home);
   1.160 -    else if (strcmp(test_class_name, "CaseAndDotAddressTests") == 0)
   1.161 -        *test_suite = new CaseAndDotAddressTests(test_class_name, test_home);
   1.162 -    else if (strcmp(test_class_name, "SequenceTests") == 0)
   1.163 -        *test_suite = new SequenceTests(test_class_name, test_home);
   1.164 -    else if (strcmp(test_class_name, "BCCTests") == 0)
   1.165 -        *test_suite = new BCCTests(test_class_name, test_home);
   1.166 -    else if (strcmp(test_class_name, "MessageApiTests") == 0)
   1.167 -        *test_suite = new MessageApiTests(test_class_name, test_home);
   1.168 -    else if (strcmp(test_class_name, "I18nTests") == 0)
   1.169 -        *test_suite = new I18nTests(test_class_name, test_home);
   1.170 -    else if (strcmp(test_class_name, "CrashdumpTests") == 0)
   1.171 -        *test_suite = new CrashdumpTests(test_class_name, test_home);
   1.172 -    else if (strcmp(test_class_name, "PgpBinaryTests") == 0)
   1.173 -        *test_suite = new PgpBinaryTests(test_class_name, test_home);
   1.174 -    else if (strcmp(test_class_name, "RevokeRegenAttachTests") == 0)
   1.175 -        *test_suite = new RevokeRegenAttachTests(test_class_name, test_home);
   1.176 -    else if (strcmp(test_class_name, "BlacklistTests") == 0)
   1.177 -        *test_suite = new BlacklistTests(test_class_name, test_home);
   1.178 -    else if (strcmp(test_class_name, "LeastCommonDenomColorTests") == 0)
   1.179 -        *test_suite = new LeastCommonDenomColorTests(test_class_name, test_home);
   1.180 -    else if (strcmp(test_class_name, "PepSubjectReceivedTests") == 0)
   1.181 -        *test_suite = new PepSubjectReceivedTests(test_class_name, test_home);
   1.182 -    else if (strcmp(test_class_name, "MistrustUndoTests") == 0)
   1.183 -        *test_suite = new MistrustUndoTests(test_class_name, test_home);
   1.184 -    else if (strcmp(test_class_name, "StringpairListTests") == 0)
   1.185 -        *test_suite = new StringpairListTests(test_class_name, test_home);
   1.186 -    else if (strcmp(test_class_name, "PgpListKeysTests") == 0)
   1.187 -        *test_suite = new PgpListKeysTests(test_class_name, test_home);
   1.188 -    else if (strcmp(test_class_name, "ReencryptPlusExtraKeysTests") == 0)
   1.189 -        *test_suite = new ReencryptPlusExtraKeysTests(test_class_name, test_home);
   1.190 -    else if (strcmp(test_class_name, "MimeTests") == 0)
   1.191 +    if (strcmp(test_class_name, "MimeTests") == 0)
   1.192          *test_suite = new MimeTests(test_class_name, test_home);
   1.193      else if (strcmp(test_class_name, "BloblistTests") == 0)
   1.194          *test_suite = new BloblistTests(test_class_name, test_home);
   1.195      else if (strcmp(test_class_name, "NewUpdateIdAndMyselfTests") == 0)
   1.196          *test_suite = new NewUpdateIdAndMyselfTests(test_class_name, test_home);
   1.197 +    else if (strcmp(test_class_name, "I18nTests") == 0)
   1.198 +        *test_suite = new I18nTests(test_class_name, test_home);
   1.199 +    else if (strcmp(test_class_name, "IdentityListTests") == 0)
   1.200 +        *test_suite = new IdentityListTests(test_class_name, test_home);
   1.201 +    else if (strcmp(test_class_name, "PgpBinaryTests") == 0)
   1.202 +        *test_suite = new PgpBinaryTests(test_class_name, test_home);
   1.203 +    else if (strcmp(test_class_name, "MistrustUndoTests") == 0)
   1.204 +        *test_suite = new MistrustUndoTests(test_class_name, test_home);
   1.205 +    else if (strcmp(test_class_name, "LeastCommonDenomColorTests") == 0)
   1.206 +        *test_suite = new LeastCommonDenomColorTests(test_class_name, test_home);
   1.207      else if (strcmp(test_class_name, "StringlistTests") == 0)
   1.208          *test_suite = new StringlistTests(test_class_name, test_home);
   1.209 +    else if (strcmp(test_class_name, "PgpListKeysTests") == 0)
   1.210 +        *test_suite = new PgpListKeysTests(test_class_name, test_home);
   1.211 +    else if (strcmp(test_class_name, "MessageApiTests") == 0)
   1.212 +        *test_suite = new MessageApiTests(test_class_name, test_home);
   1.213 +    else if (strcmp(test_class_name, "EncryptMissingPrivateKeyTests") == 0)
   1.214 +        *test_suite = new EncryptMissingPrivateKeyTests(test_class_name, test_home);
   1.215 +    else if (strcmp(test_class_name, "CaseAndDotAddressTests") == 0)
   1.216 +        *test_suite = new CaseAndDotAddressTests(test_class_name, test_home);
   1.217 +    else if (strcmp(test_class_name, "UserIDAliasTests") == 0)
   1.218 +        *test_suite = new UserIDAliasTests(test_class_name, test_home);
   1.219 +    else if (strcmp(test_class_name, "BCCTests") == 0)
   1.220 +        *test_suite = new BCCTests(test_class_name, test_home);
   1.221 +    else if (strcmp(test_class_name, "BlacklistAcceptNewKeyTests") == 0)
   1.222 +        *test_suite = new BlacklistAcceptNewKeyTests(test_class_name, test_home);
   1.223 +    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyUntrustedTests") == 0)
   1.224 +        *test_suite = new DecryptAttachPrivateKeyUntrustedTests(test_class_name, test_home);
   1.225 +    else if (strcmp(test_class_name, "BlacklistTests") == 0)
   1.226 +        *test_suite = new BlacklistTests(test_class_name, test_home);
   1.227 +    else if (strcmp(test_class_name, "RevokeRegenAttachTests") == 0)
   1.228 +        *test_suite = new RevokeRegenAttachTests(test_class_name, test_home);
   1.229 +    else if (strcmp(test_class_name, "PepSubjectReceivedTests") == 0)
   1.230 +        *test_suite = new PepSubjectReceivedTests(test_class_name, test_home);
   1.231 +    else if (strcmp(test_class_name, "SequenceTests") == 0)
   1.232 +        *test_suite = new SequenceTests(test_class_name, test_home);
   1.233 +    else if (strcmp(test_class_name, "EncryptAttachPrivateKeyTests") == 0)
   1.234 +        *test_suite = new EncryptAttachPrivateKeyTests(test_class_name, test_home);
   1.235 +    else if (strcmp(test_class_name, "ExternalRevokeTests") == 0)
   1.236 +        *test_suite = new ExternalRevokeTests(test_class_name, test_home);
   1.237 +    else if (strcmp(test_class_name, "KeyeditTests") == 0)
   1.238 +        *test_suite = new KeyeditTests(test_class_name, test_home);
   1.239      else if (strcmp(test_class_name, "LeastColorGroupTests") == 0)
   1.240          *test_suite = new LeastColorGroupTests(test_class_name, test_home);
   1.241 -    else if (strcmp(test_class_name, "ExternalRevokeTests") == 0)
   1.242 -        *test_suite = new ExternalRevokeTests(test_class_name, test_home);
   1.243 +    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyTrustedTests") == 0)
   1.244 +        *test_suite = new DecryptAttachPrivateKeyTrustedTests(test_class_name, test_home);
   1.245 +    else if (strcmp(test_class_name, "TrustwordsTests") == 0)
   1.246 +        *test_suite = new TrustwordsTests(test_class_name, test_home);
   1.247 +    else if (strcmp(test_class_name, "ReencryptPlusExtraKeysTests") == 0)
   1.248 +        *test_suite = new ReencryptPlusExtraKeysTests(test_class_name, test_home);
   1.249 +    else if (strcmp(test_class_name, "MapAsn1Tests") == 0)
   1.250 +        *test_suite = new MapAsn1Tests(test_class_name, test_home);
   1.251 +    else if (strcmp(test_class_name, "DecorateTests") == 0)
   1.252 +        *test_suite = new DecorateTests(test_class_name, test_home);
   1.253 +    else if (strcmp(test_class_name, "MessageTwoPointOhTests") == 0)
   1.254 +        *test_suite = new MessageTwoPointOhTests(test_class_name, test_home);
   1.255 +    else if (strcmp(test_class_name, "CrashdumpTests") == 0)
   1.256 +        *test_suite = new CrashdumpTests(test_class_name, test_home);
   1.257 +    else if (strcmp(test_class_name, "StringpairListTests") == 0)
   1.258 +        *test_suite = new StringpairListTests(test_class_name, test_home);
   1.259      else if (strcmp(test_class_name, "EncryptForIdentityTests") == 0)
   1.260          *test_suite = new EncryptForIdentityTests(test_class_name, test_home);
   1.261 -    else if (strcmp(test_class_name, "TrustwordsTests") == 0)
   1.262 -        *test_suite = new TrustwordsTests(test_class_name, test_home);
   1.263      else if (strcmp(test_class_name, "TrustManipulationTests") == 0)
   1.264          *test_suite = new TrustManipulationTests(test_class_name, test_home);
   1.265 -    else if (strcmp(test_class_name, "MessageTwoPointOhTests") == 0)
   1.266 -        *test_suite = new MessageTwoPointOhTests(test_class_name, test_home);
   1.267 -    else if (strcmp(test_class_name, "EncryptAttachPrivateKeyTests") == 0)
   1.268 -        *test_suite = new EncryptAttachPrivateKeyTests(test_class_name, test_home);
   1.269 -    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyTrustedTests") == 0)
   1.270 -        *test_suite = new DecryptAttachPrivateKeyTrustedTests(test_class_name, test_home);
   1.271 -    else if (strcmp(test_class_name, "IdentityListTests") == 0)
   1.272 -        *test_suite = new IdentityListTests(test_class_name, test_home);
   1.273 -    else if (strcmp(test_class_name, "UserIDAliasTests") == 0)
   1.274 -        *test_suite = new UserIDAliasTests(test_class_name, test_home);
   1.275 +    else if (strcmp(test_class_name, "AppleMailTests") == 0)
   1.276 +        *test_suite = new AppleMailTests(test_class_name, test_home);
   1.277  }
   1.278  
   1.279  void SuiteMaker::suitemaker_buildlist(const char** test_class_names, int num_to_run, const char* test_home, std::vector<Test::Suite*>& test_suites) {