debian/0000755000000000000000000000000012311630442007162 5ustar debian/compat0000644000000000000000000000000212311630237010362 0ustar 8 debian/archive-master.tar.xz0000644000000000000000000000267412311630237013257 0ustar 7zXZִF!X'{]5KkԮY:BW޺7{6l+i}M- `ΪBtp6A,ڲъbQOX/>3{R2obGO0)p׹85 ҟvx{I 8H]igk07qK=xИ|?\/J]+uk"Hy]ܽyɪBxyKM <}OJ樌VN+4ZYS$i bIR.5saV[D{'R.___Pt; VuroJM߶kq(a^І)^ƣqٟ`0CrQTFŬvȧT֐*$2IRd5U`4c EτI*t) Homepage: https://wiki.ubuntu.com/ImageBasedUpgrades Section: python X-Python3-Version: >= 3.3 Priority: optional Build-Depends: dbus, dbus-x11, debhelper (>= 8), python-docutils, python-tox, python3-all (>= 3.3), python3-dbus, python3-gi, python3-gnupg, python3-nose2, python3-pkg-resources, python3-psutil, python3-setuptools, ubuntu-download-manager Standards-Version: 3.9.5 XS-Testsuite: autopkgtest Vcs-Bzr: https://code.launchpad.net/~ubuntu-managed-branches/ubuntu-system-image/system-image Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-managed-branches/ubuntu-system-image/system-image/files X-Auto-Uploader: no-rewrite-version Package: system-image-cli Architecture: all Depends: system-image-common (= ${binary:Version}), ${misc:Depends}, ${python3:Depends} Description: Ubuntu system image updater command line client This is the command line client for the Ubuntu system image updater. Package: system-image-dbus Architecture: all Depends: python3-dbus, python3-gi, system-image-common (= ${binary:Version}), ${misc:Depends}, ${python3:Depends} Description: Ubuntu system image updater command line client This is the command line client for the Ubuntu system image updater. Package: system-image-common Architecture: all Depends: python3-gnupg, python3-pkg-resources, ubuntu-download-manager, ${misc:Depends}, ${python3:Depends} Description: Ubuntu system image updater This is the common bits for the Ubuntu system image updater. Package: system-image-dev Architecture: all Depends: python3-gnupg, python3-psutil, ${misc:Depends}, ${python3:Depends} Description: Ubuntu system image updater development This is the development bits for the Ubuntu system image updater. Install this package if you want to run the tests. debian/source/0000755000000000000000000000000012311630440010460 5ustar debian/source/format0000644000000000000000000000001412311630237011672 0ustar 3.0 (quilt) debian/source/include-binaries0000644000000000000000000000003512311630237013622 0ustar debian/archive-master.tar.xz debian/system-image-common.postrm0000755000000000000000000000045412311630237014332 0ustar #!/bin/sh # On purge, remove the log file and directory, as well as the lib directory # and configuration file. case "$1" in purge) rm -rf /var/log/system-image rm -rf /var/lib/system-image rm -rf /etc/system-image ;; *) ;; esac #DEBHELPER# exit 0 debian/copyright0000644000000000000000000000210212311630237011112 0ustar This work was packaged for Ubuntu by: Barry A. Warsaw on 2013-06-27 Upstream Author: Barry Warsaw Copyright: License: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 3 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-3". The Debian packaging is: Copyright (C) 2013 Canonical Ltd. and is licensed under the GPL version 3, see "/usr/share/common-licenses/GPL-3". debian/rules0000755000000000000000000000440312311630250010240 0ustar #!/usr/bin/make -f PYTHON3=$(shell py3versions -dvr) #DH_VERBOSE=1 #DEB_BUILD_OPTIONS=nocheck # Prevent setuptools/distribute from accessing the internet. export http_proxy = http://127.0.9.1:9 export https_proxy = https://127.0.9.1:9 %: dh $@ --with python3 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) test-python%: unset http_proxy; unset https_proxy; export HOME=/tmp; \ export SYSTEMIMAGE_REACTOR_TIMEOUT=1200; \ export SYSTEMIMAGE_DBUS_DAEMON_HUP_SLEEP_SECONDS=2; \ nodot=$(shell echo $* | cut --complement -b 2); \ tox -e py$${nodot} override_dh_auto_test: $(PYTHON3:%=test-python%) endif build-python%: python$* setup.py build override_dh_auto_build: $(PYTHON3:%=build-python%) install-python%: python$* setup.py install --root=$(CURDIR)/debian/tmp \ --install-layout=deb override_dh_python3: dh_python3 --shebang=/usr/bin/python3 override_dh_auto_install: $(PYTHON3:%=install-python%) override_dh_install: dh_install -Xsystemimage/tests -Xsystemimage/testing \ -p system-image-common usr/lib/python3 dh_install -p system-image-dev \ usr/lib/python3/dist-packages/systemimage/tests dh_install -p system-image-dev \ usr/lib/python3/dist-packages/systemimage/testing dh_install -p system-image-cli usr/bin/system-image-cli dh_install -p system-image-common \ debian/archive-master.tar.xz etc/system-image dh_install -p system-image-common \ debian/archive-master.tar.xz.asc etc/system-image dh_install -p system-image-common \ systemimage/data/client.ini etc/system-image dh_install -p system-image-dbus usr/bin/system-image-dbus usr/sbin dh_install -p system-image-dbus \ systemimage/data/com.canonical.SystemImage.service \ usr/share/dbus-1/system-services dh_install -p system-image-dbus \ systemimage/data/com.canonical.SystemImage.conf \ etc/dbus-1/system.d override_dh_installchangelogs: dh_installchangelogs -k NEWS.rst override_dh_installman: rst2man cli-manpage.rst > debian/tmp/system-image-cli.man rst2man dbus-manpage.rst > debian/tmp/system-image-dbus.man rst2man ini-manpage.rst > debian/tmp/client-ini.man dh_installman # override_dh_installdocs: # python setup.py build_sphinx # dh_installdocs build/sphinx/html override_dh_auto_clean: dh_auto_clean rm -rf build rm -rf *.egg-info debian/patches/0000755000000000000000000000000012311630440010607 5ustar debian/patches/series0000644000000000000000000000000012311630250012011 0ustar debian/archive-master.tar.xz.asc0000644000000000000000000000150412311630237014013 0ustar -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJRzXznAAoJEAv7hH8/Jy9b9MEP/iTl7lfFQNOu+bR+hRHOh40B trXCwTeKYGLL98h7pbqrqFD5QppGWZ5Kpyh5QeNB7yU8Jk5bcIQg3iTBg4kQhbjZ CvfBAk5goKDzHF+tx2HWFmHie3kxDlOQ39dWqr38Q78elC1VtRfiWQNbz7E2955D d5/Lo+THwKS0aYD8RR/wHbiEnIiOSxZLZo9Bdkxlty9LXbY16SUPY3R7POGdds0S OvQmsmFsjoD4b68aTjw0Fx12EQ1fDBycBmxNbgQ6E/xKf78Ttsp8gRaoopdr6odH FZWUCv0Vr7mrbSr8MrotydVRth5K/FJv4xnfTI9rY50PZqA72xFNfQyQa35/qfuZ 3E+d9DdPk8KtovNCploTufRG5zvkXOn+rGJQCicLh4H2L7+YO5ZwHbDQFTDUrAhl 0wlqaqUuwYOC7fxk3SHA3IINZ97LCUYfPWZRUUVOM2uia4BhI0TfRj09I+HnJM+I cNlfjmzCedlLjMwgBOw6tj1l3FEPl/aEwCTs1Oc7dc05JPDNcRqdks45NnSS/Xg7 pNHPS6wED0zYAKQeBDkji7Gf+9gR3eVWWbArSzbkqyCeWhgPyqwjTUQNMx6PIPNm 0lszQWe50Y9mOuwcRd2gA293zVjsnr7NxOJPhgZsHB9fRaZtSg7vWVOo1jopkPPZ Vt1nrVFGkrss7EJ+Vc53 =Sszb -----END PGP SIGNATURE----- debian/changelog0000644000000000000000000004207412311630260011041 0ustar system-image (2.2-0ubuntu1) trusty; urgency=medium [ Barry Warsaw ] * New upstream release. - LP: #1284217 - When CheckForUpdate() is called a second time, while an auto-download is in progress, but after the first check is complete, we send an UpdateAvailableStatus signal with the cached information. - LP: #1287919 - Close a race condition when manually downloading and issuing multiple CheckForUpdate calls. - LP: #1278589 - Support disabling either HTTP or HTTPS services for custom system image servers. - Allow the channel.ini file to override the [service] section. - LP: #1287287 - Do not do atomic renames of temporary download files; ubuntu-download-manager now supports this by default. - LP: #1250817 - Exceptions in the state machine are caught and logged, with an appropriate error message added to UpdateAvailableStatus signals. These exceptions do not percolate up to the GLib main loop. - LP: #1279532 - During testing, pass the log dir argument to ubuntu-download-manager. * d/rules: Add override_dh_python3 rule to set shebang line to /usr/bin/python3. (LP: #1283277) * d/patches/lp1284217.patch: Removed; applied upstream. -- Ubuntu daily release Mon, 17 Mar 2014 17:28:16 +0000 system-image (2.1-0ubuntu4) trusty; urgency=medium [ Stéphane Graber ] * New upstream release. * Set X-Auto-Uploader to no-rewrite-version * Set Vcs-Bzr to the new target branch [ Barry Warsaw ] * New upstream release. - LP: #1279056 - Internal improvements to SignatureError for better debugging. - LP: #1277589 - Better protection against race conditions. - LP: #1260768 - Return empty string from ApplyUpdate D-Bus method. - LP: #1284217 - Send UpdateAvailableStatus during auto-downloading from a previous CheckForUpdate, if cached status is available. - Request ubuntu-download-manager to download to a temporary location, with atomic rename. - More detailed logging. - Fixed D-Bus error logging. - Added -L flag to nose2 tests for explicitly setting log file path. - Added SYSTEMIMAGE_DBUS_DAEMON_HUP_SLEEP_SECONDS environment variable which can be used to give virtualized buildds a fighting chance. * d/patches/01_send_ack_on_applyupdate.diff: Removed; applied upstream. * d/patches/lp1284217.patch: Added (see above). * d/control: - Bump Standards-Version to 3.9.5 with no other changes necessary. - Add python3-psutil as Depends to system-image-dev. * d/rules: Set SYSTEMIMAGE_DBUS_DAEMON_HUP_SLEEP_SECONDS to 1 to deal with buildd dbus-daemon SIGHUP timing issues. -- Ubuntu daily release Tue, 25 Feb 2014 17:48:27 +0000 system-image (2.0.3-0ubuntu2) trusty; urgency=low * Fix ApplyUpdate() to return an empty string as per spec if the update is successfull (LP: #1260712) -- Didier Roche Fri, 13 Dec 2013 13:55:51 +0100 system-image (2.0.3-0ubuntu1) trusty; urgency=low * New upstream release. * d/control: Re-enable DEP-8 tests. * d/tests/smoketest: A simpler test that shouldn't be susceptible to D-Bus flakiness in the autopkgtest VMs, but which does require network access to system-image.ubuntu.com (deemed okay as per pitti). -- Barry Warsaw Mon, 09 Dec 2013 10:01:34 -0500 system-image (2.0.2-0ubuntu4) trusty; urgency=low * d/control: Commenting out XS-Testsuite to disable autopkgtests. The DEP-8 tests are identical to the tox driven in-tree test suite, which is also run at build time. In both of the latter two environments, the tests pass just fine, but something about the autopkgtests Jenkins environment causes flakiness in sockets and D-Bus which are unreproducible locally. -- Barry Warsaw Sat, 07 Dec 2013 14:07:15 -0500 system-image (2.0.2-0ubuntu3) trusty; urgency=low * No change rebuild to see if we get lucky with -proposed migration. -- Barry Warsaw Fri, 06 Dec 2013 16:34:08 -0500 system-image (2.0.2-0ubuntu2) trusty; urgency=low * d/tests/control: Update autopkgtest dependency for nose2. -- Barry Warsaw Thu, 05 Dec 2013 11:24:44 -0500 system-image (2.0.2-0ubuntu1) trusty; urgency=low * New upstream release. - LP: #1256947 - Fix FTBFS on buildds. * d/rules: Add fake https_proxy too, now that PyPI runs on https. -- Barry Warsaw Tue, 03 Dec 2013 10:57:39 -0500 system-image (2.0.1-0ubuntu1) trusty; urgency=low * New upstream release. - Fix some build environment test failures. -- Barry Warsaw Wed, 27 Nov 2013 10:57:39 -0500 system-image (2.0-0ubuntu1) trusty; urgency=low * New upstream release. - LP: #1217098 - Avoid re-downloading data files when possible. - LP: #1247215 - Change to D-Bus API; ApplyUpdate() is now asynchronous and returns nothing, and there is a new Rebooting signal. - LP: #1221843 - Removed support for the old channels.json format. - LP: #1220238 - Removed support for the old version numbers. - LP: #1238071 - Switch to the nose2 test runner. - LP: #1241236 - Write the ubuntu_command file atomically. - LP: #1243612 - Clarify that --channel should be used with --build 0 to switch channels. - LP: #1245597 - Empty download lists are ignored. - LP: #1195057 - Double check the validity of any cached image-master or image-signing key. - LP: #1192717 - Double check the expiration date of any cached image-master or image-signing key. - LP: #1250181 - The download fails if a server misconfiguration offers up the same data file for two different images in the winning upgrade path. - LP: #1248639 - Provide more useful traceback information in various places and conditions. - LP: #1250553 - Tweak the scoring algorithm to highly discourage candidate upgrade paths that don't leave you at the maximum available build number. - Remove the unused -u and --upgrade switches. - If the current channel is an alias, --info will show the channel target. - If an update includes a channel switch, --dry-run will tell you. - When running system-image-cli -v (single verbosity), some dots are printed to stderr to let you know something is happening. - Removed the unused state_file setting from client.ini. * d/control: Update build dependency for switch to nose2. * d/tests/control: nose output goes to stderr, so allow this restriction. (LP: #1240516) -- Barry Warsaw Wed, 16 Oct 2013 10:08:01 -0400 system-image (1.9.1-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1240105 - Further refinement of permission checking/fixing. - LP: #1240106 - Work around some failures in DEP 8 tests. * d/control: Point Vcs-Bzr and Vcs-Browser to the packaging branch. * d/system-image-common.dirs: Add /var/log/system-image. * d/rules, d/tests/unittests: Set $SYSTEMIMAGE_REACTOR_TIMEOUT to 1200 seconds to avoid random timeout errors. * d/system-image-common.postinst, system-image-common.postrm: debhelper scripts for ensuring the proper permissions and for purging directories. -- Barry Warsaw Tue, 15 Oct 2013 11:23:54 -0400 system-image (1.9-0ubuntu2) saucy; urgency=low * d/tests/control: Add DEP-8 test dependency on python3-psutil. -- Colin Watson Tue, 15 Oct 2013 13:18:04 +0100 system-image (1.9-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1235975 - Ensure that temporary directories and log files are created with secure permissions and unguessable paths. - LP: #1233521 - Download files directly to the cache or data partitions. - LP: #1238102 - Proactively remove files from the cache and data partitions before starting to download (except `log` and `last_log` files in the cache partition. This also improves the ability to recover from partial downloads without rebooting. - LP: #1238290 - Keep the D-Bus process alive as long as we're making progress, as tracked by any call to a D-Bus method or signal. - LP: #1237360 - Enable pause and resume support. - LP: #1206588 - Re-enable some previously skipped tests. - The [system]thread variable is no longer used; removed. * d/control: Add build dependency on python3-psutils. -- Barry Warsaw Sat, 12 Oct 2013 13:24:46 -0400 system-image (1.8-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1221844 - Channel alias tracking. - LP: #1231628 - Phased update support. - LP: #1229807 - Default auto_download is restored to '1' (wifi-only). - LP: #1204618 - Plumb the progress signals through the D-Bus API. - LP: #1215946 - Only send an `UpdateFailed` signal in response to a `CancelUpdate()` call when a download is actually in progress. * Add DEP-8 autopkgtests. (LP: #1229710) -- Barry Warsaw Wed, 02 Oct 2013 17:19:22 -0400 system-image (1.7-0ubuntu1) saucy; urgency=low * New upstream release. - Fix test for 32 bit systems. Again. - LP: #1233379 - Reset the D-Bus reactor timeout every time we see an active signal from the D-Bus service we're talking to. -- Barry Warsaw Mon, 30 Sep 2013 16:57:34 -0400 system-image (1.6-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1196991 - Use the new ubuntu-download-manager to manage all requested downloads. - LP: #1215943 - Use /userdata/.last_update file as the "last upgrade date" if the file exists. - Default D-Bus service timeout is now 1 hour. - Default D-Bus logging level is now `info`. - Verbose (i.e. `debug`) logging now includes the scores and paths for all upgrade candidates, from highest score (biggest loser) to lowest score (winner) last. - --verbose logging level is now properly propagated to the log file. -- Barry Warsaw Sun, 29 Sep 2013 15:17:17 -0400 system-image (1.5.1-0ubuntu1) saucy; urgency=low * New upstream release. - Fix test for 32 bit systems. -- Barry Warsaw Sun, 08 Sep 2013 10:23:12 -0400 system-image (1.5-0ubuntu1) saucy; urgency=low * New upstream release. - `system-image-cli --info` prints additional information: + last update time (i.e. the mtime of `/etc/system-image/channel.ini` falling back to the mtime of `/etc/ubuntu-build`). + version details for ubuntu, the device, and any custom version, if the `/etc/system-image/channel.ini` file contains these details. - `system-image-cli --dry-run -c ` no longer produces a traceback. You get "Already up-to-date", but use `-v` for more info. - D-Bus API method `UpdateAvailableStatus` field `last_update_date` has changes its format. It's still ISO 8601, but with a space instead of a 'T' separating the date from the time. - LP: #1221841 - Support the new channels.json file format with backward compatibility (for now) with the old format. - LP: #1215959 - New D-Bus .Info() method returns data similar to `system-image-cli --info` -- Barry Warsaw Fri, 06 Sep 2013 18:34:29 -0400 system-image (1.4-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1218612 - Support the new version number regime, which uses sequential version numbers starting at 1. - Update the `system-image-cli` manpage. -- Barry Warsaw Fri, 30 Aug 2013 12:46:38 -0400 system-image (1.3-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1217932 - Fix bug in resolving channels with dashes in their name. - LP: #1208909 - Add system-image-cli --filter - Added -i/--info to get current build number, device, and channel. - Re-purposed -c/--channel to allow for overriding the channel name. - Re-purposed -b/--build to allow for overriding the build number. - Added -d/--device to allow for overriding the device name. - State persistence is disabled for now. (LP: #1218357) - LP: #1192575 supported by `system-image-cli -c --filter=full`. -- Barry Warsaw Thu, 29 Aug 2013 12:23:56 -0400 system-image (1.2-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1214009 - Support /etc/system-image/channel.ini - LP: #1212713 - Add system-image-cli --dry-run - Set auto_download mode to '0' (manual) to prevent inadvertent downloading over 3G while we wait for the download service. -- Barry Warsaw Mon, 26 Aug 2013 18:46:43 -0400 system-image (1.1-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1212781 - New DBus API for u/i. - LP: #1207117 - Use nose as the test runner. - debian/control: Add python3-nose as a B-D. -- Barry Warsaw Fri, 23 Aug 2013 20:11:35 -0400 system-image (1.0-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1206617 - Add manpage for system-image-dbus. - LP: #1205163 - Run all dbus tests at build time. - LP: #1206515 - system-image-dbus creates temporary directory. - LP: #1206866 - Fix TypeError when two paths have the same score. - LP: #1207391 - Added some useful tools. - LP: #1206898 - Print the channel/device to the log file. - Added system-image-cli --dbus for upgrading from the command line over DBus. - Logging updates: see client.ini for log file location and level. -- Barry Warsaw Thu, 01 Aug 2013 20:29:29 -0400 system-image (0.9.2-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1206558 - Run system-image-dbus on the system bus. - LP: #1206523 - Install policy file com.canonical.SystemImage.conf into /etc/dbus-1/system.d/ - Use full path to executable in dbus service file. - Move system-image-dbus executable to /usr/sbin - client.ini: Bump dbus timeout to 10 minutes. -- Barry Warsaw Tue, 30 Jul 2013 11:56:33 -0400 system-image (0.9.1-0ubuntu1) saucy; urgency=low * New upstream release. - Further DBus API refinements to better support U/I development. + Add a .Exit() method. + Calling .Cancel() immediately issues a Canceled signal. + .GetUpdate() and .Reboot() no longer issue Canceled signals, but they no-op if a .Cancel() has been previously called. -- Barry Warsaw Fri, 26 Jul 2013 12:00:41 -0400 system-image (0.9-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1204976 (DBus API changes for u/i work) - LP: #1204528 (DBus mocks for u/i work) -- Barry Warsaw Thu, 25 Jul 2013 23:20:38 -0400 system-image (0.8-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1204090 (calculate device type from system, not client.ini file) - Add -c/--channel option to system-image-cli; this prints the channel/device name being used. -- Barry Warsaw Wed, 24 Jul 2013 14:19:04 -0400 system-image (0.7-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1202915 (don't reboot when there's no update available) - LP: #1192585 (DBus API) - LP: #1202283 (More useful -v diagnostics) * d/control: - New binary package: system-image-dbus - Additional build dependencies - Various Depends fixes * d/rules: - Add dh_install rules for system-image-dbus -- Barry Warsaw Mon, 22 Jul 2013 19:13:59 -0400 system-image (0.6-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1200981 (fit image hash into 32 bits) -- Barry Warsaw Mon, 15 Jul 2013 11:39:43 -0400 system-image (0.5-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1195479 (add manpages) -- Barry Warsaw Fri, 12 Jul 2013 18:31:21 -0400 system-image (0.4-0ubuntu2) saucy; urgency=low * Re-enable build-time tox tests. (LP: #1195420) -- Barry Warsaw Fri, 12 Jul 2013 15:58:11 -0400 system-image (0.4-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1199981 (fix reboot command) - LP: #1199986 (fix ubuntu_command file ordering) - LP: #1199982 (ensure the keyring tar.xz target directory exists) * debian/system-image.common.dirs: /var/lib/system-image is included in system-image-common. (LP: #1199982) -- Barry Warsaw Thu, 11 Jul 2013 10:47:34 -0400 system-image (0.3-0ubuntu1) saucy; urgency=low * New upstream release. - LP: #1199177 (default client.ini file updates) - LP: #1199361 (fix timeout errors) - LP: #1199498 (update ubuntu_command format) - LP: #1199488 (include archive master key) * debian/control: Strengthen the Depends between system-image-cli and system-image-common. -- Barry Warsaw Tue, 09 Jul 2013 14:37:58 -0400 system-image (0.2-0ubuntu1) saucy; urgency=low * Initial release. (LP: #1193142) -- Barry Warsaw Thu, 27 Jun 2013 10:20:23 -0400 debian/tests/0000755000000000000000000000000012311630440010322 5ustar debian/tests/smoketest0000644000000000000000000000051612311630237012271 0ustar #!/bin/sh # # autopkgtest check: Run a smoke test with actual built system components. # This requires network access to system-image.ubuntu.com. # # Copyright (C) 2013 Canonical Ltd. # Author: Barry Warsaw set -e python3 debian/tests/prep.py system-image-cli -C $ADTTMP/client.ini -d mako -c devel -b 0 --dry-run debian/tests/client.ini.in0000644000000000000000000000131412311630237012711 0ustar # DEP-8 smoketest configuration file. [service] base: system-image.ubuntu.com http_port: 80 https_port: 443 channel: daily build_number: 0 [system] timeout: 1h build_file: /etc/ubuntu-build tempdir: {TMPDIR} logfile: {ARTIFACTS}/client.log loglevel: debug settings_db: {TMPDIR}/settings.db [gpg] archive_master: /etc/system-image/archive-master.tar.xz image_master: {TMPDIR}/image-master.tar.xz image_signing: {TMPDIR}/image-signing.tar.xz device_signing: {TMPDIR}/device-signing.tar.xz [updater] cache_partition: {TMPDIR}/android data_partition: {TMPDIR}/ubuntu [hooks] device: systemimage.device.SystemProperty scorer: systemimage.scores.WeightedScorer reboot: systemimage.reboot.Reboot [dbus] lifetime: 10m debian/tests/unittests0000644000000000000000000000035412311630237012315 0ustar #!/bin/sh # # autopkgtest check: Run tox against the built package. # # Copyright (C) 2013 Canonical Ltd. # Author: Barry Warsaw set -e # See LP: #1240106 and LP: #1240157 export SYSTEMIMAGE_REACTOR_TIMEOUT=1200 tox debian/tests/control0000644000000000000000000000016012311630237011726 0ustar Tests: smoketest Depends: @, ubuntu-download-manager, dbus, dbus-x11, python-tox, python3-nose2, python3-psutil debian/tests/prep.py0000644000000000000000000000104212311630237011643 0ustar #!/usr/bin/python3 import os tmpdir = os.environ['ADTTMP'] artifacts = os.environ['ADT_ARTIFACTS'] os.makedirs(os.path.join(tmpdir, 'android'), exist_ok=True) os.makedirs(os.path.join(tmpdir, 'ubuntu'), exist_ok=True) substitutions = dict( TMPDIR=tmpdir, ARTIFACTS=artifacts, ) with open('debian/tests/client.ini.in', encoding='utf-8') as fp: ini_template = fp.read() ini_contents = ini_template.format(**substitutions) with open(os.path.join(tmpdir, 'client.ini'), 'w', encoding='utf-8') as fp: fp.write(ini_contents) debian/watch0000644000000000000000000000020612311630237010213 0ustar version=3 https://launchpad.net/ubuntu-system-image/+download https://launchpad.net/ubuntu-system-image/.*/system-image-(.*)\.tar\.gz debian/system-image-common.dirs0000644000000000000000000000006512311630237013742 0ustar /var/lib/system-image/keyrings /var/log/system-image debian/system-image-common.manpages0000644000000000000000000000013312311630237014570 0ustar debian/tmp/system-image-cli.man debian/tmp/system-image-dbus.man debian/tmp/client-ini.man