Add test-in-container infrastructure.
commit561b0bec4448f0302cb4915bf67c919bde4a1c57
authorDJ Delorie <dj@redhat.com>
Fri, 6 Jul 2018 05:10:41 +0000 (6 01:10 -0400)
committerDJ Delorie <dj@redhat.com>
Thu, 23 Aug 2018 01:20:37 +0000 (22 21:20 -0400)
treea05c836bfe23e523ec7d357203e7b6599b287f98
parentb35d3509caee04b2e196bb832138e4e4042347db
Add test-in-container infrastructure.

* Makefile (testroot.pristine): New rules to initialize the
test-in-container "testroot".
* Makerules (all-testsuite): Add tests-container.
* Rules (tests-expected): Add tests-container.
(binaries-all-tests): Likewise.
(tests-container): New, run these tests in the testroot container.
* support/Makefile (others): Add *-container, support_paths.c,
xmkdirp, and links-dso-program.
* support/links-dso-program-c.c: New.
* support/links-dso-program.cc: New.
* support/test-container.c: New.
* support/shell-container.c: New.
* support/echo-container.c: New.
* support/true-container.c: New.
* support/xmkdirp.c: New.
* support/xsymlink.c: New.
* support/support_paths.c: New.
* support/support.h: Add support paths prototypes.
* support/xunistd.h: Add xmkdirp () and xsymlink ().

* nss/tst-nss-test3.c: Convert to test-in-container.
* nss/tst-nss-test3.root/: New.
20 files changed:
ChangeLog
Makefile
Makerules
Rules
nss/Makefile
nss/tst-nss-test3.c
nss/tst-nss-test3.root/etc/nsswitch.conf [new file with mode: 0644]
nss/tst-nss-test3.root/tst-nss-test3.script [new file with mode: 0644]
support/Makefile
support/echo-container.c [new file with mode: 0644]
support/links-dso-program-c.c [new file with mode: 0644]
support/links-dso-program.cc [new file with mode: 0644]
support/shell-container.c [new file with mode: 0644]
support/support.h
support/support_paths.c [new file with mode: 0644]
support/test-container.c [new file with mode: 0644]
support/true-container.c [new file with mode: 0644]
support/xmkdirp.c [new file with mode: 0644]
support/xsymlink.c [new file with mode: 0644]
support/xunistd.h