Skip to content
Snippets Groups Projects
Commit a30f23e7 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

lib: move common variables into the library


Move status definitions and GETPROP "macros" into the
sourced lib.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent c71c8b53
No related branches found
No related tags found
2 merge requests!10v2020: add OTA update tests,!9Add OTA tests
......@@ -2,34 +2,6 @@
. ./update-manager-common.sh
# interface org.apertis.ApertisUpdateManager {
# methods:
# RegisterSystemUpgradeHandler(); ok
# ApplySystemUpgrade();
# MarkUpdateSuccessful();
# ApplyStaticDelta(in s filename); ok
# signals:
# properties:
# readonly b NetworkConnected = true;
# writeonly b UpdatesFromNetwork;
# readonly u SystemUpgradeState = 0;
# };
# $ gdbus call -y -d org.apertis.ApertisUpdateManager -o / -
# m org.freedesktop.DBus.Properties.Get org.apertis.ApertisU
# pdateManager SystemUpgradeState
#(<uint32 0>,)
# 0 Unknown, 1 Checking, 2 Downloading, 3 Deploying
# 100 pending
# 200 uptodate
STATUS_UNKNOWN=0
STATUS_CHECKING=1
STATUS_DOWNLOADING=2
STATUS_DEPLOYING=3
STATUS_PENDING=100
STATUS_UPTODATE=200
GETPROP="gdbus call -y -d org.apertis.ApertisUpdateManager -o / -m org.freedesktop.DBus.Properties.Get org.apertis.ApertisUpdateManager"
strip_type() {
echo $* | sed -e "s/.*<.* \(.*\)>.*/\1/"
}
......
......@@ -2,14 +2,6 @@
. ./update-manager-common.sh
STATUS_UNKNOWN=0
STATUS_CHECKING=1
STATUS_DOWNLOADING=2
STATUS_DEPLOYING=3
STATUS_PENDING=100
STATUS_UPTODATE=200
GETPROP="gdbus call -y -d org.apertis.ApertisUpdateManager -o / -m org.freedesktop.DBus.Properties.Get org.apertis.ApertisUpdateManager"
strip_type() {
echo $* | sed -e "s/.*<.* \(.*\)>.*/\1/"
}
......
......@@ -2,14 +2,6 @@
. ./update-manager-common.sh
STATUS_UNKNOWN=0
STATUS_CHECKING=1
STATUS_DOWNLOADING=2
STATUS_DEPLOYING=3
STATUS_PENDING=100
STATUS_UPTODATE=200
GETPROP="gdbus call -y -d org.apertis.ApertisUpdateManager -o / -m org.freedesktop.DBus.Properties.Get org.apertis.ApertisUpdateManager"
strip_type() {
echo $* | sed -e "s/.*<.* \(.*\)>.*/\1/"
}
......
# Common definitions used in tests
# interface org.apertis.ApertisUpdateManager {
# methods:
# RegisterSystemUpgradeHandler(); ok
# ApplySystemUpgrade();
# MarkUpdateSuccessful();
# ApplyStaticDelta(in s filename); ok
# signals:
# properties:
# readonly b NetworkConnected = true;
# writeonly b UpdatesFromNetwork;
# readonly u SystemUpgradeState = 0;
# };
# $ gdbus call -y -d org.apertis.ApertisUpdateManager -o / -
# m org.freedesktop.DBus.Properties.Get org.apertis.ApertisU
# pdateManager SystemUpgradeState
#(<uint32 0>,)
# 0 Unknown, 1 Checking, 2 Downloading, 3 Deploying
# 100 pending
# 200 uptodate
STATUS_UNKNOWN=0
STATUS_CHECKING=1
STATUS_DOWNLOADING=2
STATUS_DEPLOYING=3
STATUS_PENDING=100
STATUS_UPTODATE=200
GETPROP="gdbus call -y -d org.apertis.ApertisUpdateManager -o / -m org.freedesktop.DBus.Properties.Get org.apertis.ApertisUpdateManager"
# List of functions common to all update manager tests
get_static_delta()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment