diff options
Diffstat (limited to 'meta/recipes-core/udev/udev/add-install-ptest.patch')
-rw-r--r-- | meta/recipes-core/udev/udev/add-install-ptest.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/udev/add-install-ptest.patch b/meta/recipes-core/udev/udev/add-install-ptest.patch new file mode 100644 index 0000000000..45ec676ef5 --- /dev/null +++ b/meta/recipes-core/udev/udev/add-install-ptest.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | Adjustements for ptest: | ||
2 | |||
3 | - Add 'install-ptest' rule. | ||
4 | - Print a standard result line for each test. | ||
5 | - Replace the use of "tree" with "find". | ||
6 | |||
7 | Signed-off-by: Björn Stenberg <bjst@enea.com> | ||
8 | Upstream-status: Pending | ||
9 | |||
10 | --- a/Makefile.am 2012-03-18 16:28:14.000000000 +0100 | ||
11 | +++ b/Makefile.am 2013-02-18 10:03:36.531101244 +0100 | ||
12 | @@ -708,3 +708,11 @@ | ||
13 | for i in src/docs/html/*.{html,css,png}; do echo $$i; kup put $$i $$i.sign /pub/linux/utils/kernel/hotplug/libudev/; done | ||
14 | for i in src/gudev/docs/html/*.{html,css,png}; do rm -f $$i.sign; gpg --armor --detach-sign --output=$$i.sign $$i; done | ||
15 | for i in src/gudev/docs/html/*.{html,css,png}; do echo $$i; kup put $$i $$i.sign /pub/linux/utils/kernel/hotplug/gudev/; done | ||
16 | + | ||
17 | +install-ptest: | ||
18 | + install test-udev $(DESTDIR) | ||
19 | + cp Makefile $(DESTDIR) | ||
20 | + sed -i -e 's|^Makefile:|_Makefile:|' $(DESTDIR)/Makefile | ||
21 | + $(MKDIR_P) $(DESTDIR)/test | ||
22 | + (cd $(top_srcdir) && install $(TESTS) $(DESTDIR)/test) | ||
23 | + tar -C $(DESTDIR)/test/ -xJf $(top_srcdir)/test/sys.tar.xz | ||
24 | --- a/test/udev-test.pl 2012-03-18 16:43:36.000000000 +0100 | ||
25 | +++ b/test/udev-test.pl 2013-02-18 10:31:29.706357321 +0100 | ||
26 | @@ -1459,11 +1459,13 @@ | ||
27 | print "add: error"; | ||
28 | if ($rules->{exp_add_error}) { | ||
29 | print " as expected\n"; | ||
30 | + print "XFAIL: TEST $number: $rules->{desc}: add\n"; | ||
31 | } else { | ||
32 | print "\n"; | ||
33 | - system("tree $udev_root"); | ||
34 | + system("find $udev_root"); | ||
35 | print "\n"; | ||
36 | $error++; | ||
37 | + print "FAIL: TEST $number: $rules->{desc}: add\n"; | ||
38 | sleep(1); | ||
39 | } | ||
40 | } | ||
41 | @@ -1479,15 +1481,18 @@ | ||
42 | print "remove: error"; | ||
43 | if ($rules->{exp_rem_error}) { | ||
44 | print " as expected\n"; | ||
45 | + print "XFAIL: TEST $number: $rules->{desc}: remove\n"; | ||
46 | } else { | ||
47 | print "\n"; | ||
48 | - system("tree $udev_root"); | ||
49 | + system("find $udev_root"); | ||
50 | print "\n"; | ||
51 | $error++; | ||
52 | + print "FAIL: TEST $number: $rules->{desc}: remove\n"; | ||
53 | sleep(1); | ||
54 | } | ||
55 | } else { | ||
56 | print "remove: ok\n"; | ||
57 | + print "PASS: TEST $number: $rules->{desc}: remove\n"; | ||
58 | } | ||
59 | |||
60 | print "\n"; | ||