tracker-indexing-local-storage automated
medium
- Image Types:
- sdk-amd64 / target-armhf-internal / target-amd64
- Image Deployment:
- APT
- Type:
- functional
Description
Check tracker indexing of local storage and journal behaviour.
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:
- Requires the multimedia demopack to be pre-installed on the tested image under /home/shared
$ sudo mount -o remount,rw /
$ sudo apt install apertis-tests gir1.2-grilo-0.3 gir1.2-tracker-2.0 python3 python3-gi tracker wget
$ sudo reboot
$ git clone --branch apertis/v2020dev0 https://gitlab.apertis.org/infrastructure/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 --user=user --name=run-test --timeout=900 tracker/automated/test-tracker.py
Expected
The output should be similar to that:
----------------------------------------------------------------------
Ran 1 test in 16.406s
OK
If any test failed, they will be listed instead of the success message:
======================================================================
ERROR: test_all (__main__.TrackerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./apertis-tests/tracker/automated/test-tracker.py", line 30, in setUp
self.indexer = TrackerIndexer()
File "./apertis-tests/tracker/automated/../common.py", line 29, in __init__
shell=True)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command 'systemctl --user stop tracker-store tracker-miner-fs' returned non-zero exit status 1
----------------------------------------------------------------------
Ran 1 test in 0.013s
FAILED (errors=1)