git-interface: Add test suite and basic tests

Add basic tests for the Git interface. The test suite is based on
sharness.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2016-08-04 20:36:31 +02:00
parent 5014b74868
commit 6e38309c19
6 changed files with 1048 additions and 0 deletions

View file

@ -0,0 +1,11 @@
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
check: $(T)
clean:
$(RM) -r test-results/
$(T):
@echo "*** $@ ***"; $(SHELL) $@
.PHONY: check clean $(T)