summaryrefslogtreecommitdiff
path: root/vis/Makefile
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-16 22:22:49 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-16 23:36:45 +0100
commit3ccc7effa376ea2b9206c272f3087c882f347c9b (patch)
treee4a17c05abfee035dc2a1fed1c47a0c8b229a9fd /vis/Makefile
parent1288db6bdeb0d5f9b24b208603e16871ff59cffc (diff)
test/vis: convert vis specific tests to use the Lua API
Instead of using the keys utility to convert the textual key representation into something a terminal would send and then pipe it to vis' standard input use the Lua API to directly feed the keys into vis' input queue. This has a number of advantages: - it is less fragile: the keys utility is incomplete and only handles the most common keys - it is faster because there is no need to artificially delay input after an <Escape> key to give vis a chance to distinguish between a single <Escape> and the start of an escape sequence
Diffstat (limited to 'vis/Makefile')
-rw-r--r--vis/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/vis/Makefile b/vis/Makefile
index 36a4ce7..be58c44 100644
--- a/vis/Makefile
+++ b/vis/Makefile
@@ -1,13 +1,10 @@
-test: ../../vis ../util/keys
+test: ../../vis clean
@./test.sh
../../vis: ../../*.[ch]
@echo Compiling vis
@$(MAKE) -C ../..
-../util/keys: ../util/keys.c
- @$(MAKE) -C ../util
-
clean:
@echo cleaning
@find . -name '*.out' -o -name '*.err' | xargs rm -f