Meh
authorKrista Bennett <krista@pep-project.org>
Wed, 20 Jun 2018 09:25:47 +0200
changeset 275478c467823210
parent 2753 bbe4cd45a94e
child 2755 65c6b4bb11a6
child 2757 f1399e541209
child 2759 3e2762e73975
Meh
test/src/SuiteMaker.cc
     1.1 --- a/test/src/SuiteMaker.cc	Mon Jun 18 14:35:23 2018 +0200
     1.2 +++ b/test/src/SuiteMaker.cc	Wed Jun 20 09:25:47 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 "StringlistTests.h"
    1.34 +#include "LeastColorGroupTests.h"
    1.35 +#include "ExternalRevokeTests.h"
    1.36 +#include "EncryptForIdentityTests.h"
    1.37 +#include "TrustwordsTests.h"
    1.38 +#include "TrustManipulationTests.h"
    1.39 +#include "MessageTwoPointOhTests.h"
    1.40 +#include "EncryptAttachPrivateKeyTests.h"
    1.41 +#include "DecryptAttachPrivateKeyTrustedTests.h"
    1.42  #include "IdentityListTests.h"
    1.43 -#include "PgpBinaryTests.h"
    1.44 -#include "MistrustUndoTests.h"
    1.45 -#include "LeastCommonDenomColorTests.h"
    1.46 -#include "StringlistTests.h"
    1.47 -#include "PgpListKeysTests.h"
    1.48 -#include "MessageApiTests.h"
    1.49 -#include "EncryptMissingPrivateKeyTests.h"
    1.50 -#include "CaseAndDotAddressTests.h"
    1.51  #include "UserIDAliasTests.h"
    1.52 -#include "BCCTests.h"
    1.53 -#include "BlacklistAcceptNewKeyTests.h"
    1.54 -#include "DecryptAttachPrivateKeyUntrustedTests.h"
    1.55 -#include "BlacklistTests.h"
    1.56 -#include "RevokeRegenAttachTests.h"
    1.57 -#include "PepSubjectReceivedTests.h"
    1.58 -#include "SequenceTests.h"
    1.59 -#include "EncryptAttachPrivateKeyTests.h"
    1.60 -#include "ExternalRevokeTests.h"
    1.61 -#include "KeyeditTests.h"
    1.62 -#include "LeastColorGroupTests.h"
    1.63 -#include "DecryptAttachPrivateKeyTrustedTests.h"
    1.64 -#include "TrustwordsTests.h"
    1.65 -#include "ReencryptPlusExtraKeysTests.h"
    1.66 -#include "MapAsn1Tests.h"
    1.67 -#include "DecorateTests.h"
    1.68 -#include "MessageTwoPointOhTests.h"
    1.69 -#include "CrashdumpTests.h"
    1.70 -#include "StringpairListTests.h"
    1.71 -#include "EncryptForIdentityTests.h"
    1.72 -#include "TrustManipulationTests.h"
    1.73 -#include "AppleMailTests.h"
    1.74  
    1.75  
    1.76  const char* SuiteMaker::all_suites[] = {
    1.77 +    "MapAsn1Tests",
    1.78 +    "DecorateTests",
    1.79 +    "EncryptMissingPrivateKeyTests",
    1.80 +    "KeyeditTests",
    1.81 +    "BlacklistAcceptNewKeyTests",
    1.82 +    "DecryptAttachPrivateKeyUntrustedTests",
    1.83 +    "AppleMailTests",
    1.84 +    "CaseAndDotAddressTests",
    1.85 +    "SequenceTests",
    1.86 +    "BCCTests",
    1.87 +    "MessageApiTests",
    1.88 +    "I18nTests",
    1.89 +    "CrashdumpTests",
    1.90 +    "PgpBinaryTests",
    1.91 +    "RevokeRegenAttachTests",
    1.92 +    "BlacklistTests",
    1.93 +    "LeastCommonDenomColorTests",
    1.94 +    "PepSubjectReceivedTests",
    1.95 +    "MistrustUndoTests",
    1.96 +    "StringpairListTests",
    1.97 +    "PgpListKeysTests",
    1.98 +    "ReencryptPlusExtraKeysTests",
    1.99      "MimeTests",
   1.100      "BloblistTests",
   1.101      "NewUpdateIdAndMyselfTests",
   1.102 -    "I18nTests",
   1.103 +    "StringlistTests",
   1.104 +    "LeastColorGroupTests",
   1.105 +    "ExternalRevokeTests",
   1.106 +    "EncryptForIdentityTests",
   1.107 +    "TrustwordsTests",
   1.108 +    "TrustManipulationTests",
   1.109 +    "MessageTwoPointOhTests",
   1.110 +    "EncryptAttachPrivateKeyTests",
   1.111 +    "DecryptAttachPrivateKeyTrustedTests",
   1.112      "IdentityListTests",
   1.113 -    "PgpBinaryTests",
   1.114 -    "MistrustUndoTests",
   1.115 -    "LeastCommonDenomColorTests",
   1.116 -    "StringlistTests",
   1.117 -    "PgpListKeysTests",
   1.118 -    "MessageApiTests",
   1.119 -    "EncryptMissingPrivateKeyTests",
   1.120 -    "CaseAndDotAddressTests",
   1.121      "UserIDAliasTests",
   1.122 -    "BCCTests",
   1.123 -    "BlacklistAcceptNewKeyTests",
   1.124 -    "DecryptAttachPrivateKeyUntrustedTests",
   1.125 -    "BlacklistTests",
   1.126 -    "RevokeRegenAttachTests",
   1.127 -    "PepSubjectReceivedTests",
   1.128 -    "SequenceTests",
   1.129 -    "EncryptAttachPrivateKeyTests",
   1.130 -    "ExternalRevokeTests",
   1.131 -    "KeyeditTests",
   1.132 -    "LeastColorGroupTests",
   1.133 -    "DecryptAttachPrivateKeyTrustedTests",
   1.134 -    "TrustwordsTests",
   1.135 -    "ReencryptPlusExtraKeysTests",
   1.136 -    "MapAsn1Tests",
   1.137 -    "DecorateTests",
   1.138 -    "MessageTwoPointOhTests",
   1.139 -    "CrashdumpTests",
   1.140 -    "StringpairListTests",
   1.141 -    "EncryptForIdentityTests",
   1.142 -    "TrustManipulationTests",
   1.143 -    "AppleMailTests",
   1.144  };
   1.145  
   1.146  // This file is generated, so magic constants are ok.
   1.147  int SuiteMaker::num_suites = 36;
   1.148  
   1.149  void SuiteMaker::suitemaker_build(const char* test_class_name, const char* test_home, Test::Suite** test_suite) {
   1.150 -    if (strcmp(test_class_name, "MimeTests") == 0)
   1.151 +    if (strcmp(test_class_name, "MapAsn1Tests") == 0)
   1.152 +        *test_suite = new MapAsn1Tests(test_class_name, test_home);
   1.153 +    else if (strcmp(test_class_name, "DecorateTests") == 0)
   1.154 +        *test_suite = new DecorateTests(test_class_name, test_home);
   1.155 +    else if (strcmp(test_class_name, "EncryptMissingPrivateKeyTests") == 0)
   1.156 +        *test_suite = new EncryptMissingPrivateKeyTests(test_class_name, test_home);
   1.157 +    else if (strcmp(test_class_name, "KeyeditTests") == 0)
   1.158 +        *test_suite = new KeyeditTests(test_class_name, test_home);
   1.159 +    else if (strcmp(test_class_name, "BlacklistAcceptNewKeyTests") == 0)
   1.160 +        *test_suite = new BlacklistAcceptNewKeyTests(test_class_name, test_home);
   1.161 +    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyUntrustedTests") == 0)
   1.162 +        *test_suite = new DecryptAttachPrivateKeyUntrustedTests(test_class_name, test_home);
   1.163 +    else if (strcmp(test_class_name, "AppleMailTests") == 0)
   1.164 +        *test_suite = new AppleMailTests(test_class_name, test_home);
   1.165 +    else if (strcmp(test_class_name, "CaseAndDotAddressTests") == 0)
   1.166 +        *test_suite = new CaseAndDotAddressTests(test_class_name, test_home);
   1.167 +    else if (strcmp(test_class_name, "SequenceTests") == 0)
   1.168 +        *test_suite = new SequenceTests(test_class_name, test_home);
   1.169 +    else if (strcmp(test_class_name, "BCCTests") == 0)
   1.170 +        *test_suite = new BCCTests(test_class_name, test_home);
   1.171 +    else if (strcmp(test_class_name, "MessageApiTests") == 0)
   1.172 +        *test_suite = new MessageApiTests(test_class_name, test_home);
   1.173 +    else if (strcmp(test_class_name, "I18nTests") == 0)
   1.174 +        *test_suite = new I18nTests(test_class_name, test_home);
   1.175 +    else if (strcmp(test_class_name, "CrashdumpTests") == 0)
   1.176 +        *test_suite = new CrashdumpTests(test_class_name, test_home);
   1.177 +    else if (strcmp(test_class_name, "PgpBinaryTests") == 0)
   1.178 +        *test_suite = new PgpBinaryTests(test_class_name, test_home);
   1.179 +    else if (strcmp(test_class_name, "RevokeRegenAttachTests") == 0)
   1.180 +        *test_suite = new RevokeRegenAttachTests(test_class_name, test_home);
   1.181 +    else if (strcmp(test_class_name, "BlacklistTests") == 0)
   1.182 +        *test_suite = new BlacklistTests(test_class_name, test_home);
   1.183 +    else if (strcmp(test_class_name, "LeastCommonDenomColorTests") == 0)
   1.184 +        *test_suite = new LeastCommonDenomColorTests(test_class_name, test_home);
   1.185 +    else if (strcmp(test_class_name, "PepSubjectReceivedTests") == 0)
   1.186 +        *test_suite = new PepSubjectReceivedTests(test_class_name, test_home);
   1.187 +    else if (strcmp(test_class_name, "MistrustUndoTests") == 0)
   1.188 +        *test_suite = new MistrustUndoTests(test_class_name, test_home);
   1.189 +    else if (strcmp(test_class_name, "StringpairListTests") == 0)
   1.190 +        *test_suite = new StringpairListTests(test_class_name, test_home);
   1.191 +    else if (strcmp(test_class_name, "PgpListKeysTests") == 0)
   1.192 +        *test_suite = new PgpListKeysTests(test_class_name, test_home);
   1.193 +    else if (strcmp(test_class_name, "ReencryptPlusExtraKeysTests") == 0)
   1.194 +        *test_suite = new ReencryptPlusExtraKeysTests(test_class_name, test_home);
   1.195 +    else if (strcmp(test_class_name, "MimeTests") == 0)
   1.196          *test_suite = new MimeTests(test_class_name, test_home);
   1.197      else if (strcmp(test_class_name, "BloblistTests") == 0)
   1.198          *test_suite = new BloblistTests(test_class_name, test_home);
   1.199      else if (strcmp(test_class_name, "NewUpdateIdAndMyselfTests") == 0)
   1.200          *test_suite = new NewUpdateIdAndMyselfTests(test_class_name, test_home);
   1.201 -    else if (strcmp(test_class_name, "I18nTests") == 0)
   1.202 -        *test_suite = new I18nTests(test_class_name, test_home);
   1.203 +    else if (strcmp(test_class_name, "StringlistTests") == 0)
   1.204 +        *test_suite = new StringlistTests(test_class_name, test_home);
   1.205 +    else if (strcmp(test_class_name, "LeastColorGroupTests") == 0)
   1.206 +        *test_suite = new LeastColorGroupTests(test_class_name, test_home);
   1.207 +    else if (strcmp(test_class_name, "ExternalRevokeTests") == 0)
   1.208 +        *test_suite = new ExternalRevokeTests(test_class_name, test_home);
   1.209 +    else if (strcmp(test_class_name, "EncryptForIdentityTests") == 0)
   1.210 +        *test_suite = new EncryptForIdentityTests(test_class_name, test_home);
   1.211 +    else if (strcmp(test_class_name, "TrustwordsTests") == 0)
   1.212 +        *test_suite = new TrustwordsTests(test_class_name, test_home);
   1.213 +    else if (strcmp(test_class_name, "TrustManipulationTests") == 0)
   1.214 +        *test_suite = new TrustManipulationTests(test_class_name, test_home);
   1.215 +    else if (strcmp(test_class_name, "MessageTwoPointOhTests") == 0)
   1.216 +        *test_suite = new MessageTwoPointOhTests(test_class_name, test_home);
   1.217 +    else if (strcmp(test_class_name, "EncryptAttachPrivateKeyTests") == 0)
   1.218 +        *test_suite = new EncryptAttachPrivateKeyTests(test_class_name, test_home);
   1.219 +    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyTrustedTests") == 0)
   1.220 +        *test_suite = new DecryptAttachPrivateKeyTrustedTests(test_class_name, test_home);
   1.221      else if (strcmp(test_class_name, "IdentityListTests") == 0)
   1.222          *test_suite = new IdentityListTests(test_class_name, test_home);
   1.223 -    else if (strcmp(test_class_name, "PgpBinaryTests") == 0)
   1.224 -        *test_suite = new PgpBinaryTests(test_class_name, test_home);
   1.225 -    else if (strcmp(test_class_name, "MistrustUndoTests") == 0)
   1.226 -        *test_suite = new MistrustUndoTests(test_class_name, test_home);
   1.227 -    else if (strcmp(test_class_name, "LeastCommonDenomColorTests") == 0)
   1.228 -        *test_suite = new LeastCommonDenomColorTests(test_class_name, test_home);
   1.229 -    else if (strcmp(test_class_name, "StringlistTests") == 0)
   1.230 -        *test_suite = new StringlistTests(test_class_name, test_home);
   1.231 -    else if (strcmp(test_class_name, "PgpListKeysTests") == 0)
   1.232 -        *test_suite = new PgpListKeysTests(test_class_name, test_home);
   1.233 -    else if (strcmp(test_class_name, "MessageApiTests") == 0)
   1.234 -        *test_suite = new MessageApiTests(test_class_name, test_home);
   1.235 -    else if (strcmp(test_class_name, "EncryptMissingPrivateKeyTests") == 0)
   1.236 -        *test_suite = new EncryptMissingPrivateKeyTests(test_class_name, test_home);
   1.237 -    else if (strcmp(test_class_name, "CaseAndDotAddressTests") == 0)
   1.238 -        *test_suite = new CaseAndDotAddressTests(test_class_name, test_home);
   1.239      else if (strcmp(test_class_name, "UserIDAliasTests") == 0)
   1.240          *test_suite = new UserIDAliasTests(test_class_name, test_home);
   1.241 -    else if (strcmp(test_class_name, "BCCTests") == 0)
   1.242 -        *test_suite = new BCCTests(test_class_name, test_home);
   1.243 -    else if (strcmp(test_class_name, "BlacklistAcceptNewKeyTests") == 0)
   1.244 -        *test_suite = new BlacklistAcceptNewKeyTests(test_class_name, test_home);
   1.245 -    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyUntrustedTests") == 0)
   1.246 -        *test_suite = new DecryptAttachPrivateKeyUntrustedTests(test_class_name, test_home);
   1.247 -    else if (strcmp(test_class_name, "BlacklistTests") == 0)
   1.248 -        *test_suite = new BlacklistTests(test_class_name, test_home);
   1.249 -    else if (strcmp(test_class_name, "RevokeRegenAttachTests") == 0)
   1.250 -        *test_suite = new RevokeRegenAttachTests(test_class_name, test_home);
   1.251 -    else if (strcmp(test_class_name, "PepSubjectReceivedTests") == 0)
   1.252 -        *test_suite = new PepSubjectReceivedTests(test_class_name, test_home);
   1.253 -    else if (strcmp(test_class_name, "SequenceTests") == 0)
   1.254 -        *test_suite = new SequenceTests(test_class_name, test_home);
   1.255 -    else if (strcmp(test_class_name, "EncryptAttachPrivateKeyTests") == 0)
   1.256 -        *test_suite = new EncryptAttachPrivateKeyTests(test_class_name, test_home);
   1.257 -    else if (strcmp(test_class_name, "ExternalRevokeTests") == 0)
   1.258 -        *test_suite = new ExternalRevokeTests(test_class_name, test_home);
   1.259 -    else if (strcmp(test_class_name, "KeyeditTests") == 0)
   1.260 -        *test_suite = new KeyeditTests(test_class_name, test_home);
   1.261 -    else if (strcmp(test_class_name, "LeastColorGroupTests") == 0)
   1.262 -        *test_suite = new LeastColorGroupTests(test_class_name, test_home);
   1.263 -    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyTrustedTests") == 0)
   1.264 -        *test_suite = new DecryptAttachPrivateKeyTrustedTests(test_class_name, test_home);
   1.265 -    else if (strcmp(test_class_name, "TrustwordsTests") == 0)
   1.266 -        *test_suite = new TrustwordsTests(test_class_name, test_home);
   1.267 -    else if (strcmp(test_class_name, "ReencryptPlusExtraKeysTests") == 0)
   1.268 -        *test_suite = new ReencryptPlusExtraKeysTests(test_class_name, test_home);
   1.269 -    else if (strcmp(test_class_name, "MapAsn1Tests") == 0)
   1.270 -        *test_suite = new MapAsn1Tests(test_class_name, test_home);
   1.271 -    else if (strcmp(test_class_name, "DecorateTests") == 0)
   1.272 -        *test_suite = new DecorateTests(test_class_name, test_home);
   1.273 -    else if (strcmp(test_class_name, "MessageTwoPointOhTests") == 0)
   1.274 -        *test_suite = new MessageTwoPointOhTests(test_class_name, test_home);
   1.275 -    else if (strcmp(test_class_name, "CrashdumpTests") == 0)
   1.276 -        *test_suite = new CrashdumpTests(test_class_name, test_home);
   1.277 -    else if (strcmp(test_class_name, "StringpairListTests") == 0)
   1.278 -        *test_suite = new StringpairListTests(test_class_name, test_home);
   1.279 -    else if (strcmp(test_class_name, "EncryptForIdentityTests") == 0)
   1.280 -        *test_suite = new EncryptForIdentityTests(test_class_name, test_home);
   1.281 -    else if (strcmp(test_class_name, "TrustManipulationTests") == 0)
   1.282 -        *test_suite = new TrustManipulationTests(test_class_name, test_home);
   1.283 -    else if (strcmp(test_class_name, "AppleMailTests") == 0)
   1.284 -        *test_suite = new AppleMailTests(test_class_name, test_home);
   1.285  }
   1.286  
   1.287  void SuiteMaker::suitemaker_buildlist(const char** test_class_names, int num_to_run, const char* test_home, std::vector<Test::Suite*>& test_suites) {