
8 changed files with 30 additions and 7 deletions
@ -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 |
@ -1,6 +1,6 @@ |
|||
#include <gtest/gtest.h> |
|||
|
|||
#include "../src/types.hh" |
|||
#include "../src_old/types.hh" |
|||
|
|||
|
|||
TEST(PepIdentity, Simple) |
@ -1,6 +1,6 @@ |
|||
#include <gtest/gtest.h> |
|||
|
|||
#include "../src/types.hh" |
|||
#include "../src_old/types.hh" |
|||
|
|||
namespace { |
|||
static const char* |
@ -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; |
@ -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; |
@ -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; |
@ -1,6 +1,6 @@ |
|||
#include <gtest/gtest.h> |
|||
|
|||
#include "../src/types.hh" |
|||
#include "../src_old/types.hh" |
|||
|
|||
|
|||
TEST(StringList, Simple) |
@ -1,6 +1,6 @@ |
|||
#include <gtest/gtest.h> |
|||
|
|||
#include "../src/types.hh" |
|||
#include "../src_old/types.hh" |
|||
|
|||
typedef pEp::StringPair SP; |
|||
|
Loading…
Reference in new issue