Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Extend meta-ivi-test with a test that generates CAPI code during build #1

Merged
merged 3 commits into from
Jun 20, 2016

Conversation

pkonopel
Copy link

@pkonopel pkonopel commented Jun 9, 2016

The last two patches (4f0454f and 3c833bd) can be applied on top of c55c45f independently. The native recipes allow using Common API C++ generators as a part of the tool chain on the build host. They rely on pre-built generators being available through the CAPIC++ update site.

The recipe capicxx-perf builds two executables (client and server) that rely on CAPIC++ with the D-Bus backend. It invokes the code generators during the build and can be used to [smoke-] test both the CAPIC++ runtime and tools for core and D-Bus.

The recipe capicxx-someip-native can be optionally added to support SOME/IP code generator. It is not required by capicxx-perf, though.

@tolkien-joh
Copy link
Collaborator

tolkien-joh commented Jun 17, 2016

I checked capicxx-perf is working.
one thing I ask you.

could you move all test binary from /usr/bin to /opt/test/... like below?
--- a/meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb
+++ b/meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb
@@ -14,3 +14,21 @@ DEPENDS = "common-api-c++ common-api-c++-dbus capicxx-core-na
inherit cmake pkgconfig

EXTRA_OECMAKE += "-DCMAKE_INSTALL_PREFIX=/usr"

