Commit Graph

11 Commits

Author SHA1 Message Date
brian m. carlson
44ae87fa9d
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.
2018-11-13 19:44:41 +00:00
Taylor Blau
f8147219fd t/Makefile: mark test sources as .PHONY
We have used 'make' in the testing directory 't' to help run integration
tests, including starting and stopping a Git LFS test server, and
environmental setup bits.

We do so by writing a recipe that matches all testing files that we'd
want to run, and then running commands based on which one we picked.

Since we don't generate a file that was missing when running one of
these sources, 'make' will say that the file is up-to-date, unless we
run with 'make -B' (to force a re-make).

This is annoying to type, and can be avoided by marking the test targets
as .PHONY, indicating that they don't produce a file, and are instead
synthetic targets that can be run repeatedly without `make`'s up-to-date
checking.
2018-09-05 10:57:00 -04:00
Taylor Blau
bbb6d43d7a t/Makefile: refer to TEST_SRCS instead of pattern
In preparation to mark test sources as .PHONY, let's keep track of a
list of them so that we can eventually write:

  .PHONY : $(TEST_SRCS)

In the meantime, we'll replace the pattern "./t-%.sh", which will not
introduce a meaningful behavior change.
2018-09-05 10:55:50 -04:00
Taylor Blau
c591ff7fbb appveyor.yml: ensure tests are functional on Windows 2018-07-20 15:18:55 -05:00
Taylor Blau
4f2372215f t/Makefile: run setup/shutdown with 'bash -c'
On TravisCI, the default shell is '/bin/sh', and the library scripts in
t require Bash.

Since TravisCI's login shell cannot be changed, run the setup/shutdown
hack using bash -c.
2018-07-13 14:06:29 -05:00
Taylor Blau
eb056fb74b t: move testutils.go to cmd sub-package 2018-07-13 12:54:18 -05:00
Taylor Blau
896480b196 t/Makefile: 'make ./t-*.sh' target for running single tests 2018-07-12 12:39:39 -05:00
Taylor Blau
7e05d42693 t/Makefile: setup and shutdown in 'make test' 2018-07-12 12:39:39 -05:00
Taylor Blau
2097051b12 t: store test_count{,.lock} in t, not t/remote 2018-07-11 13:58:02 -05:00
Taylor Blau
1926e94297 t/cmd/lfstest-count-tests.go: initial commit 2018-07-11 13:18:15 -05:00
Taylor Blau
4a380ce009 t/Makefile: build auxiliary test programs for 'test' 2018-07-10 13:52:59 -05:00