upgraded test ENGINE-559
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Tue, 09 Jul 2019 11:40:15 +0200
branchENGINE-559
changeset 391654f53e338f86
parent 3915 c3fa76972af5
child 3917 6d33fd0289b2
upgraded test
src/mime.h
test/src/SuiteMaker.cc
test/src/engine_tests/IOS1664Tests.cc
     1.1 --- a/src/mime.h	Tue Jul 09 11:24:36 2019 +0200
     1.2 +++ b/src/mime.h	Tue Jul 09 11:40:15 2019 +0200
     1.3 @@ -55,9 +55,10 @@
     1.4  // mime_decode_message() - decode a MIME message
     1.5  //
     1.6  //  parameters:
     1.7 -//      mimetext (in)           MIME encoded text to decode
     1.8 -//      size (in)               size of text to decode
     1.9 -//      msg (out)               decoded message
    1.10 +//      mimetext (in)           	MIME encoded text to decode
    1.11 +//      size (in)               	size of text to decode
    1.12 +//      msg (out)               	decoded message
    1.13 +//      raise_msg_attachment (out)		
    1.14  //
    1.15  //  return value:
    1.16  //      PEP_STATUS_OK           if everything worked
     2.1 --- a/test/src/SuiteMaker.cc	Tue Jul 09 11:24:36 2019 +0200
     2.2 +++ b/test/src/SuiteMaker.cc	Tue Jul 09 11:40:15 2019 +0200
     2.3 @@ -19,7 +19,9 @@
     2.4  #include "VerifyTests.h"
     2.5  #include "UserIdCollisionTests.h"
     2.6  #include "Engine463Tests.h"
     2.7 +#include "IOS1664Tests.h"
     2.8  #include "BloblistTests.h"
     2.9 +#include "KeyImportAndRetrieveTests.h"
    2.10  #include "NewUpdateIdAndMyselfTests.h"
    2.11  #include "NoOwnIdentWritesOnDecryptTests.h"
    2.12  #include "LiteralFilenameTests.h"
    2.13 @@ -29,6 +31,7 @@
    2.14  #include "PgpBinaryTests.h"
    2.15  #include "SubkeyRatingEvalTests.h"
    2.16  #include "MessageNullFromTests.h"
    2.17 +#include "Engine587Tests.h"
    2.18  #include "ExportKeyTests.h"
    2.19  #include "LeastCommonDenomColorTests.h"
    2.20  #include "StringlistTests.h"
    2.21 @@ -86,7 +89,9 @@
    2.22      "VerifyTests",
    2.23      "UserIdCollisionTests",
    2.24      "Engine463Tests",
    2.25 +    "IOS1664Tests",
    2.26      "BloblistTests",
    2.27 +    "KeyImportAndRetrieveTests",
    2.28      "NewUpdateIdAndMyselfTests",
    2.29      "NoOwnIdentWritesOnDecryptTests",
    2.30      "LiteralFilenameTests",
    2.31 @@ -96,6 +101,7 @@
    2.32      "PgpBinaryTests",
    2.33      "SubkeyRatingEvalTests",
    2.34      "MessageNullFromTests",
    2.35 +    "Engine587Tests",
    2.36      "ExportKeyTests",
    2.37      "LeastCommonDenomColorTests",
    2.38      "StringlistTests",
    2.39 @@ -146,7 +152,7 @@
    2.40  };
    2.41  
    2.42  // This file is generated, so magic constants are ok.
    2.43 -int SuiteMaker::num_suites = 63;
    2.44 +int SuiteMaker::num_suites = 67;
    2.45  
    2.46  void SuiteMaker::suitemaker_build(const char* test_class_name, const char* test_home, Test::Suite** test_suite) {
    2.47      if (strcmp(test_class_name, "URIAddressTests") == 0)
    2.48 @@ -163,8 +169,12 @@
    2.49          *test_suite = new UserIdCollisionTests(test_class_name, test_home);
    2.50      else if (strcmp(test_class_name, "Engine463Tests") == 0)
    2.51          *test_suite = new Engine463Tests(test_class_name, test_home);
    2.52 +    else if (strcmp(test_class_name, "IOS1664Tests") == 0)
    2.53 +        *test_suite = new IOS1664Tests(test_class_name, test_home);
    2.54      else if (strcmp(test_class_name, "BloblistTests") == 0)
    2.55          *test_suite = new BloblistTests(test_class_name, test_home);
    2.56 +    else if (strcmp(test_class_name, "KeyImportAndRetrieveTests") == 0)
    2.57 +        *test_suite = new KeyImportAndRetrieveTests(test_class_name, test_home);
    2.58      else if (strcmp(test_class_name, "NewUpdateIdAndMyselfTests") == 0)
    2.59          *test_suite = new NewUpdateIdAndMyselfTests(test_class_name, test_home);
    2.60      else if (strcmp(test_class_name, "NoOwnIdentWritesOnDecryptTests") == 0)
    2.61 @@ -183,6 +193,8 @@
    2.62          *test_suite = new SubkeyRatingEvalTests(test_class_name, test_home);
    2.63      else if (strcmp(test_class_name, "MessageNullFromTests") == 0)
    2.64          *test_suite = new MessageNullFromTests(test_class_name, test_home);
    2.65 +    else if (strcmp(test_class_name, "Engine587Tests") == 0)
    2.66 +        *test_suite = new Engine587Tests(test_class_name, test_home);
    2.67      else if (strcmp(test_class_name, "ExportKeyTests") == 0)
    2.68          *test_suite = new ExportKeyTests(test_class_name, test_home);
    2.69      else if (strcmp(test_class_name, "LeastCommonDenomColorTests") == 0)
     3.1 --- a/test/src/engine_tests/IOS1664Tests.cc	Tue Jul 09 11:24:36 2019 +0200
     3.2 +++ b/test/src/engine_tests/IOS1664Tests.cc	Tue Jul 09 11:40:15 2019 +0200
     3.3 @@ -27,8 +27,9 @@
     3.4      TEST_ASSERT(!email.empty());
     3.5      
     3.6      message* message_mail = NULL;
     3.7 +    bool raise_att;
     3.8      
     3.9 -    PEP_STATUS status = mime_decode_message(email.c_str(), email.size(), &message_mail);
    3.10 +    PEP_STATUS status = mime_decode_message(email.c_str(), email.size(), &message_mail, &raise_att);
    3.11      TEST_ASSERT(status == PEP_STATUS_OK && message_mail);
    3.12      
    3.13      // create own identity here, because we want to reply, before we start.