1
This applet has no unittests (yet).
3
In order to test changes you need to kill update-notifier from your
4
running session (there can only be one) and start it from your local
5
build dir. Make sure you build with --prefix=/usr (or some other
6
location where your ui files are). Then you can do the
10
Install a package from a previous version and check if update-notifier
11
detects that and shows a update icon. Run apt-get update and check if
12
it detects that a package manager is running.
15
Copy a example hook file into /usr/lib/update-notifier/user.d/ (or
16
touch it) and touch /var/lib/update-notifier/dpkg-run-stamp to trigger
17
it reading the hooks. Modify ~/.update-notifier/hooks_seen to
18
simulate certain conditions. Add identical files to "user.d" to test
19
the duplicates detection.
21
Test reboot notification:
22
Run /usr/share/update-notifier/notify-reboot-required and then do
23
touch /var/lib/update-notifier/dpkg-run-stamp.
26
Put a ubuntu CD into the driver and verify that its detected.
29
The "faketime" package is useful for testing the auto-launch
31
$ NO_FAKE_STAT=1 faketime '10 days' update-notifier --debug-updates
32
# aftwards the launch time in u-m needs to be reset
33
$ gsettings reset com.ubuntu.update-manager launch-time