FILES_${PN} = "
/opt/tests/${PN}/*
"

FILES_${PN}-dbg += "
/opt/tests/${PN}/.debug/*
"

do_install_append() {
_DEST=${D}/opt/tests/${PN}
_BIN=${WORKDIR}/build
install -d ${_DEST}
mv ${D}/usr/bin/* ${D}/opt/tests/${PN}
rmdir ${D}/usr/bin
rmdir ${D}/usr
}

Pavel Konopelko added 3 commits June 17, 2016 17:44
These recipes fetch pre-built code generator binaries from Common API
C++ update site and make them available in sysroot.  The only
pre-requisite for the build host is that it has Java Run-time
Environment (JRE) installed.

Signed-off-by: Pavel Konopelko <pkonopel@visteon.com>
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>
Signed-off-by: Pavel Konopelko <pkonopel@visteon.com>
@pkonopel
Copy link
Author

OK, the PR is updated as requested and rebased on the current master (40f4544).

@tolkien-joh tolkien-joh merged commit d2bc0ed into GENIVI:master Jun 20, 2016
gunnarx pushed a commit to sashko/meta-ivi that referenced this pull request Oct 30, 2018
Comparing persistence_common_object tag 1.0.3 to this one (1.1.0), there
have been a few more changes introduced.  The recipe has however updated
its SRCREV to track master during this time, so the shortlog of the PCO
changes corresponding to the SRCREV change *in this commit* is:

6e827a9 Fix gdbus-codegen invocation
2ee245d Merge pull request GENIVI#5 from mdanilov/master
4b6b1ce Reverted: added dbus config file (there was commit to remove it due to conflict with pcl repo)
857df7a Change README to symlink
f5b3b67 Fixed build, added missed dbus config file
29ec697 Merge pull request GENIVI#2 from GordanM/topic/deprecated
d9235fa Merge pull request GENIVI#1 from GordanM/topic/fix-README
98a32c6 README.md: Update README
daa21fe Merge pull request GENIVI#3 from GordanM/topic/remove-dbus-conf
103be9f dbus_config: Remove dbus configuration file
fe82962 pers_ipc_dbus: remove deprecated glib init
eeac12c Added sqlite backend; use --with-database=sqlite in configure step

In any case the component has a new tag, and the recipe name therefore
now also changed to PV=1.1.0

Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
sashko pushed a commit to sashko/meta-ivi that referenced this pull request Oct 30, 2018
Comparing persistence_common_object tag 1.0.3 to this one (1.1.0), there
have been a few more changes introduced.  The recipe has however updated
its SRCREV to track master during this time, so the shortlog of the PCO
changes corresponding to the SRCREV change *in this commit* is:

6e827a9 Fix gdbus-codegen invocation
2ee245d Merge pull request GENIVI#5 from mdanilov/master
4b6b1ce Reverted: added dbus config file (there was commit to remove it due to conflict with pcl repo)
857df7a Change README to symlink
f5b3b67 Fixed build, added missed dbus config file
29ec697 Merge pull request GENIVI#2 from GordanM/topic/deprecated
d9235fa Merge pull request GENIVI#1 from GordanM/topic/fix-README
98a32c6 README.md: Update README
daa21fe Merge pull request GENIVI#3 from GordanM/topic/remove-dbus-conf
103be9f dbus_config: Remove dbus configuration file
fe82962 pers_ipc_dbus: remove deprecated glib init
eeac12c Added sqlite backend; use --with-database=sqlite in configure step

In any case the component has a new tag, and the recipe name therefore
now also changed to PV=1.1.0

Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
gunnarx pushed a commit to sashko/meta-ivi that referenced this pull request Oct 30, 2018
Comparing persistence_common_object tag 1.0.3 to this one (1.1.0), there
have been a few more changes introduced.  The recipe has however updated
its SRCREV to track master during this time, so the shortlog of the PCO
changes corresponding to the SRCREV change *in this commit* is:

6e827a9 Fix gdbus-codegen invocation
2ee245d Merge pull request GENIVI#5 from mdanilov/master
4b6b1ce Reverted: added dbus config file (there was commit to remove it due to conflict with pcl repo)
857df7a Change README to symlink
f5b3b67 Fixed build, added missed dbus config file
29ec697 Merge pull request GENIVI#2 from GordanM/topic/deprecated
d9235fa Merge pull request GENIVI#1 from GordanM/topic/fix-README
98a32c6 README.md: Update README
daa21fe Merge pull request GENIVI#3 from GordanM/topic/remove-dbus-conf
103be9f dbus_config: Remove dbus configuration file
fe82962 pers_ipc_dbus: remove deprecated glib init
eeac12c Added sqlite backend; use --with-database=sqlite in configure step

In any case the component has a new tag, and the recipe name therefore
now also changed to PV=1.1.0

Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
sashko pushed a commit to sashko/meta-ivi that referenced this pull request Oct 30, 2018
Comparing persistence_common_object tag 1.0.3 to this one (1.1.0), there
have been a few more changes introduced. The recipe has however updated
its SRCREV to track master during this time, so the shortlog of the PCO
changes corresponding to the SRCREV change *in this commit* is:

6e827a9 Fix gdbus-codegen invocation
2ee245d Merge pull request GENIVI#5 from mdanilov/master
4b6b1ce Reverted: added dbus config file (there was commit to remove it due to conflict with pcl repo)
857df7a Change README to symlink
f5b3b67 Fixed build, added missed dbus config file
29ec697 Merge pull request GENIVI#2 from GordanM/topic/deprecated
d9235fa Merge pull request GENIVI#1 from GordanM/topic/fix-README
98a32c6 README.md: Update README
daa21fe Merge pull request GENIVI#3 from GordanM/topic/remove-dbus-conf
103be9f dbus_config: Remove dbus configuration file
fe82962 pers_ipc_dbus: remove deprecated glib init
eeac12c Added sqlite backend; use --with-database=sqlite in configure step

In any case the component has a new tag, and the recipe name therefore
now also changed to PV=1.1.0

Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
sashko pushed a commit to sashko/meta-ivi that referenced this pull request Oct 30, 2018
Comparing persistence_common_object tag 1.0.3 to this one (1.1.0), there
have been a few more changes introduced. The recipe has however updated
its SRCREV to track master during this time, so the shortlog of the PCO
changes corresponding to the SRCREV change *in this commit* is:

6e827a9 Fix gdbus-codegen invocation
2ee245d Merge pull request GENIVI#5 from mdanilov/master
4b6b1ce Reverted: added dbus config file (there was commit to remove it due to conflict with pcl repo)
857df7a Change README to symlink
f5b3b67 Fixed build, added missed dbus config file
29ec697 Merge pull request GENIVI#2 from GordanM/topic/deprecated
d9235fa Merge pull request GENIVI#1 from GordanM/topic/fix-README
98a32c6 README.md: Update README
daa21fe Merge pull request GENIVI#3 from GordanM/topic/remove-dbus-conf
103be9f dbus_config: Remove dbus configuration file
fe82962 pers_ipc_dbus: remove deprecated glib init
eeac12c Added sqlite backend; use --with-database=sqlite in configure step

In any case the component has a new tag, and the recipe name therefore
now also changed to PV=1.1.0

Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
sashko pushed a commit to sashko/meta-ivi that referenced this pull request Oct 30, 2018
Comparing persistence_common_object tag 1.0.3 to this one (1.1.0), there
have been a few more changes introduced. The recipe has however updated
its SRCREV to track master during this time, so the shortlog of the PCO
changes corresponding to the SRCREV change *in this commit* is:

6e827a9 Fix gdbus-codegen invocation
2ee245d Merge pull request GENIVI#5 from mdanilov/master
4b6b1ce Reverted: added dbus config file (there was commit to remove it due to conflict with pcl repo)
857df7a Change README to symlink
f5b3b67 Fixed build, added missed dbus config file
29ec697 Merge pull request GENIVI#2 from GordanM/topic/deprecated
d9235fa Merge pull request GENIVI#1 from GordanM/topic/fix-README
98a32c6 README.md: Update README
daa21fe Merge pull request GENIVI#3 from GordanM/topic/remove-dbus-conf
103be9f dbus_config: Remove dbus configuration file
fe82962 pers_ipc_dbus: remove deprecated glib init
eeac12c Added sqlite backend; use --with-database=sqlite in configure step

In any case the component has a new tag, and the recipe name therefore
now also changed to PV=1.1.0

Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
sashko pushed a commit to sashko/meta-ivi that referenced this pull request Oct 31, 2018
Comparing persistence_common_object tag 1.0.3 to this one (1.1.0), there
have been a few more changes introduced. The recipe has however updated
its SRCREV to track master during this time, so the shortlog of the PCO
changes corresponding to the SRCREV change *in this commit* is:

6e827a9 Fix gdbus-codegen invocation
2ee245d Merge pull request GENIVI#5 from mdanilov/master
4b6b1ce Reverted: added dbus config file (there was commit to remove it due to conflict with pcl repo)
857df7a Change README to symlink
f5b3b67 Fixed build, added missed dbus config file
29ec697 Merge pull request GENIVI#2 from GordanM/topic/deprecated
d9235fa Merge pull request GENIVI#1 from GordanM/topic/fix-README
98a32c6 README.md: Update README
daa21fe Merge pull request GENIVI#3 from GordanM/topic/remove-dbus-conf
103be9f dbus_config: Remove dbus configuration file
fe82962 pers_ipc_dbus: remove deprecated glib init
eeac12c Added sqlite backend; use --with-database=sqlite in configure step

In any case the component has a new tag, and the recipe name therefore
now also changed to PV=1.1.0

Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
gunnarx pushed a commit that referenced this pull request Oct 31, 2018
Comparing persistence_common_object tag 1.0.3 to this one (1.1.0), there
have been a few more changes introduced. The recipe has however updated
its SRCREV to track master during this time, so the shortlog of the PCO
changes corresponding to the SRCREV change *in this commit* is:

6e827a9 Fix gdbus-codegen invocation
2ee245d Merge pull request #5 from mdanilov/master
4b6b1ce Reverted: added dbus config file (there was commit to remove it due to conflict with pcl repo)
857df7a Change README to symlink
f5b3b67 Fixed build, added missed dbus config file
29ec697 Merge pull request #2 from GordanM/topic/deprecated
d9235fa Merge pull request #1 from GordanM/topic/fix-README
98a32c6 README.md: Update README
daa21fe Merge pull request #3 from GordanM/topic/remove-dbus-conf
103be9f dbus_config: Remove dbus configuration file
fe82962 pers_ipc_dbus: remove deprecated glib init
eeac12c Added sqlite backend; use --with-database=sqlite in configure step

In any case the component has a new tag, and the recipe name therefore
now also changed to PV=1.1.0

Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants