Add test-in-container infrastructure

System Internals / glibc - DJ Delorie [redhat.com] - 23 August 2018 01:20 EDT

- 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.

561b0bec44 Add test-in-container infrastructure.
ChangeLog | 25 +
Makefile | 56 ++
Makerules | 3 +-
Rules | 21 +-
nss/Makefile | 4 +-
nss/tst-nss-test3.c | 6 +-
nss/tst-nss-test3.root/etc/nsswitch.conf | 1 +
nss/tst-nss-test3.root/tst-nss-test3.script | 2 +
support/Makefile | 42 ++
support/echo-container.c | 34 +
support/links-dso-program-c.c | 9 +
support/links-dso-program.cc | 11 +
support/shell-container.c | 395 +++++++++++
support/support.h | 12 +
support/support_paths.c | 51 ++
support/test-container.c | 988 ++++++++++++++++++++++++++++
support/true-container.c | 26 +
support/xmkdirp.c | 66 ++
support/xsymlink.c | 29 +
support/xunistd.h | 4 +
20 files changed, 1779 insertions(+), 6 deletions(-)

Upstream: sourceware.org


  • Share