summaryrefslogtreecommitdiff
path: root/tests/test-rollsum.c
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: Run clang-formatColin Walters2023-05-021-35/+55
| | | | | This is a one-time tree wide reformatting to ensure consistency going forward.
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* tests/rollsum: Use `g_malloc` not `malloc`Colin Walters2021-10-181-2/+2
| | | | To pacify gcc's `-fanalyzer`.
* Add SPDX-License-Identifier to source filesMarcus Folkesson2018-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | SPDX License List is a list of (common) open source licenses that can be referred to by a “short identifier”. It has several advantages compared to the common "license header texts" usually found in source files. Some of the advantages: * It is precise; there is no ambiguity due to variations in license header text * It is language neutral * It is easy to machine process * It is concise * It is simple and can be used without much cost in interpreted environments like java Script, etc. * An SPDX license identifier is immutable. * It provides simple guidance for developers who want to make sure the license for their code is respected See http://spdx.org for further reading. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Closes: #1439 Approved by: cgwalters
* tree-wide: Remove Emacs modelinesColin Walters2017-09-211-2/+1
| | | | | | | | | We added a `.dir-locals.el` in commit: 9a77017d87b74c5e2895cdd64ad098018929403f There's no need to have it per-file, with that people might think to add other editors, which is the wrong direction. Closes: #1206 Approved by: jlebon
* tree-wide: Switch tabs ⭾ in various files over to spaces ␠Colin Walters2017-05-111-1/+1
| | | | | | | | | | | | As $DEITY intended. I was reading the `prepare-root.c` code and the indentation damage was distracting. Squash tabs that have leaked into various places in the code. I didn't yet touch the `src/libostree` bits as that has higher potential for conflict. Closes: #852 Approved by: jlebon
* lib: Move the bupsplit selftest into our test frameworkColin Walters2017-02-021-0/+26
| | | | | | | | | | | We weren't running it before. Also I switched it to use GLib. Preparation for some oxidation work (having an implementation of bupsplit in Rust). I exported another function to do the raw rollsum operation which is what this test suite uses. Closes: #655 Approved by: jlebon
* [ASAN] tests: Fix leaksColin Walters2016-11-301-2/+2
| | | | | | | Just for cleaner sanitizer output. Closes: #598 Approved by: jlebon
* tests: Add tests for rollsumGiuseppe Scrivano2015-08-251-0/+145
|
* tests: rename test-rollsum to test-rollsum-cliGiuseppe Scrivano2015-08-241-73/+0
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Remove unnecessary #include "libgsystem.h"Matthew Barnes2015-05-061-2/+0
|
* deltas: Make syntax-check happyColin Walters2015-02-161-1/+1
|
* deltas: Implement rollsumsColin Walters2015-02-161-116/+29
| | | | | | This does an rsync-style prepared delta basically. On my test data, it shaves ~6MB of uncompressed data. Not a huge amount, but I expect this to be more useful for things like binaries which embed data, etc.
* test-rollsum: Process all input, print more statisticsColin Walters2014-12-181-7/+20
| | | | | | | Copying the bup code, we need to loop over all chunks even after hitting the rollsum returning 0. Also print more statistics.
* Static deltas supportColin Walters2014-12-181-16/+86
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721799
* core: Import bup's "rollsum" code, add a test caseColin Walters2014-02-041-0/+79
For static deltas, one strategy that will be employed is to split each object into chunks, and only include changed chunks in the deltas.