~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to README.testing

  • Committer: Balint Reczey
  • Date: 2020-06-11 18:46:02 UTC
  • Revision ID: balint.reczey@canonical.com-20200611184602-2rv1zan3xu723x2u
Moved to git at https://git.launchpad.net/update-notifier

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
This applet has no unittests (yet).
2
 
 
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
7
 
following:
8
 
 
9
 
Test updates:
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.
13
 
 
14
 
Test hooks:
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.
20
 
 
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.
24
 
 
25
 
Test cdrom detection:
26
 
Put a ubuntu CD into the driver and verify that its detected.
27
 
 
28
 
Test auto-launch:
29
 
The "faketime" package is useful for testing the auto-launch
30
 
funtionatliy
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