unable to run agl-service-gps tests

Description

git clone -b guppy https://gerrit.automotivelinux.org/gerrit/apps/agl-service-gps.git

The agl-service-gps is affected by SPEC-2314
After renaming the .json file with its proper 'aft-agl-' naming convention, the produced services are marked with '-dirty' postfix.

According to the documentation - http://docs.automotivelinux.org/master/docs/apis_services/en/dev/reference/afb-test/launch-the-tests.html#example-on-a-target - running afm-test agl-service-gps-test should provide us with a list of the examples ran and their PASS/FAIL result .
This is what happens when a test is ran on a board:

Diving deeper into the tests, it turns out that the gpsfake utility is used to simulate NMEA test data.

gpsfake is python 2 utility, part of the gpsd project - http://catb.org/gpsd/gpsfake.html (- but for some reason seems to be distributed separately in Debian 9 and provided by the 'python-gps' package').
gpsfake is also missing in AGL.

It is difficult to discern where is that "Resource temporarily unavailable" error coming from.

Copying gpsfake manually on the board and executing it shows errors for missing gps and socket modules.

Even if the 'gps' module is missing, the 'socket' module should be part of the standard python base library.

You can verify the missing modules by executing "python" and running "import gps" or "import socket".

Environment

None

Activity

Walt Miner 
July 9, 2019 at 3:47 PM

Close for HH RC2

Walt Miner 
July 9, 2019 at 3:47 PM

Fixed as part of

Edi Feschiyan 
July 8, 2019 at 9:41 AM

The fixed tests were merged in https://gerrit.automotivelinux.org/gerrit/c/apps/agl-service-gps/+/21608 by

Closing issue.

Edi Feschiyan 
May 22, 2019 at 11:24 AM

Initially we were not sure why the tests were failing since we first and we had no idea about as I mentioned in the description,  also interferes with the tests and since we tried tests for the first time I opened this ticket.

Adding gps-utils to RDEPENDS in e.g. meta-agl-profile-core/recipes-devtools/packagegroups/packagegroup-agl-core-devel.bb  provides gpsfake.

We commented out the lines in gps_BasicAPITest.lua related to gpsfake and the tests are running without modifying bb recipes; either way gpsfake is not needed for the current tests.

Matt Ranostay 
May 21, 2019 at 8:53 PM

I'm not sure. There is replay function in the binding but I know that doesn't help the coverage tests.

For gpsfake I'm not sure what the issue is? Is it trying to use python3 or 2?

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Contract ID

Hardware Platform(s) Affected

Intel Minnowboard
Intel Upsquare
Renesas M3

Components

Affects versions

Priority

Created April 16, 2019 at 2:05 PM
Updated September 19, 2019 at 12:06 PM
Resolved July 8, 2019 at 9:41 AM