From 44ae87fa9d9056200e8ffe58053cd314236a3df7 Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Tue, 13 Nov 2018 15:04:07 +0000 Subject: [PATCH] t/Makefile: build git-lfs-test-server-api as part of integration tests We want to be sure this test script gets built regularly to avoid breakage during refactors. In order to do so, build it as part of the integration test suite. --- t/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/t/Makefile b/t/Makefile index a1cb5611..6f6107e6 100644 --- a/t/Makefile +++ b/t/Makefile @@ -19,7 +19,12 @@ TEST_CMDS += ../bin/lfstest-gitserver$X TEST_CMDS += ../bin/lfstest-standalonecustomadapter$X TEST_CMDS += ../bin/lfstest-testutils$X -TEST_SRCS = $(wildcard t-*.sh) +# Not used for the integration tests, but build it here anyway to ensure it +# continues to work. +TEST_CMDS += ../bin/git-lfs-test-server-api$X + +TEST_SRCS = $(wildcard t-*.sh) +TEST_API_SRCS = $(wildcard git-lfs-test-server-api/*.go) all : $(DEFAULT_TEST_TARGET) @@ -41,3 +46,6 @@ clean : ../bin/%$X : cmd/%.go go build -o $@ $^ + +../bin/git-lfs-test-server-api$X : $(TEST_API_SRCS) + go build -o $@ $^