5ee71ba372ddef9bc2b5e12f55f0b449d320282c |
|
23-Mar-2016 |
Alex Deymo <deymo@google.com> |
Implement Xz compressor functions. The new XzCompress() function is similar to BzipCompress() function but uses the Xz compression algorithm. This patch simplifies the unittests of the compressors and reuses the client-side decompresor implementation instead of repeating the implementation in the delta generator. This patch removes the unused compression/decompression functions. Bug: 24578399 TEST=Added unittests. (cherry picked from commit 246bf21fd0074a1897c28a7c4703c2223e6224b6) Change-Id: I20cc3035d36c1041cc67fe88435c720d9dbc8733
/system/update_engine/testrunner.cc
|
39910dcd1d68987ccee7c3031dc269233a8490bb |
|
10-Nov-2015 |
Alex Deymo <deymo@google.com> |
Split payload application code into a subdirectory. This patch splits from the main libupdate_engine code the part that is strictly used to download and apply a payload into a new static library, moving the code to subdirectories. The new library is divided in two subdirectories: common/ and payload_consumer/, and should not depend on other update_engine files outside those two subdirectories. The main difference between those two is that the common/ tools are more generic and not tied to the payload consumer process, but otherwise they are both compiled together. There are still dependencies from the new libpayload_consumer library into the main directory files and DBus generated files. Those will be addressed in follow up CLs. Bug: 25197634 Test: FEATURES=test emerge-link update_engine; `mm` on Brillo. Change-Id: Id8d0204ea573627e6e26ca9ea17b9592ca95bc23
/system/update_engine/testrunner.cc
|
3f39d5cc753905874d8d93bef94f857b8808f19e |
|
13-Oct-2015 |
Alex Vakulenko <avakulenko@google.com> |
update_engine: Rename "chromeos" -> "brillo" in include paths and namespaces libchromeos is transitioning to libbrillo and chromeos namespaces and include directory is changing to brillo. Bug: 24872993 Change-Id: I770659a95be380a50fe3b2ba9f91d65818f40945
/system/update_engine/testrunner.cc
|
2e71f90d6af955a5359853132085931f1e0479e0 |
|
30-Sep-2015 |
Alex Deymo <deymo@google.com> |
Implement XzExtentWriter. The new XzExtentWriter class is an ExtentWriter that uses xz-embedded to decompress an xz stream and write it to the underlying extent writer. This will be used to implement REPLACE_XZ in a follow up CL. Bug: 23604708 Test: Added unittests. Change-Id: Ifd2ba0c917b66ab33e5cff1d6069da833ad54882
/system/update_engine/testrunner.cc
|
aea4c1cea20dda7ae7e85fc8924a2d784f70d806 |
|
20-Aug-2015 |
Alex Deymo <deymo@google.com> |
Re-license update_engine to Apache2 This patch automatically replaced the license on all text files from Chromium OS (BSD style) to AOSP (Apache2), keeping the original year as a reference. The license header was added to .gyp and .gypi files, the NOTICE was replaced with a copy of the Apache2 license and MODULE_LICENSE_* file was updated. BUG=b/23084294 TEST=grep 'Chromium OS Authors' doesn't find anything. Change-Id: Ie5083750755f5180a8a785b24fe67dbf9195cd10
/system/update_engine/testrunner.cc
|
0b3db6b6040f53eb9859e614f7fe4c681213d33a |
|
11-Aug-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Remove all references to glib. The message loop in production code switched from chromeos::GlibMessageLoop to chromeos::BaseMessageLoop used in chromeos::Dameon. This patch moves all the unittests also to use chromeos::BaseMessageLoop or chromeos::FakeMessageLoop when I/O is not required. This patch removes all (now unused) references to glib. BUG=chromium:499886 TEST=`grep glib[^c] . -R` return no results. Also, unittests work. Change-Id: Iddfb17def501829d932ed1f70faad3e00268898e Reviewed-on: https://chromium-review.googlesource.com/292157 Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Trybot-Ready: Alex Deymo <deymo@chromium.org>
/system/update_engine/testrunner.cc
|
305345001d85ca2282112c2a30fe75c7a4773491 |
|
21-Jul-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Switch to chrome-dbus for client requests in update_engine update_engine daemon acts as DBus client to send DBus calls to shill, power_manager and chrome, and to listen for signals from shill, chrome and login_manager. This patch migrates these calls and signals to use chrome-dbus framework instead of dbus-glib. All references to dbus-glib code are removed. BUG=chromium:419827 TEST=Updated unittest. Deployed on a link device and tested interactions with shill and chromium. Change-Id: I31b389e0d1690cccb115ff3b6539c876ba81bd0e Reviewed-on: https://chromium-review.googlesource.com/290990 Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Trybot-Ready: Alex Deymo <deymo@chromium.org>
/system/update_engine/testrunner.cc
|
461b259af8815d782200782c5ba3599d8de4a66c |
|
25-Jul-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Use libchromeos to launch subprocesses. The Subprocess class handles the execution of suprocesses in the update_engine such as the post-install script and bspatch operations. This patch migrates this class from using glib functions to use libchromeos classes with equivalent functionality. Callsites and unittests were updated to match the new interface. BUG=chromium:499886 TEST=Unittest still pass. Deployed on link and cros flash another image using a delta payload. Change-Id: Ia64d39734e220675113f393a6049e9a9b0fe8409 Reviewed-on: https://chromium-review.googlesource.com/288837 Trybot-Ready: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org>
/system/update_engine/testrunner.cc
|
0bb234147ea8f0247b733375fcf1685eaf329aac |
|
19-Jun-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Add locations to the MessageLoop calls. When running the unittests with --v=1, this patch will show the location where the tasks were posted to the FakeMessageLoop. BUG=brillo:91 TEST=Ran unittest with --v=1 Change-Id: I0f9b0a3b67a40c26965a396258f1bd45e38f5ba3 Reviewed-on: https://chromium-review.googlesource.com/280568 Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org>
/system/update_engine/testrunner.cc
|
b96ecdaafd27009a18e198f166d2b2f64a55d251 |
|
02-Apr-2015 |
Alex Vakulenko <avakulenko@chromium.org> |
platform2: Explicitly use base:: namespace with CommandLine The current revision of libchrome is removing CommandLine class from global namespace and only retain the one in base::. Sweep the code to use the correct namespace in anticpation of libchrome revision roll. BUG=None TEST=./build_packages Change-Id: Ib7ca448dac1204c1e36ab053e775a5a5214997ac Reviewed-on: https://chromium-review.googlesource.com/263785 Trybot-Ready: Alex Vakulenko <avakulenko@chromium.org> Tested-by: Alex Vakulenko <avakulenko@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
/system/update_engine/testrunner.cc
|
46bf5c8663bd0b7be0809d3d5ea6a844f4c6219f |
|
24-Jun-2013 |
Ben Chan <benchan@chromium.org> |
Remove unnecessary call to the deprecated g_thread_init(). g_thread_init() has been deprecated since glib 2.32. This CL removes the unnecessary call to g_thread_init(), so that we can later migrate to glib 2.34. It also replaces dbus_g_thread_init(), which calls the deprecated g_thread_supported(), with dbus_threads_init_default() directly. BUG=chromium:253025 TEST=Tested the following: 1. Build and run unit tests. 2. Run trybot builds on x86, amd64, and arm platforms. Change-Id: I30852f1d3525f3d7b5b6cd756d18c2816a28903f Reviewed-on: https://gerrit.chromium.org/gerrit/59801 Reviewed-by: Chris Sosa <sosa@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Commit-Queue: Ben Chan <benchan@chromium.org>
/system/update_engine/testrunner.cc
|
fc35929eda5c40615ecd21f6c4ac30cf49e34e3e |
|
01-May-2012 |
Gilad Arnold <garnold@chromium.org> |
Added log messages in unittest main function. Hopefully, these will shed more light on what may be failing and causing the unittest binary to return an error code. BUG=chromium-os:29841 TEST=Unittest run with proper log messages. Change-Id: I6c83c5e8c73590eaafaea3730c8ec1933e7ea8b5 Reviewed-on: https://gerrit.chromium.org/gerrit/21511 Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Commit-Ready: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org>
/system/update_engine/testrunner.cc
|
0b4a6ffb20e83aea7e5616be07bebb2f09ac85da |
|
30-Apr-2012 |
Gilad Arnold <garnold@chromium.org> |
Use distinguished exit status for unittests. * Enabled a parametric exit status in Terminator::Exit(). * The unittest binary sets this exit status to 2, to distinguish it from other exit(1) calls in the code base. BUG=chromium-os:29841 TEST=Build, passes unit tests. Change-Id: I2bf6a834743e513a647ed7bb2266ef095064d6bc Reviewed-on: https://gerrit.chromium.org/gerrit/21479 Reviewed-by: Don Garrett <dgarrett@chromium.org> Commit-Ready: Gilad Arnold <garnold@chromium.org> Reviewed-by: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org>
/system/update_engine/testrunner.cc
|
faac2a5b491605d400d89cbe2054474c7aba6452 |
|
26-Apr-2012 |
Gilad Arnold <garnold@chromium.org> |
Added log message indicating the result of running AU unittests. This should give us better insight as for the actual value returned by RUN_ALL_TESTS and whether it is consistent with the documented behavior. BUG=chromium-os:29841 TEST=Ran unittest binary, observed log message Change-Id: I942311b1f30b44f1e9ef69e0ae3b1346ee1fa1b0 Reviewed-on: https://gerrit.chromium.org/gerrit/21260 Reviewed-by: Ben Chan <benchan@chromium.org> Commit-Ready: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org>
/system/update_engine/testrunner.cc
|
9c0baf82049efd95230a8389769e1b3e5d001209 |
|
07-Oct-2010 |
Darin Petkov <petkov@chromium.org> |
AU: Catch terminate signals and block exit if necessary. Adds a global Terminator class to manage signals and exit blocking. BUG=7392 TEST=unit tests, gmerged on device, initctl stop update-engine Change-Id: I2291d4eb55240a6662b18ff834af161d957bce2f Review URL: http://codereview.chromium.org/3608015
/system/update_engine/testrunner.cc
|
5c0a8afa879886800d82b195e3164e5a580a2cc7 |
|
24-Aug-2010 |
Darin Petkov <petkov@chromium.org> |
Add 10 minute random fuzz to automatic update check event schedule. Schedules the initial check at 7 minutes and periodic checks at 45 minutes with +/- 5 minute fuzz. BUG=5983 TEST=unit tests, gmerged on device, inspected logs, observed checks Change-Id: Ifd38574c4265fec78f6e330f965c2b1054b2dddb Review URL: http://codereview.chromium.org/3173041
/system/update_engine/testrunner.cc
|
c702078734db27d1fd712b02b686a75becbb5c9d |
|
28-Apr-2010 |
Andrew de los Reyes <adlr@chromium.org> |
AU: FilesystemCopierAction: copy bit-exactly Review URL: http://codereview.chromium.org/1700018
/system/update_engine/testrunner.cc
|
c98a7edf648aad88b3f66df3b5a7d43d6a6d7fa9 |
|
04-Dec-2009 |
adlr@google.com <adlr@google.com@06c00378-0e64-4dae-be16-12b19f9950a1> |
AU: Beginnings of delta support - proto file for delta files; still needs hardlink support - code to generate a delta update from two directory trees (old, new). - code to parse delta update - Actions: postinst-runner, install, bootable flag setter, filesystem copier, Omaha response handler, Omaha request preparer, - misc utility functions, like StringHasSuffix(), templatized Action classes to feed/collect an object from another action. - FilesystemIterator: iterates a directory tree with optional exclusion path. Tolerates deleting of files during iteration. - Subprocess class: support for synchronously or asynchronously running an external command. Doesn't pass any env variables. - Integration test that strings many Actions together and tests using actual Omaha/Lorry. Currently only tests full updates. - New simple HTTP server for unittest that supports fake flaky connections. - Some refactoring. Review URL: http://codereview.chromium.org/466036 git-svn-id: svn://chrome-svn/chromeos/trunk@334 06c00378-0e64-4dae-be16-12b19f9950a1
/system/update_engine/testrunner.cc
|
49fdf1889b965be25f929eeebc5b60cd40b90435 |
|
10-Oct-2009 |
rspangler@google.com <rspangler@google.com@06c00378-0e64-4dae-be16-12b19f9950a1> |
Almost there... git-svn-id: svn://chrome-svn/chromeos/trunk@24 06c00378-0e64-4dae-be16-12b19f9950a1
/system/update_engine/testrunner.cc
|