tests,ci: Move "test-basic" (bare mode) to installed test
authorColin Walters <walters@verbum.org>
Tue, 26 Sep 2017 16:41:07 +0000 (12:41 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 27 Sep 2017 13:13:14 +0000 (13:13 +0000)
commit5963d5a2a95b0aea7d306fc4ed5967b3e6ac4d83
tree8494d98a6e732d5f0962b27776327174271430df
parent25a7c4bd4e8aeaf68689fcd2ddc2f907f2f76f1f
tests,ci: Move "test-basic" (bare mode) to installed test

Our CI uses default Docker, which has SELinux labeling but is rather
evil in returning `EOPNOTSUPP` to any attempts to set `security.selinux`,
even if to the same value.

The previous fire ðŸ”¥ for this was: https://github.com/ostreedev/ostree/pull/759

The `bare` repo mode really only makes sense as uid 0, so our installed
test framework is a good match for this.  However, the unit tests *do*
work in a privileged container even as non-root, and *also* should
work on SELinux-disabled systems.  So let's teach the test framework
how to skip in those situations.

I tested this both in a priv container (my default builder) and an unpriv
container (like our CI).

At the same time, start executing the `test-basic.sh` from an installed test,
so we get better coverage than before.

This is just the start - all of the sysroot tests really need the
same treatment.

Closes: #1217
Approved by: jlebon
.papr.yml
tests/basic-test.sh
tests/installed/fah-prep.sh
tests/installed/itest-bare-unit.sh [new file with mode: 0755]
tests/libtest.sh
tests/test-basic-user-only.sh
tests/test-basic.sh