forked from lattera/glibc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
b35d350
commit 561b0be
Showing
20 changed files
with
1,779 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
2018-08-22 DJ Delorie <[email protected]> | ||
|
||
* 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. | ||
|
||
2018-08-22 Paul Eggert <[email protected]> | ||
|
||
regex: port Gnulib code to z/OS POSIX environment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
group test1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cp $B/nss/libnss_test1.so $L/libnss_test1.so.2 | ||
cp $B/nss/libnss_test2.so $L/libnss_test2.so.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* Minimal /bin/echo for in-container use. | ||
Copyright (C) 2018 Free Software Foundation, Inc. | ||
This file is part of the GNU C Library. | ||
The GNU C Library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
The GNU C Library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with the GNU C Library; if not, see | ||
<http://www.gnu.org/licenses/>. */ | ||
|
||
#include <stdio.h> | ||
|
||
int | ||
main (int argc, const char **argv) | ||
{ | ||
int i; | ||
|
||
for (i = 1; i < argc; i++) | ||
{ | ||
if (i > 1) | ||
putchar (' '); | ||
fputs (argv[i], stdout); | ||
} | ||
putchar ('\n'); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <stdio.h> | ||
|
||
int | ||
main (int argc, char **argv) | ||
{ | ||
/* Complexity to keep gcc from optimizing this away. */ | ||
printf ("This is a test %s.\n", argc > 1 ? argv[1] : "null"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <iostream> | ||
|
||
using namespace std; | ||
|
||
int | ||
main (int argc, char **argv) | ||
{ | ||
/* Complexity to keep gcc from optimizing this away. */ | ||
cout << (argc > 1 ? argv[1] : "null"); | ||
return 0; | ||
} |
Oops, something went wrong.