🍽 Fork YunoHost — snapshot mangé par la machine à tsoins
Upstream: https://github.com/YunoHost/yunohost @ 3a5f8bac8301c450897b96cbd43a4c7d3ba750fb But (José) : transformer tout le code en bions + ploxions du xerboxion. La carte de digestion vit au labo : /yunohost-digest.json
This commit is contained in:
22
tests/test_helpers.v2.d/ynhtest_apt.sh
Normal file
22
tests/test_helpers.v2.d/ynhtest_apt.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
ynhtest_apt_install_apt_deps_regular() {
|
||||
|
||||
dpkg --list | grep -q "ii *$app-ynh-deps" && apt remove $app-ynh-deps --assume-yes || true
|
||||
dpkg --list | grep -q 'ii *nyancat' && apt remove nyancat --assume-yes || true
|
||||
dpkg --list | grep -q 'ii *sl' && apt remove sl --assume-yes || true
|
||||
|
||||
! ynh_package_is_installed "$app-ynh-deps"
|
||||
! ynh_package_is_installed "nyancat"
|
||||
! ynh_package_is_installed "sl"
|
||||
|
||||
ynh_install_app_dependencies "nyancat sl"
|
||||
|
||||
ynh_package_is_installed "$app-ynh-deps"
|
||||
ynh_package_is_installed "nyancat"
|
||||
ynh_package_is_installed "sl"
|
||||
|
||||
ynh_remove_app_dependencies
|
||||
|
||||
! ynh_package_is_installed "$app-ynh-deps"
|
||||
! ynh_package_is_installed "nyancat"
|
||||
! ynh_package_is_installed "sl"
|
||||
}
|
||||
Reference in New Issue
Block a user