Skip to content

Commit 44ae87f

Browse files
committed
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.
1 parent cac2782 commit 44ae87f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

t/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ TEST_CMDS += ../bin/lfstest-gitserver$X
1919
TEST_CMDS += ../bin/lfstest-standalonecustomadapter$X
2020
TEST_CMDS += ../bin/lfstest-testutils$X
2121

22-
TEST_SRCS = $(wildcard t-*.sh)
22+
# Not used for the integration tests, but build it here anyway to ensure it
23+
# continues to work.
24+
TEST_CMDS += ../bin/git-lfs-test-server-api$X
25+
26+
TEST_SRCS = $(wildcard t-*.sh)
27+
TEST_API_SRCS = $(wildcard git-lfs-test-server-api/*.go)
2328

2429
all : $(DEFAULT_TEST_TARGET)
2530

@@ -41,3 +46,6 @@ clean :
4146

4247
../bin/%$X : cmd/%.go
4348
go build -o $@ $^
49+
50+
../bin/git-lfs-test-server-api$X : $(TEST_API_SRCS)
51+
go build -o $@ $^

0 commit comments

Comments
 (0)