Browse Source

move 'test' to 'test_old'

heck-rework
heck 3 years ago
parent
commit
d7c3e61322
  1. 23
      test_old/Makefile
  2. 2
      test_old/unittest_identity.cc
  3. 2
      test_old/unittest_message.cc
  4. 2
      test_old/unittest_nfc.cc
  5. 2
      test_old/unittest_nfc16.cc
  6. 2
      test_old/unittest_nfcstring.cc
  7. 2
      test_old/unittest_stringlist.cc
  8. 2
      test_old/unittest_stringpair.cc

23
test_old/Makefile

@ -0,0 +1,23 @@
include ../Makefile.conf
LDFLAGS=-L../src_old -L$(PREFIX)/lib -L$(PREFIX_GTEST)/lib
LDLIBS=-lstdc++ -lpEpCxx11 -lpEpEngine -lpEpAdapter
CXXFLAGS:=-I../src_old $(CXXFLAGS) -I$(PREFIX_GTEST)/include
TEST_SOURCE=$(wildcard *.cc)
TEST_OBJECTS=$(subst .cc,.o,$(TEST_SOURCE))
.PHONY: all, clean
all: unittests
unittests: $(TEST_OBJECTS) ../src_old/libpEpDatatypes.a
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) -lgtest -lgtest_main
clean:
rm -f unittests
rm -Rf *.dSYM
rm -f *.o

2
test/unittest_identity.cc → test_old/unittest_identity.cc

@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "../src/types.hh"
#include "../src_old/types.hh"
TEST(PepIdentity, Simple)

2
test/unittest_message.cc → test_old/unittest_message.cc

@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "../src/types.hh"
#include "../src_old/types.hh"
namespace {
static const char*

2
test/unittest_nfc.cc → test_old/unittest_nfc.cc

@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "../src/nfc.hh" // for illegal_utf8 exception
#include "../src_old/nfc.hh" // for illegal_utf8 exception
#include <vector>
using namespace pEp;

2
test/unittest_nfc16.cc → test_old/unittest_nfc16.cc

@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "../src/nfc.hh" // for illegal_utf8 exception
#include "../src_old/nfc.hh" // for illegal_utf8 exception
#include <vector>
using namespace pEp;

2
test/unittest_nfcstring.cc → test_old/unittest_nfcstring.cc

@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "../src/nfc.hh" // for illegal_utf8 exception
#include "../src_old/nfc.hh" // for illegal_utf8 exception
#include <vector>
using namespace pEp;

2
test/unittest_stringlist.cc → test_old/unittest_stringlist.cc

@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "../src/types.hh"
#include "../src_old/types.hh"
TEST(StringList, Simple)

2
test/unittest_stringpair.cc → test_old/unittest_stringpair.cc

@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "../src/types.hh"
#include "../src_old/types.hh"
typedef pEp::StringPair SP;
Loading…
Cancel
Save