This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC V2 [2/2] test-in-container


On 02/27/2018 09:34 PM, DJ Delorie wrote:

diff --git a/nss/Makefile b/nss/Makefile
index a5cd2aacae..60a28a1519 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -55,11 +55,13 @@ tests-internal		= tst-field
  tests			= test-netdb test-digits-dots tst-nss-getpwent bug17079 \
  			  tst-nss-test1 \
  			  tst-nss-test2 \
-			  tst-nss-test3 \
  			  tst-nss-test4 \
  			  tst-nss-test5
  xtests			= bug-erange
+tests-container = \
+			  tst-nss-test3
+

diff --git a/nss/tst-nss-test3.root/files.txt b/nss/tst-nss-test3.root/files.txt
new file mode 100644
index 0000000000..a10beb1e6c
--- /dev/null
+++ b/nss/tst-nss-test3.root/files.txt
@@ -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

I like this interface for writing tests, but it doesn't quite work at present: the makefile doesn't know about the test dependency on libnss_test1.so.2 and libnss_test2.so.2, so you get spurious failures at high concurrency levels.

I'm not sure what the proper remedy is here. Should we auto-generate a makefile fragment from the file copy instructions? Should these instructions be included in the makefile instead?

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]