From 60d890c9e9ba5d374c238647561ce23fa23bc431 Mon Sep 17 00:00:00 2001 From: Anastasios Grammenos Date: Mon, 5 Apr 2021 15:53:13 +0300 Subject: Add some tests --- test/run.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 test/run.sh (limited to 'test/run.sh') diff --git a/test/run.sh b/test/run.sh new file mode 100755 index 0000000..bc60ead --- /dev/null +++ b/test/run.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +XDOTOOL=$(which xdotool) + +if [ $? == 1 ]; then + XDOTOOL=: +fi + +./xlnch </dev/null & + +# comment + +#^ blank line + +# wrong key +aaa:description:command + +# no description +b::command + +# no command +c:no_command: + +# no `:` +this is a wrong config line + +# special characters +Ö × ĥ Ħ ﻰ ﻱ ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 7 8 : ; < = > ? @ B C H IY Z [ \ ] ^ _ ` v w x y z { | } ~ 。 「 」 、 ・ ヲ ァ ィ ゥ ェタ チ ツ + +EOF +PID=$! +sleep .1 +$XDOTOOL key q +wait $PID + +echo $? + + -- cgit v1.2.3