Hello world service and tests issues

Description

The hello world service and test do not run.

After building a fresh image with bitbake agl-demo-platform-crosssdk, installing the sdk and sourcing the sdk environment file, here are the following steps taken 

  

 

It should be noted that there are discrepancies within the documentation - for example

http://docs.automotivelinux.org/guppy/docs/apis_services/en/dev/reference/afb-test/the-test-widget.html#build-the-test-widget

The example shown uses -DBUILD_TEST_WIDGET=TRUE, however the correct option is the one shown in the description above -DBUILD_TEST_WGT=TRUE, which would not produce a test widget file following the former example.

This produces 2 .wgt files

 

 

The result of the installation and running the helloworld service is the following:

 

This results in the following 

It turns out that the generated systemd service points to a non-existent .so file, and therefore this has to be fixed by editing the conf.d/wgt/config.xml.in line13 (found by ):

 

 

into 

 After cleaning and rebuilding the hello world service widget, scp-ing to the board and installing, the service seems to be running:

 

Installing the test widget seems to go fine, however running it - does not:

 

The failing test service reports this log: 

 

 

 

Environment

None

Attachments

2

Activity

Show:

Pierre Marzin 
April 24, 2019 at 11:38 AM

The pull request has been merge into helloworld service. This add some tests for the helloworld-skeleton binding as an example.
Then, issue can now be closed.

Edi Feschiyan 
April 11, 2019 at 12:36 PM

I see the pull request, .

Thank you.

Pierre Marzin 
April 11, 2019 at 12:30 PM

To complete the helloworld service, test scripts have been added to the helloworld project. This permit the use of the test widget with the helloworld service demo.

"agl-service-helloworld-test.wgt" should now start properly.

Pierre Marzin 
April 10, 2019 at 1:53 PM

Dear Edi,

thanks for sharing this. The mistake for helloworld service has been corrected and the patch is pushed into helloworld-service project.

However, the helloworld service does not include any test files. Then, if you try to build the test widget of the helloworld service the build will succeed. But starting the test widget will fail because no test files will be found.

Regards.

Fixed

Details

Assignee

Reporter

Contract ID

Hardware Platform(s) Affected

Intel Minnowboard
Intel Upsquare
QEMU x86_64
Raspberry Pi 3
Renesas M3

Components

Priority

Created April 9, 2019 at 9:46 AM
Updated April 24, 2019 at 8:05 PM
Resolved April 24, 2019 at 11:39 AM