tests: check for relabeling rather than overlay
authorJonathan Lebon <jlebon@redhat.com>
Thu, 28 Sep 2017 18:57:33 +0000 (18:57 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 30 Sep 2017 00:05:07 +0000 (00:05 +0000)
commita06bd82cd4dc14b3c2949a421870b6d3067aba34
treedfc991209f020098c98611eeb027ac30bbb24694
parent8fe45362578a43260876134d6547ebd0bb2485c3
tests: check for relabeling rather than overlay

Instead of checking for overlayfs, let's explicitly check for our
ability to relabel files since we now have a `libtest` function to do
this. Also port that logic to `libostreetest`.

Note that overlayfs *does* allow manipulating user xattrs. So ideally,
we should break down `OSTREE_NO_XATTRS` further to distinguish between
tests that use bare repos from other modes.

We check the current directory instead of `/` so that developers can
just point `TEST_TMPDIR` to a non-overlayfs mount point when hacking
from a container.

Closes: #1170
Approved by: cgwalters
tests/libostreetest.c
tests/libostreetest.h
tests/libtest.sh
tests/test-basic-c.c