diff options
| -rw-r--r-- | meta/recipes-support/lzo/lzo/run-ptest | 8 | ||||
| -rw-r--r-- | meta/recipes-support/lzo/lzo_2.09.bb (renamed from meta/recipes-support/lzo/lzo_2.08.bb) | 19 |
2 files changed, 23 insertions, 4 deletions
diff --git a/meta/recipes-support/lzo/lzo/run-ptest b/meta/recipes-support/lzo/lzo/run-ptest new file mode 100644 index 0000000000..2ea7745f70 --- /dev/null +++ b/meta/recipes-support/lzo/lzo/run-ptest | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | ./lzotest -mavail -n10 -q /etc/services | ||
| 4 | LZOTEST=./lzotest /bin/sh -e "./check.sh" "/etc" | ||
| 5 | ./align | ||
| 6 | ./chksum | ||
| 7 | ./simple | ||
| 8 | ./testmini | ||
diff --git a/meta/recipes-support/lzo/lzo_2.08.bb b/meta/recipes-support/lzo/lzo_2.09.bb index af06e29a6f..2978617bbd 100644 --- a/meta/recipes-support/lzo/lzo_2.08.bb +++ b/meta/recipes-support/lzo/lzo_2.09.bb | |||
| @@ -3,17 +3,18 @@ HOMEPAGE = "http://www.oberhumer.com/opensource/lzo/" | |||
| 3 | SECTION = "libs" | 3 | SECTION = "libs" |
| 4 | LICENSE = "GPLv2+" | 4 | LICENSE = "GPLv2+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 6 | file://src/lzo_init.c;beginline=5;endline=25;md5=a6e25df9a83b24629e847846ccdd8054" | 6 | file://src/lzo_init.c;beginline=5;endline=25;md5=355023835a9b9eeb70ab895395e951ff" |
| 7 | 7 | ||
| 8 | SRC_URI = "http://www.oberhumer.com/opensource/lzo/download/lzo-${PV}.tar.gz \ | 8 | SRC_URI = "http://www.oberhumer.com/opensource/lzo/download/lzo-${PV}.tar.gz \ |
| 9 | file://0001-Use-memcpy-instead-of-reinventing-it.patch \ | 9 | file://0001-Use-memcpy-instead-of-reinventing-it.patch \ |
| 10 | file://acinclude.m4 \ | 10 | file://acinclude.m4 \ |
| 11 | file://run-ptest \ | ||
| 11 | " | 12 | " |
| 12 | 13 | ||
| 13 | SRC_URI[md5sum] = "fcec64c26a0f4f4901468f360029678f" | 14 | SRC_URI[md5sum] = "c7ffc9a103afe2d1bba0b015e7aa887f" |
| 14 | SRC_URI[sha256sum] = "ac1b3e4dee46febe9fd28737eb7f5692d3232ef1a01da10444394c3d47536614" | 15 | SRC_URI[sha256sum] = "f294a7ced313063c057c504257f437c8335c41bfeed23531ee4e6a2b87bcb34c" |
| 15 | 16 | ||
| 16 | inherit autotools | 17 | inherit autotools ptest |
| 17 | 18 | ||
| 18 | EXTRA_OECONF = "--enable-shared" | 19 | EXTRA_OECONF = "--enable-shared" |
| 19 | 20 | ||
| @@ -21,4 +22,14 @@ do_configure_prepend () { | |||
| 21 | cp ${WORKDIR}/acinclude.m4 ${S}/ | 22 | cp ${WORKDIR}/acinclude.m4 ${S}/ |
| 22 | } | 23 | } |
| 23 | 24 | ||
| 25 | do_install_ptest() { | ||
| 26 | t=${D}${PTEST_PATH} | ||
| 27 | cp ${S}/util/check.sh $t | ||
| 28 | cp ${B}/minilzo/testmini $t | ||
| 29 | for i in tests/align tests/chksum lzotest/lzotest examples/simple | ||
| 30 | do cp ${B}/`dirname $i`/.libs/`basename $i` $t; \ | ||
| 31 | done | ||
| 32 | } | ||
| 33 | |||
| 34 | |||
| 24 | BBCLASSEXTEND = "native nativesdk" | 35 | BBCLASSEXTEND = "native nativesdk" |
