aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Konopelko <pkonopel@visteon.com>2016-06-09 18:26:06 +0200
committerPavel Konopelko <pkonopel@visteon.com>2016-06-17 17:44:54 +0200
commit6bc055f6f8f9b6d1604a6c91002c7022eac981f4 (patch)
tree71b318b0636ed6a7d3a5ccdc41a318a1d49b52e5
parenta375592949562b5c2face34179b0718e8fb7d454 (diff)
downloadmeta-ivi-6bc055f6f8f9b6d1604a6c91002c7022eac981f4.tar.gz
meta-ivi-6bc055f6f8f9b6d1604a6c91002c7022eac981f4.tar.bz2
meta-ivi-6bc055f6f8f9b6d1604a6c91002c7022eac981f4.zip
common-api: add capicxx-perf test
The test includes capicxx-server and capicxx-client applications that use Common API C++ to connect via D-Bus. The client invokes a method on the server, waits for the server to respond and repeats this sequence multiple times. The code generation is performed automatically as a build step and depends on capicxx-{core|dbus}-native recipes. The following transcript illustrates the usage: root@qemux86-64:~# dbus-run-session -- sh root@qemux86-64:~# capicxx-server & root@qemux86-64:~# Started capicxx-server capicxx-server heartbeat 1200s... root@qemux86-64:~# capicxx-client Started capicxx-client starting test... test completed message payload [bytes]: 0 sync messages sent: 10000 messages per [s]: 344.59 exiting capicxx-client root@qemux86-64:~# Signed-off-by: Pavel Konopelko <pkonopel@visteon.com>
-rw-r--r--meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb b/meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb
new file mode 100644
index 0000000..2263647
--- /dev/null
+++ b/meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb
@@ -0,0 +1,34 @@
+SUMMARY = "Common API C++ test code: measure the performance of message sending"
+SECTION = "tests"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = \
+ "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"
+PR = "r0"
+
+SRCREV = "2eacc9d7fb76957e9a5450a559675fddf0a95ce2"
+SRC_URI = "git://github.com/GENIVI/capic-poc.git"
+S = "${WORKDIR}/git/test/capicxx-perf"
+
+DEPENDS = "common-api-c++ common-api-c++-dbus capicxx-core-native capicxx-dbus-native"
+
+inherit cmake pkgconfig
+
+EXTRA_OECMAKE += "-DCMAKE_INSTALL_PREFIX=/usr"
+
+_installdir = "/opt/tests/${PN}"
+
+FILES_${PN} = " \
+ ${_installdir}/* \
+ "
+
+FILES_${PN}-dbg += " \
+ ${_installdir}/.debug/* \
+ "
+
+do_install_append() {
+ _DEST=${D}${_installdir}
+ install -d ${_DEST}
+ mv ${D}/usr/bin/* ${_DEST}
+ rmdir ${D}/usr/bin
+ rmdir ${D}/usr
+}