summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2008-11-11 10:43:54 +0000
committerWolfram Sang <w.sang@pengutronix.de>2008-11-11 10:43:54 +0000
commit6591cab3e2a158b98998174c4293b94293aa54bf (patch)
tree6ee57a30c37d2c23aaed5a057741351e25012882 /tests
parent8c6520e03aa571201a920ffb1158cbf9be431aac (diff)
downloadptxdist-6591cab3e2a158b98998174c4293b94293aa54bf.tar.gz
ptxdist-6591cab3e2a158b98998174c4293b94293aa54bf.tar.xz
* tests: add boot and connect
* tests: add possibility to use rfc2217 as serial (comport-over-telnet) * ckermit: use latest version and patch for moxa git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9104 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'tests')
-rwxr-xr-xtests/boot3
-rw-r--r--tests/boot.kermit12
-rwxr-xr-xtests/connect3
-rw-r--r--tests/connect.kermit7
4 files changed, 25 insertions, 0 deletions
diff --git a/tests/boot b/tests/boot
new file mode 100755
index 000000000..af7e72d67
--- /dev/null
+++ b/tests/boot
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+${PTXDIST_TOPDIR}/tests/kwrapper boot
diff --git a/tests/boot.kermit b/tests/boot.kermit
new file mode 100644
index 000000000..9d14113c4
--- /dev/null
+++ b/tests/boot.kermit
@@ -0,0 +1,12 @@
+#Read the library
+take \%1/libptxdisttest.kermit
+
+#Set up the line
+ptx_init \%2
+
+ptx_wait_string_single "Checking for U-Boot" 60 "U-Boot"
+ptx_wait_string_single "Checking for Kernel" 30 "Linux version"
+ptx_wait_string_single "Checking for init" 30 "init started:"
+ptx_wait_string_single "Checking for login" 30 "login:"
+
+ptx_exit
diff --git a/tests/connect b/tests/connect
new file mode 100755
index 000000000..60fe072bc
--- /dev/null
+++ b/tests/connect
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+${PTXDIST_TOPDIR}/tests/kwrapper connect >&2
diff --git a/tests/connect.kermit b/tests/connect.kermit
new file mode 100644
index 000000000..491fe2bfc
--- /dev/null
+++ b/tests/connect.kermit
@@ -0,0 +1,7 @@
+#Read the library
+take \%1/libptxdisttest.kermit
+
+#Set up the line
+ptx_init \%2
+
+connect