From 3ccc7effa376ea2b9206c272f3087c882f347c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 16 Nov 2016 22:22:49 +0100 Subject: 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 key to give vis a chance to distinguish between a single and the start of an escape sequence --- vis/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'vis/Makefile') 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 -- cgit v1.2.3