summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-22 18:35:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-22 18:35:11 +0200
commit760c644a1d9f55c91b74521b112958966e00ea31 (patch)
tree2514b500511a8dcf0d56d2a49ee69487f5cb4f56 /Makefile
parent07bcfccebfa2f885849f0b8698a496c3c757d8a7 (diff)
downloadpass-760c644a1d9f55c91b74521b112958966e00ea31.tar.gz
pass-760c644a1d9f55c91b74521b112958966e00ea31.tar.bz2
pass-760c644a1d9f55c91b74521b112958966e00ea31.zip
Import Von's tests, with cleanups.
Diffstat (limited to '')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
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)