summaryrefslogtreecommitdiff
path: root/package/adk-test-tools
diff options
context:
space:
mode:
Diffstat (limited to 'package/adk-test-tools')
-rw-r--r--package/adk-test-tools/Makefile28
-rwxr-xr-xpackage/adk-test-tools/files/test.init11
-rwxr-xr-xpackage/adk-test-tools/src/qmp4
-rwxr-xr-xpackage/adk-test-tools/src/quit2
4 files changed, 45 insertions, 0 deletions
diff --git a/package/adk-test-tools/Makefile b/package/adk-test-tools/Makefile
new file mode 100644
index 000000000..bc2624fe9
--- /dev/null
+++ b/package/adk-test-tools/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= adk-test-tools
+PKG_VERSION:= 0.1
+PKG_RELEASE:= 1
+PKG_DESCR:= helper tools and scripts for adk-test-framework
+PKG_SECTION:= misc
+PKG_URL:= http://openadk.org/
+
+NO_DISTFILES:= 1
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,ADK_TEST_TOOLS,adk-test-tools,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+BUILD_STYLE:= manual
+INSTALL_STYLE:= manual
+
+adk-test-tools-install:
+ $(INSTALL_DIR) $(IDIR_ADK_TEST_TOOLS)/usr/bin
+ $(INSTALL_BIN) $(WRKBUILD)/{qmp,quit} \
+ $(IDIR_ADK_TEST_TOOLS)/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/adk-test-tools/files/test.init b/package/adk-test-tools/files/test.init
new file mode 100755
index 000000000..81095fa39
--- /dev/null
+++ b/package/adk-test-tools/files/test.init
@@ -0,0 +1,11 @@
+#!/bin/sh
+#PKG adk-test-tools
+#INIT 90
+[[ $1 = autostart ]] || exit 0
+echo "Starting test script ..."
+if [ -x /run.sh ];then
+ exec /run.sh
+else
+ echo "no run.sh found"
+fi
+quit
diff --git a/package/adk-test-tools/src/qmp b/package/adk-test-tools/src/qmp
new file mode 100755
index 000000000..8f9912222
--- /dev/null
+++ b/package/adk-test-tools/src/qmp
@@ -0,0 +1,4 @@
+#!/bin/sh
+echo '{ "execute": "qmp_capabilities" }'
+sleep 1
+echo '{ "execute": "quit" }'
diff --git a/package/adk-test-tools/src/quit b/package/adk-test-tools/src/quit
new file mode 100755
index 000000000..a625553e2
--- /dev/null
+++ b/package/adk-test-tools/src/quit
@@ -0,0 +1,2 @@
+#!/bin/sh
+socat exec:/usr/bin/qmp tcp:10.0.2.2:4444