add simple test script
authorMalte S. Stretz <mss@apache.org>
Tue, 11 Jan 2011 01:27:46 +0000 (02:27 +0100)
committerMalte S. Stretz <mss@apache.org>
Tue, 11 Jan 2011 01:27:46 +0000 (02:27 +0100)
Makefile
ax89063.sh [new file with mode: 0755]

index f807832..ebadadd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@ clean:
 veryclean:
        rm -rf $(LCDPROC_DIR)
        rm -rf $(LCDPROC_DST)
+
+getdir:
+       @echo $(LCDPROC_DIR)
        
 
 $(LCDPROC_DIR)/Makefile: $(LCDPROC_DIR)/configure
diff --git a/ax89063.sh b/ax89063.sh
new file mode 100755 (executable)
index 0000000..c2cb4e8
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+# Simple script to talk to a vrtual serial port
+#
+# Required config:
+#  [server]
+#  DriverPath=server/drivers/
+#  Driver=ax89063
+#  [ax89063]
+#  Device=./LCDd.tty
+
+set -e
+
+cd $(make getdir)
+
+(sleep 1; server/LCDd -f -c ./LCDd.conf -r 4 "$@") &
+socat PTY,link=./LCDd.tty,raw,echo=0,wait-slave READLINE
+