lsbtest: minor fixes for LSB 5.0

* Remove qt4 test component in test list since qt4 isn't installed to
  lsb image by default.
* Update package directory, server IP address and version.
* Move LSB_Test.sh from /usr/bin to /opt/lsb-test.
* Add lsb as runtime dependency.

(From OE-Core rev: c5a9c64d271aec57959d70a83d0967e00a155908)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Yi Zhao
2018-01-25 11:14:04 +08:00
committed by Richard Purdie
parent 992d580743
commit 6dae7fae8b
3 changed files with 5 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ fi
PACKAGES_DIR="/var/opt/lsb/test/manager/packages/ftp.linuxfoundation.org/pub/lsb"
BASE_PACKAGES_DIR="${PACKAGES_DIR}/base/${LSB_RELEASE}/binary"
BASE_PACKAGES_DIR="${PACKAGES_DIR}/base/released-all/binary"
RUNTIME_BASE_PACKAGES_DIR="${PACKAGES_DIR}/test_suites/released-all/binary/runtime"
RUNTIME_PACKAGES_DIR="${PACKAGES_DIR}/test_suites/${LSB_RELEASE}/binary/runtime"
APP_PACKAGES_DIR="${PACKAGES_DIR}/app-battery/${LSB_RELEASE}/${LSB_ARCH}"
@@ -98,7 +98,7 @@ then
fi
# Official download server list. You can replace them with your own server.
SERVER_IPADDR="140.211.169.23"
SERVER_IPADDR="140.211.169.28"
SERVER_NAME="ftp.linuxfoundation.org"
if ! `grep -F -q "${SERVER_NAME}" /etc/hosts`; then

View File

@@ -2,7 +2,7 @@
VERBOSE_LEVEL: 1
ARCHITECTURE: targetarch
USE_INTERNET: 1
STD_VERSION: LSB 4.1
STD_VERSION: LSB 5.0
STD_PROFILE: no
[cmdchk]
RUN: 1
@@ -126,15 +126,6 @@ VERSION: local|*
AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/python
AUTOREPLY_RESULTS_DIR: /opt/lsb/test/python/results
[qt4-azov]
RUN: 1
VERSION: local|*
[qt4-azov|local|*]
AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/qt4-azov
AUTOREPLY_X11_FONT_PATH: [default]
AUTOREPLY_RESULTS_DIR: /opt/lsb/test/qt4-azov/results
[xml2-azov]
RUN: 1
VERSION: local|*

View File

@@ -10,14 +10,13 @@ SRC_URI = "file://LSB_Test.sh \
file://packages_list \
file://session \
"
RDEPENDS_${PN} = "rpm"
RDEPENDS_${PN} = "lsb rpm"
S = "${WORKDIR}"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/LSB_Test.sh ${D}${bindir}
install -d ${D}/opt/lsb-test
install -m 0755 ${S}/LSB_Test.sh ${D}/opt/lsb-test/LSB_Test.sh
install -m 0644 ${S}/packages_list ${D}/opt/lsb-test/packages_list
install -m 0644 ${S}/session ${D}/opt/lsb-test/session
if [ "${TARGET_ARCH}" = "i586" ] || [ "${TARGET_ARCH}" = "i686" ];then