diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2014-01-28 14:41:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-02 11:22:09 +0000 |
commit | 27521186a02c440ebfaba5e14c8fb62ead7170fe (patch) | |
tree | a87dc165b78458cb16397ba3d12310912c5b3a61 /meta/recipes-extended | |
parent | 2e09b7cbcfc019b8deb71c907651149aa303ef6f (diff) | |
download | poky-27521186a02c440ebfaba5e14c8fb62ead7170fe.tar.gz |
ltp: fix style using oe-stylize (no changes in the content of the recipe itself)
(From OE-Core rev: 0fa8c2619e08326b4913950e278a3a2b2a55d929)
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/ltp/ltp_20140115.bb | 100 |
1 files changed, 51 insertions, 49 deletions
diff --git a/meta/recipes-extended/ltp/ltp_20140115.bb b/meta/recipes-extended/ltp/ltp_20140115.bb index e81fd7a61e..47efb4a63d 100644 --- a/meta/recipes-extended/ltp/ltp_20140115.bb +++ b/meta/recipes-extended/ltp/ltp_20140115.bb | |||
@@ -2,76 +2,78 @@ SUMMARY = "Linux Test Project" | |||
2 | DESCRIPTION = "The Linux Test Project is a joint project with SGI, IBM, OSDL, and Bull with a goal to deliver test suites to the open source community that validate the reliability, robustness, and stability of Linux. The Linux Test Project is a collection of tools for testing the Linux kernel and related features." | 2 | DESCRIPTION = "The Linux Test Project is a joint project with SGI, IBM, OSDL, and Bull with a goal to deliver test suites to the open source community that validate the reliability, robustness, and stability of Linux. The Linux Test Project is a collection of tools for testing the Linux kernel and related features." |
3 | HOMEPAGE = "http://ltp.sourceforge.net" | 3 | HOMEPAGE = "http://ltp.sourceforge.net" |
4 | SECTION = "console/utils" | 4 | SECTION = "console/utils" |
5 | |||
6 | LICENSE = "GPLv2 & GPLv2+ & LGPLv2+ & LGPLv2.1+ & BSD-2-Clause" | 5 | LICENSE = "GPLv2 & GPLv2+ & LGPLv2+ & LGPLv2.1+ & BSD-2-Clause" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | 6 | LIC_FILES_CHKSUM = "\ |
8 | file://testcases/kernel/controllers/freezer/COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | 7 | file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ |
9 | file://testcases/kernel/controllers/freezer/run_freezer.sh;beginline=5;endline=17;md5=86a61d2c042d59836ffb353a21456498 \ | 8 | file://testcases/kernel/controllers/freezer/COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ |
10 | file://testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/COPYING;md5=c46082167a314d785d012a244748d803 \ | 9 | file://testcases/kernel/controllers/freezer/run_freezer.sh;beginline=5;endline=17;md5=86a61d2c042d59836ffb353a21456498 \ |
11 | file://testcases/kernel/hotplug/memory_hotplug/COPYING;md5=e04a2e542b2b8629bf9cd2ba29b0fe41 \ | 10 | file://testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/COPYING;md5=c46082167a314d785d012a244748d803 \ |
12 | file://testcases/kernel/hotplug/cpu_hotplug/COPYING;md5=e04a2e542b2b8629bf9cd2ba29b0fe41 \ | 11 | file://testcases/kernel/hotplug/memory_hotplug/COPYING;md5=e04a2e542b2b8629bf9cd2ba29b0fe41 \ |
13 | file://testcases/open_posix_testsuite/COPYING;md5=216e43b72efbe4ed9017cc19c4c68b01 \ | 12 | file://testcases/kernel/hotplug/cpu_hotplug/COPYING;md5=e04a2e542b2b8629bf9cd2ba29b0fe41 \ |
14 | file://testcases/realtime/COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | 13 | file://testcases/open_posix_testsuite/COPYING;md5=216e43b72efbe4ed9017cc19c4c68b01 \ |
15 | file://tools/netpipe-2.4/COPYING;md5=9e3781bb5fe787aa80e1f51f5006b6fa \ | 14 | file://testcases/realtime/COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ |
16 | file://tools/netpipe-2.4-ipv6/COPYING;md5=9e3781bb5fe787aa80e1f51f5006b6fa \ | 15 | file://tools/netpipe-2.4/COPYING;md5=9e3781bb5fe787aa80e1f51f5006b6fa \ |
17 | file://tools/top-LTP/proc/COPYING;md5=aefc88eb8a41672fbfcfe6b69ab8c49c \ | 16 | file://tools/netpipe-2.4-ipv6/COPYING;md5=9e3781bb5fe787aa80e1f51f5006b6fa \ |
18 | file://tools/pounder21/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 17 | file://tools/top-LTP/proc/COPYING;md5=aefc88eb8a41672fbfcfe6b69ab8c49c \ |
19 | file://utils/benchmark/kernbench-0.42/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 18 | file://tools/pounder21/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
20 | " | 19 | file://utils/benchmark/kernbench-0.42/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
20 | " | ||
21 | 21 | ||
22 | DEPENDS = "attr libaio libcap acl openssl" | 22 | DEPENDS = "attr libaio libcap acl openssl" |
23 | SRCREV = "c8b3e28097e7d3208df9daceaf92c25eae87ebf0" | ||
23 | 24 | ||
24 | SRC_URI = "git://github.com/linux-test-project/ltp.git \ | 25 | SRC_URI = "git://github.com/linux-test-project/ltp.git \ |
25 | file://0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch \ | 26 | file://0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch \ |
26 | file://regen-makefile.patch \ | 27 | file://regen-makefile.patch \ |
27 | " | 28 | " |
28 | 29 | ||
29 | SRCREV = "c8b3e28097e7d3208df9daceaf92c25eae87ebf0" | ||
30 | S = "${WORKDIR}/git" | 30 | S = "${WORKDIR}/git" |
31 | 31 | ||
32 | export prefix = "/opt/ltp" | ||
33 | export exec_prefix = "/opt/ltp" | ||
34 | |||
35 | inherit autotools | 32 | inherit autotools |
36 | 33 | ||
37 | RDEPENDS_${PN} = "perl e2fsprogs-mke2fs" | ||
38 | |||
39 | FILES_${PN}-dbg += "/opt/ltp/runtest/.debug" | ||
40 | FILES_${PN}-dbg += "/opt/ltp/testcases/bin/.debug" | ||
41 | FILES_${PN}-dbg += "/opt/ltp/testcases/bin/*/bin/.debug" | ||
42 | FILES_${PN}-dbg += "/opt/ltp/testcases/bin/*/test/.debug" | ||
43 | FILES_${PN}-dbg += "/opt/ltp/scenario_groups/.debug" | ||
44 | FILES_${PN}-dbg += "/opt/ltp/testscripts/.debug" | ||
45 | FILES_${PN}-dbg += "/opt/ltp/testscripts/open_posix_testsuite/.debug" | ||
46 | |||
47 | FILES_${PN}-staticdev += "/opt/ltp/lib/libmem.a" | ||
48 | |||
49 | FILES_${PN} += "/opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/*" | ||
50 | |||
51 | TARGET_CC_ARCH += "${LDFLAGS}" | 34 | TARGET_CC_ARCH += "${LDFLAGS}" |
52 | 35 | ||
36 | export prefix = "/opt/ltp" | ||
37 | export exec_prefix = "/opt/ltp" | ||
38 | |||
53 | do_unpack_append() { | 39 | do_unpack_append() { |
54 | bb.build.exec_func('do_extract_tarball', d) | 40 | bb.build.exec_func('do_extract_tarball', d) |
55 | } | 41 | } |
56 | 42 | ||
57 | do_extract_tarball() { | 43 | do_install(){ |
58 | if test -f ${WORKDIR}/ltp-full-${PV} ; then | 44 | install -d ${D}/opt/ltp/ |
59 | tar x --no-same-owner -f ${WORKDIR}/ltp-full-${PV} -C ${WORKDIR} | 45 | oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install |
60 | rm -rf ${WORKDIR}/ltp-${PV} | 46 | |
61 | mv ${WORKDIR}/ltp-full-${PV} ${WORKDIR}/ltp-${PV} | 47 | # Copy POSIX test suite into ${D}/opt/ltp/testcases by manual |
62 | fi | 48 | cp -r testcases/open_posix_testsuite ${D}/opt/ltp/testcases |
49 | |||
50 | # We need to remove all scripts which depend on /usr/bin/expect, since expect is not supported in poky | ||
51 | # We will add expect for enhancement in future | ||
52 | find ${D} -type f -print | xargs grep "\!.*\/usr\/bin\/expect" | awk -F":" '{print $1}' | xargs rm -f | ||
63 | } | 53 | } |
64 | 54 | ||
65 | do_install(){ | 55 | RDEPENDS_${PN} = "perl e2fsprogs-mke2fs" |
66 | install -d ${D}/opt/ltp/ | 56 | |
67 | oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install | 57 | FILES_${PN}-dbg += "\ |
58 | /opt/ltp/runtest/.debug \ | ||
59 | /opt/ltp/testcases/bin/.debug \ | ||
60 | /opt/ltp/testcases/bin/*/bin/.debug \ | ||
61 | /opt/ltp/testcases/bin/*/test/.debug \ | ||
62 | /opt/ltp/scenario_groups/.debug \ | ||
63 | /opt/ltp/testscripts/.debug \ | ||
64 | /opt/ltp/testscripts/open_posix_testsuite/.debug \ | ||
65 | " | ||
68 | 66 | ||
69 | # Copy POSIX test suite into ${D}/opt/ltp/testcases by manual | 67 | FILES_${PN}-staticdev += "/opt/ltp/lib/libmem.a" |
70 | cp -r testcases/open_posix_testsuite ${D}/opt/ltp/testcases | ||
71 | 68 | ||
72 | # We need to remove all scripts which depend on /usr/bin/expect, since expect is not supported in poky | 69 | FILES_${PN} += "/opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/*" |
73 | # We will add expect for enhancement in future | 70 | |
74 | find ${D} -type f -print | xargs grep "\!.*\/usr\/bin\/expect" | awk -F":" '{print $1}' | xargs rm -f | 71 | do_extract_tarball() { |
72 | if test -f ${WORKDIR}/ltp-full-${PV} ; then | ||
73 | tar x --no-same-owner -f ${WORKDIR}/ltp-full-${PV} -C ${WORKDIR} | ||
74 | rm -rf ${WORKDIR}/ltp-${PV} | ||
75 | mv ${WORKDIR}/ltp-full-${PV} ${WORKDIR}/ltp-${PV} | ||
76 | fi | ||
75 | } | 77 | } |
76 | 78 | ||
77 | # Avoid generated binaries stripping. Otherwise some of the ltp tests such as ldd01 & nm01 fails | 79 | # Avoid generated binaries stripping. Otherwise some of the ltp tests such as ldd01 & nm01 fails |