-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMK-450: Make unit tests for Livestatus & Microcore possible
For now, this contains just a simple test for a header-only function, but the rest of the machinery is there when you need it. Fun fact: This test immediately uncovered a (harmless) bug, which will be fixed in an upcoming commit. Change-Id: I65686642e660e1aa15255fba8bc5f7de8caaf923
- Loading branch information
Sven Panne
committed
Aug 1, 2018
1 parent
7f456d5
commit 9882057
Showing
6 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
destdir/ | ||
googletest-??????????/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
include ../../Makefile.omd | ||
|
||
# tar file generated by cloning https://github.com/google/googletest and doing: | ||
# ( VERSION=0048647619; git archive --prefix=googletest-$VERSION/ -o ~/git/check_mk/omd/packages/googletest/googletest-$VERSION.tar.gz $VERSION ) | ||
|
||
NAME := googletest | ||
VERSION := 0048647619 | ||
DIR := $(NAME)-$(VERSION) | ||
|
||
.PHONY: build install skel clean | ||
|
||
# The rules below are not perfect, but good enough for now... | ||
build: $(DIR)/Makefile | ||
$(MAKE) -C $(DIR) | ||
mkdir -p $(PACKAGE_GOOGLETEST_DESTDIR)/lib | ||
# We do not ship the headers and libraries, we just need them at a known | ||
# location for testing. | ||
cp -au $(DIR)/googletest/include $(DIR)/googlemock/include $(PACKAGE_GOOGLETEST_DESTDIR) | ||
cp -au $(DIR)/googletest/lib/.libs/lib*.a $(DIR)/googlemock/lib/.libs/lib*.a $(PACKAGE_GOOGLETEST_DESTDIR)/lib | ||
|
||
$(DIR)/Makefile.in: $(DIR).tar.gz | ||
tar xzf $(DIR).tar.gz | ||
cd $(DIR) && autoreconf -i | ||
|
||
$(DIR)/Makefile: $(DIR)/Makefile.in | ||
cd $(DIR) && ./configure --disable-shared | ||
|
||
install: | ||
|
||
skel: | ||
|
||
clean: | ||
rm -rf $(DIR) $(PACKAGE_GOOGLETEST_DESTDIR) |
This file was deleted.
Oops, something went wrong.