| Server IP : 185.11.201.71 / Your IP : 192.168.7.18 Web Server : Apache/2.4.29 (Ubuntu) System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : tech ( 1000) PHP Version : 7.4.28 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/update-notifier/ |
Upload File : |
This applet has no unittests (yet). In order to test changes you need to kill update-notifier from your running session (there can only be one) and start it from your local build dir. Make sure you build with --prefix=/usr (or some other location where your ui files are). Then you can do the following: Test updates: Install a package from a previous version and check if update-notifier detects that and shows a update icon. Run apt-get update and check if it detects that a package manager is running. Test hooks: Copy a example hook file into /usr/lib/update-notifier/user.d/ (or touch it) and touch /var/lib/update-notifier/dpkg-run-stamp to trigger it reading the hooks. Modify ~/.update-notifier/hooks_seen to simulate certain conditions. Add identical files to "user.d" to test the duplicates detection. Test reboot notification: Run /usr/share/update-notifier/notify-reboot-required and then do touch /var/lib/update-notifier/dpkg-run-stamp. Test cdrom detection: Put a ubuntu CD into the driver and verify that its detected. Test auto-launch: The "faketime" package is useful for testing the auto-launch funtionatliy $ NO_FAKE_STAT=1 faketime '10 days' update-notifier --debug-updates # aftwards the launch time in u-m needs to be reset $ gsettings reset com.ubuntu.update-manager launch-time