diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-22 18:35:11 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-22 18:35:11 +0200 |
commit | 760c644a1d9f55c91b74521b112958966e00ea31 (patch) | |
tree | 2514b500511a8dcf0d56d2a49ee69487f5cb4f56 /Makefile | |
parent | 07bcfccebfa2f885849f0b8698a496c3c757d8a7 (diff) | |
download | pass-760c644a1d9f55c91b74521b112958966e00ea31.tar.gz pass-760c644a1d9f55c91b74521b112958966e00ea31.tar.bz2 pass-760c644a1d9f55c91b74521b112958966e00ea31.zip |
Import Von's tests, with cleanups.
Diffstat (limited to '')
-rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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) |