grilo automated
medium
- Image Types:
- basesdk-amd64 / hmi-armhf / hmi-arm64 / 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 grilo to the target device:
- Log into the target device:
$ sudo mount -o remount,rw /
$ sudo apt install gir1.2-grilo-0.3 grilo-plugins-0.3
$ sudo reboot
$ git clone --branch apertis/v2025pre https://gitlab.apertis.org/tests/grilo.git
$ DUT_IP=<device-ip>
$ scp -r grilo user@$DUT_IP:
$ ssh user@$DUT_IP
Execution Steps
- Enter test directory:
- Execute the following command:
$ cd grilo
$ sudo ./grilo-test.sh
Expected
The output should be similar to this one:
+ id -u
+ [ 0 -ne 0 ]
+ . common/update-test-path
+ pwd
+ TESTPATH=/home/user/grilo_test/grilo_review/grilo
+ PATH=/home/user/grilo_test/grilo_review/grilo/common:/home/user/grilo_test/grilo_review/grilo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ uname -m
+ ARCHDIR=amd64
+ ARCHLIBDIR=x86_64-linux-gnu
+ PATH=/home/user/grilo_test/grilo_review/grilo/amd64/bin:/home/user/grilo_test/grilo_review/grilo/common:/home/user/grilo_test/grilo_review/grilo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export LD_LIBRARY_PATH=/home/user/grilo_test/grilo_review/grilo/amd64/lib:
+ pwd
+ RESOURCE_DIR=/home/user/grilo_test/grilo_review/grilo/TestResource
+ cp -R /home/user/grilo_test/grilo_review/grilo/TestResource/images/ /root/Pictures/.
+ cp -R /home/user/grilo_test/grilo_review/grilo/TestResource/documents/ /root/Documents/.
+ cp -R /home/user/grilo_test/grilo_review/grilo/TestResource/audio/ /root/Music/.
+ cp -R /home/user/grilo_test/grilo_review/grilo/TestResource/playlists/ /root/Music/.
+ cp -R /home/user/grilo_test/grilo_review/grilo/TestResource/videos/ /root/Videos/.
+ grl-launch-0.3 -k title browse grl-filesystem
(grl-launch-0.3:37590): Grilo-WARNING **: 04:46:23.287: [dleyna] ../src/dleyna/grl-dleyna-servers-manager.c:138: Unable to fetch the list of available servers: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.intel.dleyna-server was not provided by any .service files
+ browse=usr
dev
tmp
sbin
lib32
var
etc
mnt
Applications
srv
lib
proc
lib64
boot
opt
run
sys
home
root
media
bin
21 results
+ grl-launch-0.3 -k title search generic-no-artwork grl-filesystem
(grl-launch-0.3:37600): Grilo-WARNING **: 04:46:24.792: [dleyna] ../src/dleyna/grl-dleyna-servers-manager.c:138: Unable to fetch the list of available servers: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.intel.dleyna-server was not provided by any .service files
+ search=generic-no-artwork
1 result
+ [ -f /root/Pictures/320px-European_Common_Frog_Rana_temporaria.jpg ]
+ [ -f a.txt ]
+ touch a.txt
+ grl-launch-0.3 -k uri,url -T -S monitor grl-filesystem
+
+ sleep 5
(grl-launch-0.3:37608): Grilo-WARNING **: 04:46:25.743: [dleyna] ../src/dleyna/grl-dleyna-servers-manager.c:138: Unable to fetch the list of available servers: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.intel.dleyna-server was not provided by any .service files
+ cp /home/user/grilo_test/grilo_review/grilo/TestResource/images/320px-European_Common_Frog_Rana_temporaria.jpg /root/Pictures/
+ sleep 5
+ echo modify
+ sleep 5
+ rm /root/Pictures/320px-European_Common_Frog_Rana_temporaria.jpg
+ sleep 5
+ pgrep grl-launch
+ process_id=37608
+ sudo kill -9 37608
+ echo ||TEST RESULTS||
||TEST RESULTS||
+ testname=grilotest-browse
+ [ usr
dev
tmp
sbin
lib32
var
etc
mnt
Applications
srv
lib
proc
lib64
boot
opt
run
sys
home
root
media
bin
21 results = No results ]
+ echo grilotest-browse: pass
grilotest-browse: pass
+ testname=grilotest-search
+ [ generic-no-artwork
1 result = No results ]
+ echo grilotest-search: pass
grilotest-search: pass
+ testname=grilotest-add_notification
+ grep added
+ grep 320px-European_Common_Frog_Rana_temporaria.jpg
+ cat a.txt
+ [ added,false,grlgrl-filesystem/file%3A%2F%2F%2Froot%2FPictures%2F320px-European_Common_Frog_Rana_temporaria.jpg,file:///root/Pictures/320px-European_Common_Frog_Rana_temporaria.jpg ]
+ echo grilotest-add_notification: pass
grilotest-add_notification: pass
+ testname=grilotest-change_notification
+ grep changed
+ head -1
+ grep 320px-European_Common_Frog_Rana_temporaria.jpg
+ cat a.txt
+ [ changed,false,grlimage://grl-filesystem/file%3A%2F%2F%2Froot%2FPictures%2F320px-European_Common_Frog_Rana_temporaria.jpg,file:///root/Pictures/320px-European_Common_Frog_Rana_temporaria.jpg ]
+ echo grilotest-change_notification: pass
grilotest-change_notification: pass
+ testname=grilotest-remove_notification
+ grep removed
+ grep 320px-European_Common_Frog_Rana_temporaria.jpg
+ cat a.txt
+ [ removed,false,grlgrl-filesystem/file%3A%2F%2F%2Froot%2FPictures%2F320px-European_Common_Frog_Rana_temporaria.jpg,file:///root/Pictures/320px-European_Common_Frog_Rana_temporaria.jpg ]
+ echo grilotest-remove_notification: pass
grilotest-remove_notification: pass
+ rm -R /root/Pictures/images
+ rm -R /root/Documents/documents
+ rm -R /root/Music/audio
+ rm -R /root/Music/playlists
+ rm -R /root/Videos/videos
+ rm a.txt
If any test failed, they will be listed as fail instead of the pass message.