2018-07-10 14:09:50 +00:00
|
|
|
RM ?= rm -f
|
|
|
|
PROVE ?= prove
|
|
|
|
PROVE_EXTRA_ARGS =
|
|
|
|
DEFAULT_TEST_TARGET ?= test
|
|
|
|
|
|
|
|
GO ?= go
|
|
|
|
X =
|
|
|
|
|
|
|
|
TEST_CMDS =
|
|
|
|
|
|
|
|
TEST_CMDS += ../bin/git-credential-lfsnoop$X
|
|
|
|
TEST_CMDS += ../bin/git-credential-lfstest$X
|
|
|
|
TEST_CMDS += ../bin/lfs-askpass$X
|
|
|
|
TEST_CMDS += ../bin/lfs-ssh-echo$X
|
|
|
|
TEST_CMDS += ../bin/lfs-ssh-proxy-test$X
|
2018-07-11 16:42:28 +00:00
|
|
|
TEST_CMDS += ../bin/lfstest-count-tests$X
|
2018-07-10 14:09:50 +00:00
|
|
|
TEST_CMDS += ../bin/lfstest-customadapter$X
|
|
|
|
TEST_CMDS += ../bin/lfstest-gitserver$X
|
|
|
|
TEST_CMDS += ../bin/lfstest-standalonecustomadapter$X
|
|
|
|
TEST_CMDS += ../bin/lfstest-testutils$X
|
|
|
|
|
2018-11-13 15:04:07 +00:00
|
|
|
# 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)
|
2018-09-05 14:55:50 +00:00
|
|
|
|
2018-07-10 14:09:50 +00:00
|
|
|
all : $(DEFAULT_TEST_TARGET)
|
|
|
|
|
|
|
|
test : $(TEST_CMDS)
|
2018-07-11 18:58:02 +00:00
|
|
|
$(RM) -r remote test_count{,.lock}
|
2018-07-17 18:31:38 +00:00
|
|
|
@GIT_LFS_NO_TEST_COUNT= bash -c '. ./testenv.sh && setup'
|
|
|
|
$(PROVE) $(PROVE_EXTRA_ARGS) ./t-*.sh
|
|
|
|
@GIT_LFS_NO_TEST_COUNT= bash -c '. ./testenv.sh && shutdown'
|
2018-07-10 14:09:50 +00:00
|
|
|
|
2018-09-05 14:57:00 +00:00
|
|
|
.PHONY : $(TEST_SRCS)
|
2018-09-05 14:55:50 +00:00
|
|
|
$(TEST_SRCS) : $(TEST_CMDS)
|
2018-07-12 17:39:39 +00:00
|
|
|
$(RM) -r remote test_count{,.lock}
|
2018-07-17 18:31:38 +00:00
|
|
|
$(PROVE) -v $(PROVE_EXTRA_ARGS) $@
|
2018-07-12 17:39:39 +00:00
|
|
|
|
2018-07-10 14:09:50 +00:00
|
|
|
.PHONY : clean
|
|
|
|
clean :
|
2018-07-11 16:42:28 +00:00
|
|
|
$(RM) -r remote
|
2018-07-10 14:09:50 +00:00
|
|
|
$(RM) $(TEST_CMDS)
|
|
|
|
|
2018-07-13 17:54:18 +00:00
|
|
|
../bin/%$X : cmd/%.go
|
2018-07-10 14:09:50 +00:00
|
|
|
go build -o $@ $^
|
2018-11-13 15:04:07 +00:00
|
|
|
|
|
|
|
../bin/git-lfs-test-server-api$X : $(TEST_API_SRCS)
|
|
|
|
go build -o $@ $^
|