From 56b4f827f86accbb9e007ff32c5413bcbafbfc19 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 21 Oct 2023 12:52:16 -0400 Subject: Makefile: Add test --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8dc42f0..6b730a8 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,11 @@ words-qwerty-en: /usr/share/dict/american-english mapScore /usr/share/dict/american-english: apk add words-en +test: words-qwerty-en swipeGuess + test `echo "asdfghjkl" | ./swipeGuess words-qwerty-en` = "all" + test `echo "dfghuiokmnhyt" | ./swipeGuess words-qwerty-en 1 "'"` = "don't" + test "`echo "tyuiopoiuytrewertyuiuytrer" | ./swipeGuess words-qwerty-en 2`" = "`printf "typewriter\ttorturer"`" + install: all install -m755 swipeGuess -D -t "$(DESTDIR)/$(PREFIX)/bin/" install -m755 mapScore -D -t "$(DESTDIR)/$(PREFIX)/bin/" -- cgit 1.4.1