]> code.ossystems Code Review - openembedded-core.git/commitdiff
udev: don't keep ptest testdata laying around
authorMax Krummenacher <max.oss.09@gmail.com>
Wed, 25 Mar 2015 22:09:37 +0000 (23:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Mar 2015 14:16:36 +0000 (14:16 +0000)
Only unpack udev's testdata right before executing the tests and cleanup
afterwards.

udev's testsuite can be used by ptest. However currently the testdata against
which its functionality is tested is installed in the sysroot at udev install
time.
If the sysroot is used with qemu the testdata makes qemu entering an infinite
loop.
http://lists.openembedded.org/pipermail/openembedded-core/2014-September/097098.html

This has already been fixed for the systemd udev flavour.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5664

Signed-off-by: Max Krummenacher <max.oss.09@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev/add-install-ptest.patch
meta/recipes-core/udev/udev/run-ptest

index 755946a4d79772d83a5ab6b2163e70239d1ff948..bfc2e9409df048dc3800b623960651fff1424101 100644 (file)
@@ -34,7 +34,7 @@ Upstream-Status: Pending
 +      (cd $(top_srcdir) && install $(TESTS) $(DESTDIR)/test)
 +      (cd $(top_srcdir) && install test/rule-syntax-check.py $(DESTDIR)/test)
 +      (cd $(top_srcdir) && install $(RULES) $(DESTDIR)/rules)
-+      tar -C $(DESTDIR)/test/ -xJf $(top_srcdir)/test/sys.tar.xz
++      cp $(top_srcdir)/test/sys.tar.xz $(DESTDIR)/test/
 --- a/test/udev-test.pl        2012-03-18 16:43:36.000000000 +0100
 +++ b/test/udev-test.pl        2013-02-18 10:31:29.706357321 +0100
 @@ -1459,11 +1459,13 @@
index c6961ce58af7a3a2e1f274f7add6ba00e4be5c3d..0e39806b0162706ab3edad26385d8a9627f25b3e 100644 (file)
@@ -1,3 +1,5 @@
 #!/bin/sh
 
+tar -C test/ -xJf test/sys.tar.xz
 make -k check-TESTS
+make test-sys-distclean