ostree/tests
Anne LoVerso fd56952d6b ostree-repo-resolve-rev: Add function to accept a partial checksum
This patch adds a function that will parse a partial checksum when
resolving a refspec.  If the inputted refspec matches a truncated
existing checksum, it will return that checksum to be parsed.  If
multiple truncated checksums match the partial refspec, it is not
unique and will return false.  This addition is inspired by the same
functionality in Docker, which allows a user to reference a specific
commit without typing the entire checksum.

partial checksums: Add function to abstract comparison

This modifies the list_objects and list_objects_at functions
to take an additional argument for the string that a commit starts
with.  If this string arg is not null, it will only list commit
objects beginning with that string.  This allows for a new function
ostree_repo_list_commit_objects_starting_with to pass a partial string
and return a list of all matching commits.  This improves on the
previous strategy of listing refs because it will list all commit objects,
even ones in past history.  This update also includes bugfixes on
error handling and string comparison, and changes the output structure
of resolve_partial_checksum. The new strcuture will no longer return FALSE
without error.  Also, the hashtable foreach now uses iter.  Also
includes modified test file
2014-07-18 15:15:44 -04:00
..
gpghome tests: Fix up GPG tests for more strict EL7 GPG 2014-02-10 09:40:35 -05:00
.gitignore Add support for pulling from remote archives 2011-10-31 20:28:47 -04:00
admin-test.sh Unify uboot and syslinux test cases 2014-01-15 09:48:04 -05:00
archive-test.sh tests: Pull from file:/// only works with archive-z right now 2013-07-02 11:24:07 -04:00
corrupt-repo-ref.js tests/pull-corruption: Ensure we corrupt an object to be pulled 2014-01-19 13:19:10 -05:00
libtest.sh upgrade: Refuse chronologically older commits unless --allow-downgrade 2014-02-20 18:25:56 -05:00
ostree-valgrind.supp core: Check out asynchronously 2012-06-21 18:05:13 -04:00
pull-test.sh pull: Support --mirror option 2014-06-16 17:14:13 -04:00
test-admin-deploy-2.sh pull: Verify commits with gpg signatures from detached metadata 2013-09-29 14:49:47 -04:00
test-admin-deploy-etcmerge-cornercases.sh tests: Add a test for an empty /etc directory gaining content 2014-06-20 13:43:12 -04:00
test-admin-deploy-karg.sh deploy: Rework kernel arguments, add --karg-append to "admin deploy" 2014-01-16 15:07:55 -05:00
test-admin-deploy-switch.sh admin switch: Allow switching just remote names 2014-05-15 08:58:44 -04:00
test-admin-deploy-syslinux.sh Unify uboot and syslinux test cases 2014-01-15 09:48:04 -05:00
test-admin-deploy-uboot.sh Unify uboot and syslinux test cases 2014-01-15 09:48:04 -05:00
test-admin-upgrade-not-backwards.sh upgrade: Refuse chronologically older commits unless --allow-downgrade 2014-02-20 18:25:56 -05:00
test-archivez.sh pull: Verify commits with gpg signatures from detached metadata 2013-09-29 14:49:47 -04:00
test-basic.sh ostree-repo-resolve-rev: Add function to accept a partial checksum 2014-07-18 15:15:44 -04:00
test-commit-sign.sh pull: Verify commits with gpg signatures from detached metadata 2013-09-29 14:49:47 -04:00
test-core.js test-core.js: Add standard copyright header 2013-09-18 16:34:57 -04:00
test-corruption.sh main: Add --delete option to fsck 2013-07-18 12:09:44 -04:00
test-delta.sh Initial basic static delta code drop 2014-02-04 10:31:44 -05:00
test-gpg-signed-commit.sh tests: Fix up GPG tests for more strict EL7 GPG 2014-02-10 09:40:35 -05:00
test-libarchive.sh tests: Drop numeric prefix 2013-07-09 10:41:07 -04:00
test-pull-archive-z.sh tests: Drop numeric prefix 2013-07-09 10:41:07 -04:00
test-pull-corruption.sh Limit metadata to 10 MiB 2014-05-27 14:15:27 -04:00
test-pull-large-metadata.sh Limit metadata to 10 MiB 2014-05-27 14:15:27 -04:00
test-pull-resume.sh pull: Verify commits with gpg signatures from detached metadata 2013-09-29 14:49:47 -04:00
test-remote-add.sh ostree/remote-add: Add --no-gpg-verify option 2013-12-25 14:17:36 -05:00
test-rollsum.c core: Import bup's "rollsum" code, add a test case 2014-02-04 10:12:56 -05:00
test-setuid.sh core: Don't strip setuid bits when creating files 2013-07-18 14:23:55 -04:00
test-sizes.js core: Add size information to commit metadata 2013-10-19 11:56:51 -04:00
test-sysroot.js test-sysroot: Use GSystem to spawn subprocess 2014-03-19 09:15:38 -04:00
test-varint.c Initial basic static delta code drop 2014-02-04 10:31:44 -05:00
test-xattrs.sh test-xattrs: Skip if current FS doesn't support user_xattr 2013-08-14 20:46:46 +02:00