aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/tests/local.mk
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-08 17:02:25 +0200
committerGitHub <noreply@github.com>2020-05-08 17:02:25 +0200
commitd3d8186c9c9a4f4734d1604b19047f11b0edb049 (patch)
tree175391421d04419b366e648631134b0917496eef /src/libutil/tests/local.mk
parent41caaaad365b8e5260069c20458a2043254a6989 (diff)
parent181a47d8845e06edc9653e99de589376a1a96bb6 (diff)
Merge pull request #3571 from gilligan/nix-unit-testing
Add unit tests
Diffstat (limited to 'src/libutil/tests/local.mk')
-rw-r--r--src/libutil/tests/local.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libutil/tests/local.mk b/src/libutil/tests/local.mk
new file mode 100644
index 000000000..a297edb64
--- /dev/null
+++ b/src/libutil/tests/local.mk
@@ -0,0 +1,15 @@
+check: libutil-tests_RUN
+
+programs += libutil-tests
+
+libutil-tests_DIR := $(d)
+
+libutil-tests_INSTALL_DIR :=
+
+libutil-tests_SOURCES := $(wildcard $(d)/*.cc)
+
+libutil-tests_CXXFLAGS += -I src/libutil
+
+libutil-tests_LIBS = libutil
+
+libutil-tests_LDFLAGS := $(GTEST_LIBS)