summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/lz4/files/run-ptest17
-rw-r--r--meta/recipes-support/lz4/lz4_1.9.4.bb20
2 files changed, 36 insertions, 1 deletions
diff --git a/meta/recipes-support/lz4/files/run-ptest b/meta/recipes-support/lz4/files/run-ptest
new file mode 100644
index 0000000000..f4a46a4f2c
--- /dev/null
+++ b/meta/recipes-support/lz4/files/run-ptest
@@ -0,0 +1,17 @@
1#!/bin/sh
2
3# Define test work dir
4WORKDIR=@PTEST_PATH@/tests/
5
6# Run test
7cd ${WORKDIR}
8
9case_name="test_frame"
10./frametest
11ret=$?
12if [[ ${ret} == "0" ]]; then
13 echo "PASS: lz4/$case_name"
14else
15 echo "FAIL: lz4/$case_name"
16fi
17
diff --git a/meta/recipes-support/lz4/lz4_1.9.4.bb b/meta/recipes-support/lz4/lz4_1.9.4.bb
index a2a178bab5..d2a25fd5b0 100644
--- a/meta/recipes-support/lz4/lz4_1.9.4.bb
+++ b/meta/recipes-support/lz4/lz4_1.9.4.bb
@@ -12,11 +12,15 @@ PE = "1"
12 12
13SRCREV = "5ff839680134437dbf4678f3d0c7b371d84f4964" 13SRCREV = "5ff839680134437dbf4678f3d0c7b371d84f4964"
14 14
15SRC_URI = "git://github.com/lz4/lz4.git;branch=release;protocol=https" 15SRC_URI = "git://github.com/lz4/lz4.git;branch=release;protocol=https \
16 file://run-ptest \
17 "
16UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>.*)" 18UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>.*)"
17 19
18S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"
19 21
22inherit ptest
23
20# Fixed in r118, which is larger than the current version. 24# Fixed in r118, which is larger than the current version.
21CVE_CHECK_IGNORE += "CVE-2014-4715" 25CVE_CHECK_IGNORE += "CVE-2014-4715"
22 26
@@ -27,3 +31,17 @@ do_install() {
27} 31}
28 32
29BBCLASSEXTEND = "native nativesdk" 33BBCLASSEXTEND = "native nativesdk"
34
35RDEPENDS:${PN}-ptest += "bash"
36
37do_compile_ptest() {
38 oe_runmake -C ${B}/tests/
39}
40
41do_install_ptest() {
42 install -d ${D}${PTEST_PATH}/tests/
43 install --mode=755 ${B}/tests/frametest ${D}${PTEST_PATH}/tests/
44 sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/run-ptest
45
46}
47