Hi,

I have prepared a couple of scripts to perform automated testing of applications and services in the installed system. We use it for ROSA Fresh, but they may be useful for OpenMandriva as well.

The scripts are available here:
https://abf.rosalinux.ru/spectre/rosa-autotest/tree/master/check_apps

namely the following two could be useful:

- check_apps.py
- check_services.py

The rest are more ROSA-specific and are not generally required.

Both check_apps.py and check_services.py take the file with the list of packages to be checked as an argument.

1. check_apps.py.
For each package to be checked, the script installs it, finds .desktop files in it corresponding to the applications. Then it runs each of these applications, waits a little and looks if they crash. Crash dumps, logs and other info are saved.

The idea was that "an ordinary user" mostly runs apps from the GUI (via their .desktop files), so such apps should be checked first.

The lists of the packages are prepared separately. Here are the examples we use in ROSA at the moment:

https://abf.rosalinux.ru/spectre/rosa-autotest/blob/master/check_apps/lists/applications/KDE/packages-kde.list
https://abf.rosalinux.ru/spectre/rosa-autotest/blob/master/check_apps/lists/applications/GNOME/packages-gnome.list

The packages are mostly from main, non-free and restricted repos. The lists for OpenMandriva might be different, of course.

2. check_services.py.
Similar to checking the applications but for systemd services this time. The script tries to start each service from the given packages and reports if that fails.

The needed preprequisites and other useful information are in Readme.txt:
https://abf.rosalinux.ru/spectre/rosa-autotest/blob/master/check_apps/Readme.txt

These scripts are not perfect but, I think, they could be useful.

Regards,
Eugene

--
Eugene Shatokhin, ROSA
www.rosalab.com

Reply via email to