grilo automated
medium
- Image Types:
- basesdk-amd64 / hmi-armhf / hmi-amd64 / sdk-amd64
- Image Deployment:
- APT
- Type:
- functional
Description
Check grilo metadata notifications, and filesystem browsing.
Pre Conditions
- Ensure Rootfs is remounted as read/write.
- Install dependencies
- Restart the system to restore the filesystem state to read-only before running the test.
- Clone the tests repository from another computer (Note that the branch being tested may change depending on the release, please make sure to clone the correct branch for the release in question):
- Copy the test directory apertis-tests to the target device:
- Log into the target device:
$ sudo mount -o remount,rw /
$ sudo apt install apertis-tests gir1.2-grilo-0.3 grilo-plugins-0.3 python3 python3-gi
$ sudo reboot
$ git clone --branch apertis/v2022 https://gitlab.apertis.org/pkg/apertis-tests.git
$ DUT_IP=<device-ip>
$ scp -r apertis-tests user@$DUT_IP:
$ ssh user@$DUT_IP
Execution Steps
- Enter test directory:
- Execute the following command:
$ cd apertis-tests
$ common/run-test-in-systemd --timeout=900 --basename grilo/automated/test-grilo.py
Expected
The output should be similar to this one:
GriloTest: filesystem notifications
GriloTest: received 'content-changed' signal: file:///tmp/test-grilo-Y7UF7X added
GriloTest: received 'content-changed' signal: file:///tmp/test-grilo-Y7UF7X added
GriloTest: received 'content-changed' signal: file:///tmp/test-grilo-Y7UF7X/subdir added
GriloTest: received 'content-changed' signal: file:///tmp/test-grilo-Y7UF7X/subdir added
GriloTest: received 'content-changed' signal: file:///tmp/test-grilo-Y7UF7X changed
GriloTest: received 'content-changed' signal: file:///tmp/test-grilo-Y7UF7X/subdir removed
GriloTest: received 'content-changed' signal: file:///tmp/test-grilo-Y7UF7X/subdir removed
GriloTest: received 'content-changed' signal: file:///tmp/test-grilo-Y7UF7X removed
GriloTest: received 'content-changed' signal: file:///tmp/test-grilo-Y7UF7X removed
(python3:1426): Grilo-WARNING **: [filesystem] grl-filesystem.c:711: Got error: No such file or directory
ApertisTest: copying medias to /tmp/test-grilo-Y7UF7X
GriloTest: filesystem browse
GriloBrowserMixin: add media Videos/big_buck_bunny_smaller.ogv
GriloBrowserMixin: add media Pictures/320px-European_Common_Frog_Rana_temporaria.jpg
GriloBrowserMixin: add media Pictures/collabora-logo-big.png
GriloBrowserMixin: add media Music/Ghosts.pls
GriloBrowserMixin: add media Music/Generic_Sounds.pls
GriloBrowserMixin: add media Music/Ghosts.m3u
GriloBrowserMixin: add media Music/generic.oga
GriloBrowserMixin: add media Music/generic.wav
GriloBrowserMixin: add media Music/generic.mp3
GriloBrowserMixin: add media Music/generic.flac
GriloBrowserMixin: add media Music/generic-no-artwork.mp3
GriloTest: playlist
GriloBrowserMixin: add media Music/audio/generic.mp3
GriloBrowserMixin: add media Music/audio/generic.flac
GriloBrowserMixin: add media Music/audio/generic.oga
.
----------------------------------------------------------------------
Ran 1 test in 0.076s
OK
If any test failed, they will be listed instead of the success message:
[python backtrace]
FAILED (errors=1)