Browse Source

Tests: ensure GPL3.0 License Header

pull/8/head
heck 4 years ago
parent
commit
364bc2214d
  1. 2
      Makefile.conf
  2. 7
      test/framework.cc
  3. 1
      test/framework.hh
  4. 3
      test/test_ensure_passphrase.cc
  5. 3
      test/test_leave_device_group.cc
  6. 3
      test/test_library.cc
  7. 3
      test/test_message_cache.cc
  8. 3
      test/test_passphrase_cache.cc
  9. 3
      test/test_semaphore.cc

2
Makefile.conf

@ -1,5 +1,5 @@
# Copyright 2018, pEp Foundation # 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 # This file may be used under the terms of the GNU General Public License version 3
# see LICENSE.txt # see LICENSE.txt

7
test/framework.cc

@ -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 <iostream>
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
@ -83,7 +85,10 @@ namespace pEp {
ifstream f(filename, ifstream::in); ifstream f(filename, ifstream::in);
string key{ istreambuf_iterator<char>(f), istreambuf_iterator<char>() }; string key{ istreambuf_iterator<char>(f), istreambuf_iterator<char>() };
::identity_list *il = NULL; ::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); ::PEP_STATUS status = ::import_key(session(), key.c_str(), key.length(), &il);
throw_status(status);
assert(status == PEP_KEY_IMPORTED); assert(status == PEP_KEY_IMPORTED);
::free_identity_list(il); ::free_identity_list(il);
} }

1
test/framework.hh

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

3
test/test_ensure_passphrase.cc

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

3
test/test_leave_device_group.cc

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

3
test/test_library.cc

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

3
test/test_message_cache.cc

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

3
test/test_passphrase_cache.cc

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

3
test/test_semaphore.cc

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

Loading…
Cancel
Save