diff options
author | Roland Reichwein <mail@reichwein.it> | 2022-12-30 15:07:39 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2022-12-30 15:07:39 +0100 |
commit | af1c4ee4d74ff7afc997372802d851d11daad418 (patch) | |
tree | 745761113c41ccbe6ea37119b51b609a219882c9 /tests/Makefile | |
parent | 3f3d579c6a6f9a1a31278221f85b3194e3b6c5f4 (diff) |
Added tests, added sqlite-backed storage (WIP!)
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..78097ce --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,26 @@ +include ../common.mk + +CXXFLAGS+=\ + -I/usr/src/googletest/googletest/include \ + -I/usr/src/googletest/googlemock/include \ + -I/usr/src/googletest/googletest \ + -I/usr/src/googletest/googlemock \ + -I.. + +test: unittests + ./unittests + +unittests: libgmock.a unittests.o ../config.o ../file.o ../storage.o + $(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@ + +unittests.o: unittests.cpp + $(CXX) $(CXXFLAGS) -o $@ -c unittests.cpp + +libgmock.a: + $(CXX) $(CXXFLAGS) -c /usr/src/googletest/googletest/src/gtest-all.cc + $(CXX) $(CXXFLAGS) -c /usr/src/googletest/googlemock/src/gmock-all.cc + $(CXX) $(CXXFLAGS) -c /usr/src/googletest/googlemock/src/gmock_main.cc + ar -rv libgmock.a gmock-all.o gtest-all.o gmock_main.o + +clean: + -rm -f *.o *.a unittests |