lib/repo: Add ostree_repo_hash() and tests
authorPhilip Withnall <withnall@endlessm.com>
Thu, 21 Sep 2017 19:22:09 +0000 (20:22 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 21 Sep 2017 21:25:58 +0000 (21:25 +0000)
commit64b23fd0891277a26b23c15a7f75fc65f0145ae2
treea14093c913999c3c3cd4e90e85d9bb58a01ef5c6
parentae075d23e3d2069f48fcfca0207ca8f46a923d29
lib/repo: Add ostree_repo_hash() and tests

Add a hash function for OstreeRepo instances, which relies on the repo
being open, and hence being able to hash the device and inode of its
root directory.

Add unit tests for this and ostree_repo_equal().

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://github.com/ostreedev/ostree/issues/1191

Closes: #1205
Approved by: cgwalters
Makefile-tests.am
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
tests/.gitignore
tests/test-repo.c [new file with mode: 0644]