Browse Source

Tests: ensure GPL3.0 License Header

pull/8/head
heck 7 months ago
parent
commit
364bc2214d
9 changed files with 26 additions and 2 deletions
  1. +1
    -1
      Makefile.conf
  2. +6
    -1
      test/framework.cc
  3. +1
    -0
      test/framework.hh
  4. +3
    -0
      test/test_ensure_passphrase.cc
  5. +3
    -0
      test/test_leave_device_group.cc
  6. +3
    -0
      test/test_library.cc
  7. +3
    -0
      test/test_message_cache.cc
  8. +3
    -0
      test/test_passphrase_cache.cc
  9. +3
    -0
      test/test_semaphore.cc

+ 1
- 1
Makefile.conf View File

@ -1,5 +1,5 @@
# Copyright 2018, pEp Foundation
# This file is part of lib pEp Adapter
# This file is part of libpEpAdapter
# This file may be used under the terms of the GNU General Public License version 3
# see LICENSE.txt


+ 6
- 1
test/framework.cc View File

@ -1,5 +1,7 @@
#include "framework.hh"
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include "framework.hh"
#include <iostream>
#include <fstream>
#include <sstream>
@ -83,7 +85,10 @@ namespace pEp {
ifstream f(filename, ifstream::in);
string key{ istreambuf_iterator<char>(f), istreambuf_iterator<char>() };
::identity_list *il = NULL;
cout << key.c_str() << endl;
cout << key.length() << endl;
::PEP_STATUS status = ::import_key(session(), key.c_str(), key.length(), &il);
throw_status(status);
assert(status == PEP_KEY_IMPORTED);
::free_identity_list(il);
}


+ 1
- 0
test/framework.hh View File

@ -1,5 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LIBPEPADAPTER_FRAMEWORK_HH
#define LIBPEPADAPTER_FRAMEWORK_HH


+ 3
- 0
test/test_ensure_passphrase.cc View File

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include <iostream>
#include <fstream>
#include <sstream>


+ 3
- 0
test/test_leave_device_group.cc View File

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include <iostream>
#include <vector>
#include <unistd.h>


+ 3
- 0
test/test_library.cc View File

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include "pc_container.hh"
#include <cstdio>
#include <cstdlib>


+ 3
- 0
test/test_message_cache.cc View File

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include "framework.hh"
#include <iostream>
#include <cassert>


+ 3
- 0
test/test_passphrase_cache.cc View File

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include "framework.hh"
#include <iostream>


+ 3
- 0
test/test_semaphore.cc View File

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include <iostream>
#include <thread>
#include <unistd.h>


Loading…
Cancel
Save