From 760c644a1d9f55c91b74521b112958966e00ea31 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 22 Apr 2014 18:35:11 +0200 Subject: Import Von's tests, with cleanups. --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8f9a5db..5394b37 100644 --- a/Makefile +++ b/Makefile @@ -22,8 +22,6 @@ else FISHCOMP_SWITCH := endif -.PHONY: install uninstall install-common - all: @echo "Password store is a shell script, so there is nothing to do. Try \"make install\" instead." @@ -55,3 +53,15 @@ uninstall: "$(DESTDIR)$(PREFIX)/share/bash-completion/completions/pass" \ "$(DESTDIR)$(PREFIX)/share/zsh/site-functions/_pass" \ "$(DESTDIR)$(PREFIX)/share/fish/completions/pass.fish" + +TESTS = $(wildcard tests/t[0-9][0-9][0-9][0-9]-*.sh) + +test: $(TESTS) + +$(TESTS): + @cd $$(dirname "$@") && ./$$(basename "$@") $(PASS_TEST_OPTS) + +clean: + $(RM) -rf tests/test-results/ tests/trash\ directory.*/ + +.PHONY: install uninstall install-common test clean $(TESTS) -- cgit v1.2.3