diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2013-12-07 18:49:42 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-24 12:48:39 +0000 |
| commit | 7f070ca4f17e66892d3da9a2c5a45b09cc627fde (patch) | |
| tree | d0097df2302cb71f55d3687954bb580a8830748a /meta | |
| parent | 97af6e46da2698c66acd64fe925377bcc7e9e32c (diff) | |
| download | poky-7f070ca4f17e66892d3da9a2c5a45b09cc627fde.tar.gz | |
ltp: set PREFERRED_PROVIDER and rename runtests_noltp.sh script
* ltp installs 2 different runtests_noltp.sh files from different
directories into /opt/ltp/testcases/bin/runtests_noltp.sh
last one installed wins and causes unexpected changes in
buildhistory's files-in-image.txt report, rename them to have
unique name as other ltp scripts have.
* also define PREFERRED_PROVIDER to resolve note shown when
building with meta-oe layer:
NOTE: multiple providers are available for ltp (ltp, ltp-ddt)
NOTE: consider defining a PREFERRED_PROVIDER entry to match ltp
* use patch generated without -M
in my builds both versions worked, but Saul reported that it fails to
apply with:
Applying patch
0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch
patch: **** Only garbage was found in the patch input.
Now I've see the same issue on different builder (with Ubuntu 12.04).
(From OE-Core master rev: ec3bb2c2203b2e8bafc1a631f623f858779e20b7)
(From OE-Core rev: 198623d80d31f19c963e61d03cbcb12dd318dfdf)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
3 files changed, 207 insertions, 1 deletions
diff --git a/meta/conf/distro/include/default-providers.inc b/meta/conf/distro/include/default-providers.inc index d4b9db014e..e2b0892fae 100644 --- a/meta/conf/distro/include/default-providers.inc +++ b/meta/conf/distro/include/default-providers.inc | |||
| @@ -43,3 +43,5 @@ PREFERRED_PROVIDER_udev ?= "${@base_contains('DISTRO_FEATURES','systemd','system | |||
| 43 | # There are issues with runtime packages and PREFERRED_PROVIDER, see YOCTO #5044 for details | 43 | # There are issues with runtime packages and PREFERRED_PROVIDER, see YOCTO #5044 for details |
| 44 | # on this rather strange entry. | 44 | # on this rather strange entry. |
| 45 | PREFERRED_PROVIDER_bluez4 ?= "bluez4" | 45 | PREFERRED_PROVIDER_bluez4 ?= "bluez4" |
| 46 | # Alternative is ltp-ddt in meta-oe: meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb | ||
| 47 | PREFERRED_PROVIDER_ltp ?= "ltp" | ||
diff --git a/meta/recipes-extended/ltp/ltp/0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch b/meta/recipes-extended/ltp/ltp/0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch new file mode 100644 index 0000000000..1b4d2324a5 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch | |||
| @@ -0,0 +1,202 @@ | |||
| 1 | From 9751a6526cffcdf4e3dc2cb33641259a7be00e19 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 3 | Date: Sat, 7 Dec 2013 18:24:32 +0100 | ||
| 4 | Subject: [PATCH] Rename runtests_noltp.sh script so have unique name | ||
| 5 | |||
| 6 | * they are installed in the same target path | ||
| 7 | /opt/ltp/testcases/bin/runtests_noltp.sh | ||
| 8 | and overwrite each other in non-deterministic way | ||
| 9 | when multiple processes are used in "make install" | ||
| 10 | |||
| 11 | ./temp/log.do_install:install -m 00775 | ||
| 12 | "ltp/20120903-r2/ltp-20120903/testcases/kernel/containers/sysvipc/runtests_noltp.sh" | ||
| 13 | "ltp/20120903-r2/image/opt/ltp/testcases/bin/runtests_noltp.sh" | ||
| 14 | ./temp/log.do_install:install -m 00775 | ||
| 15 | "ltp/20120903-r2/ltp-20120903/testcases/kernel/containers/utsname/runtests_noltp.sh" | ||
| 16 | "ltp/20120903-r2/image/opt/ltp/testcases/bin/runtests_noltp.sh" | ||
| 17 | |||
| 18 | Upstream-Status: Pending | ||
| 19 | |||
| 20 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 21 | --- | ||
| 22 | .../kernel/containers/sysvipc/runipctests_noltp.sh | 31 ++++++++++++++++ | ||
| 23 | .../kernel/containers/sysvipc/runtests_noltp.sh | 31 ---------------- | ||
| 24 | .../kernel/containers/utsname/runtests_noltp.sh | 41 ---------------------- | ||
| 25 | .../kernel/containers/utsname/runutstests_noltp.sh | 41 ++++++++++++++++++++++ | ||
| 26 | 4 files changed, 72 insertions(+), 72 deletions(-) | ||
| 27 | create mode 100644 testcases/kernel/containers/sysvipc/runipctests_noltp.sh | ||
| 28 | delete mode 100644 testcases/kernel/containers/sysvipc/runtests_noltp.sh | ||
| 29 | delete mode 100755 testcases/kernel/containers/utsname/runtests_noltp.sh | ||
| 30 | create mode 100755 testcases/kernel/containers/utsname/runutstests_noltp.sh | ||
| 31 | |||
| 32 | diff --git a/testcases/kernel/containers/sysvipc/runipctests_noltp.sh b/testcases/kernel/containers/sysvipc/runipctests_noltp.sh | ||
| 33 | new file mode 100644 | ||
| 34 | index 0000000..84f398f | ||
| 35 | --- /dev/null | ||
| 36 | +++ b/testcases/kernel/containers/sysvipc/runipctests_noltp.sh | ||
| 37 | @@ -0,0 +1,31 @@ | ||
| 38 | +#!/bin/sh | ||
| 39 | +################################################################################ | ||
| 40 | +## ## | ||
| 41 | +## Copyright (c) International Business Machines Corp., 2007 ## | ||
| 42 | +## ## | ||
| 43 | +## This program is free software; you can redistribute it and#or modify ## | ||
| 44 | +## it under the terms of the GNU General Public License as published by ## | ||
| 45 | +## the Free Software Foundation; either version 2 of the License, or ## | ||
| 46 | +## (at your option) any later version. ## | ||
| 47 | +## ## | ||
| 48 | +## This program is distributed in the hope that it will be useful, but ## | ||
| 49 | +## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## | ||
| 50 | +## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## | ||
| 51 | +## for more details. ## | ||
| 52 | +## ## | ||
| 53 | +## You should have received a copy of the GNU General Public License ## | ||
| 54 | +## along with this program; if not, write to the Free Software ## | ||
| 55 | +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## | ||
| 56 | +## ## | ||
| 57 | +################################################################################ | ||
| 58 | + | ||
| 59 | +exit_code=0 | ||
| 60 | +echo "sysvipc tests" | ||
| 61 | +for type in none clone unshare; do | ||
| 62 | + echo "**sysvipc $type" | ||
| 63 | + ./shmnstest_noltp $type | ||
| 64 | + if [ $? -ne 0 ]; then | ||
| 65 | + exit_code=$? | ||
| 66 | + fi | ||
| 67 | +done | ||
| 68 | +exit $exit_code | ||
| 69 | diff --git a/testcases/kernel/containers/sysvipc/runtests_noltp.sh b/testcases/kernel/containers/sysvipc/runtests_noltp.sh | ||
| 70 | deleted file mode 100644 | ||
| 71 | index 84f398f..0000000 | ||
| 72 | --- a/testcases/kernel/containers/sysvipc/runtests_noltp.sh | ||
| 73 | +++ /dev/null | ||
| 74 | @@ -1,31 +0,0 @@ | ||
| 75 | -#!/bin/sh | ||
| 76 | -################################################################################ | ||
| 77 | -## ## | ||
| 78 | -## Copyright (c) International Business Machines Corp., 2007 ## | ||
| 79 | -## ## | ||
| 80 | -## This program is free software; you can redistribute it and#or modify ## | ||
| 81 | -## it under the terms of the GNU General Public License as published by ## | ||
| 82 | -## the Free Software Foundation; either version 2 of the License, or ## | ||
| 83 | -## (at your option) any later version. ## | ||
| 84 | -## ## | ||
| 85 | -## This program is distributed in the hope that it will be useful, but ## | ||
| 86 | -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## | ||
| 87 | -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## | ||
| 88 | -## for more details. ## | ||
| 89 | -## ## | ||
| 90 | -## You should have received a copy of the GNU General Public License ## | ||
| 91 | -## along with this program; if not, write to the Free Software ## | ||
| 92 | -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## | ||
| 93 | -## ## | ||
| 94 | -################################################################################ | ||
| 95 | - | ||
| 96 | -exit_code=0 | ||
| 97 | -echo "sysvipc tests" | ||
| 98 | -for type in none clone unshare; do | ||
| 99 | - echo "**sysvipc $type" | ||
| 100 | - ./shmnstest_noltp $type | ||
| 101 | - if [ $? -ne 0 ]; then | ||
| 102 | - exit_code=$? | ||
| 103 | - fi | ||
| 104 | -done | ||
| 105 | -exit $exit_code | ||
| 106 | diff --git a/testcases/kernel/containers/utsname/runtests_noltp.sh b/testcases/kernel/containers/utsname/runtests_noltp.sh | ||
| 107 | deleted file mode 100755 | ||
| 108 | index 43cb7e2..0000000 | ||
| 109 | --- a/testcases/kernel/containers/utsname/runtests_noltp.sh | ||
| 110 | +++ /dev/null | ||
| 111 | @@ -1,41 +0,0 @@ | ||
| 112 | -#!/bin/sh | ||
| 113 | -################################################################################ | ||
| 114 | -## ## | ||
| 115 | -## Copyright (c) International Business Machines Corp., 2007 ## | ||
| 116 | -## ## | ||
| 117 | -## This program is free software; you can redistribute it and#or modify ## | ||
| 118 | -## it under the terms of the GNU General Public License as published by ## | ||
| 119 | -## the Free Software Foundation; either version 2 of the License, or ## | ||
| 120 | -## (at your option) any later version. ## | ||
| 121 | -## ## | ||
| 122 | -## This program is distributed in the hope that it will be useful, but ## | ||
| 123 | -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## | ||
| 124 | -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## | ||
| 125 | -## for more details. ## | ||
| 126 | -## ## | ||
| 127 | -## You should have received a copy of the GNU General Public License ## | ||
| 128 | -## along with this program; if not, write to the Free Software ## | ||
| 129 | -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## | ||
| 130 | -## ## | ||
| 131 | -################################################################################ | ||
| 132 | - | ||
| 133 | -oldhostname=`hostname` | ||
| 134 | -exit_code=0 | ||
| 135 | -echo "unshare tests" | ||
| 136 | -for i in `seq 1 5`; do | ||
| 137 | - echo "test $i (unshare)" | ||
| 138 | - ./utstest_noltp unshare $i | ||
| 139 | - if [ $? -ne 0 ]; then | ||
| 140 | - exit_code=$? | ||
| 141 | - fi | ||
| 142 | -done | ||
| 143 | -echo "clone tests" | ||
| 144 | -for i in `seq 1 5`; do | ||
| 145 | - echo "test $i (clone)" | ||
| 146 | - ./utstest_noltp clone $i | ||
| 147 | - if [ $? -ne 0 ]; then | ||
| 148 | - exit_code=$? | ||
| 149 | - fi | ||
| 150 | -done | ||
| 151 | -hostname "$oldhostname" | ||
| 152 | -exit $exit_code | ||
| 153 | diff --git a/testcases/kernel/containers/utsname/runutstests_noltp.sh b/testcases/kernel/containers/utsname/runutstests_noltp.sh | ||
| 154 | new file mode 100755 | ||
| 155 | index 0000000..43cb7e2 | ||
| 156 | --- /dev/null | ||
| 157 | +++ b/testcases/kernel/containers/utsname/runutstests_noltp.sh | ||
| 158 | @@ -0,0 +1,41 @@ | ||
| 159 | +#!/bin/sh | ||
| 160 | +################################################################################ | ||
| 161 | +## ## | ||
| 162 | +## Copyright (c) International Business Machines Corp., 2007 ## | ||
| 163 | +## ## | ||
| 164 | +## This program is free software; you can redistribute it and#or modify ## | ||
| 165 | +## it under the terms of the GNU General Public License as published by ## | ||
| 166 | +## the Free Software Foundation; either version 2 of the License, or ## | ||
| 167 | +## (at your option) any later version. ## | ||
| 168 | +## ## | ||
| 169 | +## This program is distributed in the hope that it will be useful, but ## | ||
| 170 | +## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## | ||
| 171 | +## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## | ||
| 172 | +## for more details. ## | ||
| 173 | +## ## | ||
| 174 | +## You should have received a copy of the GNU General Public License ## | ||
| 175 | +## along with this program; if not, write to the Free Software ## | ||
| 176 | +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## | ||
| 177 | +## ## | ||
| 178 | +################################################################################ | ||
| 179 | + | ||
| 180 | +oldhostname=`hostname` | ||
| 181 | +exit_code=0 | ||
| 182 | +echo "unshare tests" | ||
| 183 | +for i in `seq 1 5`; do | ||
| 184 | + echo "test $i (unshare)" | ||
| 185 | + ./utstest_noltp unshare $i | ||
| 186 | + if [ $? -ne 0 ]; then | ||
| 187 | + exit_code=$? | ||
| 188 | + fi | ||
| 189 | +done | ||
| 190 | +echo "clone tests" | ||
| 191 | +for i in `seq 1 5`; do | ||
| 192 | + echo "test $i (clone)" | ||
| 193 | + ./utstest_noltp clone $i | ||
| 194 | + if [ $? -ne 0 ]; then | ||
| 195 | + exit_code=$? | ||
| 196 | + fi | ||
| 197 | +done | ||
| 198 | +hostname "$oldhostname" | ||
| 199 | +exit $exit_code | ||
| 200 | -- | ||
| 201 | 1.8.4.3 | ||
| 202 | |||
diff --git a/meta/recipes-extended/ltp/ltp_20130503.bb b/meta/recipes-extended/ltp/ltp_20130503.bb index 387826dcfd..9e1183c1fd 100644 --- a/meta/recipes-extended/ltp/ltp_20130503.bb +++ b/meta/recipes-extended/ltp/ltp_20130503.bb | |||
| @@ -21,7 +21,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | |||
| 21 | 21 | ||
| 22 | DEPENDS = "attr libaio libcap acl openssl" | 22 | DEPENDS = "attr libaio libcap acl openssl" |
| 23 | 23 | ||
| 24 | SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.bz2" | 24 | SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.bz2 \ |
| 25 | file://0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch \ | ||
| 26 | " | ||
| 25 | 27 | ||
| 26 | SRC_URI[md5sum] = "d448d9e9731d7ef45352fc74633cc97f" | 28 | SRC_URI[md5sum] = "d448d9e9731d7ef45352fc74633cc97f" |
| 27 | SRC_URI[sha256sum] = "afdb1479e73d4da7f0d4d5d3fe1570bc5fc96e3317d4a5c10c59c046d3dfa4a0" | 29 | SRC_URI[sha256sum] = "afdb1479e73d4da7f0d4d5d3fe1570bc5fc96e3317d4a5c10c59c046d3dfa4a0" |
