From cace8123f44b6841cd4e70c00fc49377f6269484 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 13 Oct 2016 16:39:20 +0100 Subject: [PATCH 1/2] Link against subunit for testing. This fixes the problems in Debian stretch+. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5626aac..b839419 100644 --- a/Makefile +++ b/Makefile @@ -94,7 +94,7 @@ CHECK_OBJ := $(CHECK_SRC:tests/unit/%.c=build/%.o) CHECK_BINS := $(CHECK_SRC:tests/unit/%.c=build/%) build/check_%: build/check_%.o - $(LINK) $^ -o $@ $(COMMON_OBJ) $(SERVER_OBJ) -lcheck + $(LINK) $^ -o $@ $(COMMON_OBJ) $(SERVER_OBJ) -lcheck -lsubunit check_objs: $(CHECK_OBJ) From 72992c76ac98b3f46ccddd90e63b401fe735396f Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 13 Oct 2016 16:42:21 +0100 Subject: [PATCH 2/2] Added libsubunit to the gitlab-ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0cd428..0aa82d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ image: "ruby:2.1" before_script: - - apt-get update; apt-get install -y check libev-dev net-tools dpkg-dev + - apt-get update; apt-get install -y check libev-dev net-tools dpkg-dev libsubunit-dev unit_test: script: