ENGINE-398: added test shell, put top-level generated test scripts into hgignore ENGINE-398
authorKrista Bennett <krista@pep-project.org>
Wed, 22 Aug 2018 14:55:43 +0200
branchENGINE-398
changeset 2892033f13ec8c24
parent 2863 f801618a045c
child 2893 fb7580af7822
ENGINE-398: added test shell, put top-level generated test scripts into hgignore
.hgignore
test/include/KeyResetMessageTests.h
test/src/engine_tests/KeyResetMessageTests.cc
     1.1 --- a/.hgignore	Wed Aug 22 11:18:20 2018 +0200
     1.2 +++ b/.hgignore	Wed Aug 22 14:55:43 2018 +0200
     1.3 @@ -67,3 +67,4 @@
     1.4  .tags
     1.5  */.tags
     1.6  */*/.tags
     1.7 +test/*Tests
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/test/include/KeyResetMessageTests.h	Wed Aug 22 14:55:43 2018 +0200
     2.3 @@ -0,0 +1,22 @@
     2.4 +// This file is under GNU General Public License 3.0
     2.5 +// see LICENSE.txt
     2.6 +
     2.7 +#ifndef KEY_RESET_MESSAGE_H
     2.8 +#define KEY_RESET_MESSAGE_H
     2.9 +
    2.10 +#include <string>
    2.11 +#include "EngineTestIndividualSuite.h"
    2.12 +
    2.13 +using namespace std;
    2.14 +
    2.15 +class KeyResetMessageTests : public EngineTestIndividualSuite {
    2.16 +    public:
    2.17 +        KeyResetMessageTests(string test_suite, string test_home_dir);
    2.18 +    protected:
    2.19 +        char* sender_revoked_key_fpr;
    2.20 +        char* recip_revoked_key_fpr;
    2.21 +    private:
    2.22 +        void check_key_reset_message();        
    2.23 +};
    2.24 +
    2.25 +#endif
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/test/src/engine_tests/KeyResetMessageTests.cc	Wed Aug 22 14:55:43 2018 +0200
     3.3 @@ -0,0 +1,23 @@
     3.4 +// This file is under GNU General Public License 3.0
     3.5 +// see LICENSE.txt
     3.6 +
     3.7 +#include <stdlib.h>
     3.8 +#include <string>
     3.9 +
    3.10 +#include "pEpEngine.h"
    3.11 +
    3.12 +#include "EngineTestIndividualSuite.h"
    3.13 +#include "KeyResetMessageTests.h"
    3.14 +
    3.15 +using namespace std;
    3.16 +
    3.17 +KeyResetMessageTests::KeyResetMessageTests(string suitename, string test_home_dir) :
    3.18 +    EngineTestIndividualSuite::EngineTestIndividualSuite(suitename, test_home_dir) {
    3.19 +    add_test_to_suite(std::pair<std::string, void (Test::Suite::*)()>(string("KeyResetMessageTests::check_key_reset_message"),
    3.20 +                                                                      static_cast<Func>(&KeyResetMessageTests::check_key_reset_message)));
    3.21 +}
    3.22 +
    3.23 +void KeyResetMessageTests::check_key_reset_message() {
    3.24 +    TEST_ASSERT(true);
    3.25 +}
    3.26 +