Browse Source

ENGINE-398: added test shell, put top-level generated test scripts into hgignore

ENGINE-398
Krista Bennett 4 years ago
parent
commit
599d744604
3 changed files with 46 additions and 0 deletions
  1. +1
    -0
      .hgignore
  2. +22
    -0
      test/include/KeyResetMessageTests.h
  3. +23
    -0
      test/src/engine_tests/KeyResetMessageTests.cc

+ 1
- 0
.hgignore View File

@ -67,3 +67,4 @@ test/local
.tags
*/.tags
*/*/.tags
test/*Tests

+ 22
- 0
test/include/KeyResetMessageTests.h View File

@ -0,0 +1,22 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef KEY_RESET_MESSAGE_H
#define KEY_RESET_MESSAGE_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class KeyResetMessageTests : public EngineTestIndividualSuite {
public:
KeyResetMessageTests(string test_suite, string test_home_dir);
protected:
char* sender_revoked_key_fpr;
char* recip_revoked_key_fpr;
private:
void check_key_reset_message();
};
#endif

+ 23
- 0
test/src/engine_tests/KeyResetMessageTests.cc View File

@ -0,0 +1,23 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include <stdlib.h>
#include <string>
#include "pEpEngine.h"
#include "EngineTestIndividualSuite.h"
#include "KeyResetMessageTests.h"
using namespace std;
KeyResetMessageTests::KeyResetMessageTests(string suitename, string test_home_dir) :
EngineTestIndividualSuite::EngineTestIndividualSuite(suitename, test_home_dir) {
add_test_to_suite(std::pair<std::string, void (Test::Suite::*)()>(string("KeyResetMessageTests::check_key_reset_message"),
static_cast<Func>(&KeyResetMessageTests::check_key_reset_message)));
}
void KeyResetMessageTests::check_key_reset_message() {
TEST_ASSERT(true);
}

Loading…
Cancel
Save