summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch58
-rw-r--r--meta/recipes-core/kbd/kbd_2.2.0.bb4
2 files changed, 47 insertions, 15 deletions
diff --git a/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch b/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch
index 5872cef36b..4b1e5b8eeb 100644
--- a/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch
+++ b/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch
@@ -1,4 +1,4 @@
1From 7f953dd689155bc1224a3369205c310bb5b760a7 Mon Sep 17 00:00:00 2001 1From cb3af8fb072f8999dbb5160bdc95a102b02fd37a Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com> 2From: Kai Kang <kai.kang@windriver.com>
3Date: Fri, 30 Sep 2016 16:49:55 +0800 3Date: Fri, 30 Sep 2016 16:49:55 +0800
4Subject: [PATCH] kbd: create ptest sub-package 4Subject: [PATCH] kbd: create ptest sub-package
@@ -19,38 +19,53 @@ run as expected.
19Signed-off-by: Kai Kang <kai.kang@windriver.com> 19Signed-off-by: Kai Kang <kai.kang@windriver.com>
20 20
21--- 21---
22 tests/Makefile.am | 2 +- 22 tests/Makefile.am | 4 ++--
23 tests/alt-is-meta.in | 6 ++---- 23 tests/alt-is-meta.in | 2 +-
24 tests/dumpkeys-bkeymap.in | 4 ++--
24 tests/dumpkeys-fulltable.in | 2 +- 25 tests/dumpkeys-fulltable.in | 2 +-
25 3 files changed, 4 insertions(+), 6 deletions(-) 26 tests/dumpkeys-mktable.in | 4 ++--
27 5 files changed, 8 insertions(+), 8 deletions(-)
26 28
27diff --git a/tests/Makefile.am b/tests/Makefile.am 29diff --git a/tests/Makefile.am b/tests/Makefile.am
28index f32b9aa..973cd26 100644 30index 8d0ab69..5147c28 100644
29--- a/tests/Makefile.am 31--- a/tests/Makefile.am
30+++ b/tests/Makefile.am 32+++ b/tests/Makefile.am
31@@ -7,7 +7,7 @@ AM_CPPFLAGS = \ 33@@ -7,8 +7,8 @@ AM_CPPFLAGS = \
32 -I$(builddir)/../src/libkeymap \ 34 -I$(builddir)/../src/libkeymap \
33 -I$(srcdir)/../src/libkbdfile \ 35 -I$(srcdir)/../src/libkbdfile \
34 -I$(builddir)/../src/libkbdfile \ 36 -I$(builddir)/../src/libkbdfile \
35- -DDATADIR=\"$(srcdir)\" \ 37- -DDATADIR=\"$(srcdir)\" \
38- -DABS_DATADIR=\"$(realpath $(srcdir))\" \
36+ -DDATADIR=\".\" \ 39+ -DDATADIR=\".\" \
37 -DABS_DATADIR=\"$(realpath $(srcdir))\" \ 40+ -DABS_DATADIR=\"/usr/lib/kbd/ptest/tests\" \
38 -DBUILDDIR=\"$(builddir)\" 41 -DBUILDDIR=\"$(builddir)\"
39 42
43 AM_CFLAGS = $(CHECK_CFLAGS) $(CODE_COVERAGE_CFLAGS)
40diff --git a/tests/alt-is-meta.in b/tests/alt-is-meta.in 44diff --git a/tests/alt-is-meta.in b/tests/alt-is-meta.in
41index 3a1441f..772fb51 100755 45index 3a1441f..d829f2e 100755
42--- a/tests/alt-is-meta.in 46--- a/tests/alt-is-meta.in
43+++ b/tests/alt-is-meta.in 47+++ b/tests/alt-is-meta.in
44@@ -7,10 +7,8 @@ cd "$cwd" 48@@ -7,7 +7,7 @@ cd "$cwd"
45 rc=0 49 rc=0
46 temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")" 50 temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")"
47 51
48-datadir="@DATADIR@/data/alt-is-meta" 52-datadir="@DATADIR@/data/alt-is-meta"
49- 53+datadir="./data/alt-is-meta"
50-./libkeymap-showmaps "$datadir"/alt-is-meta.map > "$temp" || rc=$? 54
51-cmp -s "$datadir/alt-is-meta.output" "$temp" || rc=$? 55 ./libkeymap-showmaps "$datadir"/alt-is-meta.map > "$temp" || rc=$?
52+./libkeymap-showmaps ./alt-is-meta.map > "$temp" || rc=$? 56 cmp -s "$datadir/alt-is-meta.output" "$temp" || rc=$?
53+cmp -s "./alt-is-meta.output" "$temp" || rc=$? 57diff --git a/tests/dumpkeys-bkeymap.in b/tests/dumpkeys-bkeymap.in
58index 03d4ca2..d1d0e26 100755
59--- a/tests/dumpkeys-bkeymap.in
60+++ b/tests/dumpkeys-bkeymap.in
61@@ -9,8 +9,8 @@ temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")"
62
63 datadir="@DATADIR@"
64
65-./libkeymap-bkeymap "$datadir/"../data/keymaps/i386/qwerty/defkeymap.map > "$temp" || rc=$?
66-cmp -s "$datadir/data/dumpkeys-bkeymap/bkeymap.bin" "$temp" || rc=$?
67+./libkeymap-bkeymap ../data/keymaps/i386/qwerty/defkeymap.map > "$temp" || rc=$?
68+cmp -s "./data/dumpkeys-bkeymap/bkeymap.bin" "$temp" || rc=$?
54 69
55 if [ "$rc" != 0 ]; then 70 if [ "$rc" != 0 ]; then
56 printf 'failed\n' 71 printf 'failed\n'
@@ -67,3 +82,18 @@ index a3a5ece..67a73ef 100755
67 82
68 check_keymap() { 83 check_keymap() {
69 local kmap temp rc 84 local kmap temp rc
85diff --git a/tests/dumpkeys-mktable.in b/tests/dumpkeys-mktable.in
86index 0f17c40..7e5161d 100755
87--- a/tests/dumpkeys-mktable.in
88+++ b/tests/dumpkeys-mktable.in
89@@ -7,8 +7,8 @@ cd "$cwd"
90 rc=0
91 temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")"
92
93-./libkeymap-mktable "@DATADIR@/"../data/keymaps/i386/qwerty/defkeymap.map > "$temp" || rc=$?
94-cmp -s "@DATADIR@/data/dumpkeys-mktable/defkeymap.c" "$temp" || rc=$?
95+./libkeymap-mktable ../data/keymaps/i386/qwerty/defkeymap.map > "$temp" || rc=$?
96+cmp -s "./data/dumpkeys-mktable/defkeymap.c" "$temp" || rc=$?
97
98 if [ "$rc" != 0 ]; then
99 printf 'failed\n'
diff --git a/meta/recipes-core/kbd/kbd_2.2.0.bb b/meta/recipes-core/kbd/kbd_2.2.0.bb
index 88041bc878..df9b0bb90b 100644
--- a/meta/recipes-core/kbd/kbd_2.2.0.bb
+++ b/meta/recipes-core/kbd/kbd_2.2.0.bb
@@ -45,7 +45,9 @@ do_install_ptest() {
45 -e '/^lib.*_SOURCES =/d' -e '/$(EXEEXT):/,/^$/d' ${D}${PTEST_PATH}/tests/Makefile 45 -e '/^lib.*_SOURCES =/d' -e '/$(EXEEXT):/,/^$/d' ${D}${PTEST_PATH}/tests/Makefile
46 46
47 find ${B}/tests -executable -exec install {} ${D}${PTEST_PATH}/tests \; 47 find ${B}/tests -executable -exec install {} ${D}${PTEST_PATH}/tests \;
48 find ${S}/tests \( -name \*.map -o -name \*.bin -o -name \*.output \) -exec install {} ${D}${PTEST_PATH}/tests \; 48 cp -rf ${S}/tests/data ${D}${PTEST_PATH}/tests
49 cp -rf ${S}/tests/findfile ${D}${PTEST_PATH}/tests
50 cp -rf ${S}/data ${D}${PTEST_PATH}
49 51
50 install -D -m 755 ${S}/config/test-driver ${D}${PTEST_PATH}/config/test-driver 52 install -D -m 755 ${S}/config/test-driver ${D}${PTEST_PATH}/config/test-driver
51} 53}