summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/libevent/libevent/run-ptest18
-rw-r--r--meta/recipes-support/libevent/libevent_2.0.22.bb17
2 files changed, 34 insertions, 1 deletions
diff --git a/meta/recipes-support/libevent/libevent/run-ptest b/meta/recipes-support/libevent/libevent/run-ptest
new file mode 100644
index 0000000000..d521688e77
--- /dev/null
+++ b/meta/recipes-support/libevent/libevent/run-ptest
@@ -0,0 +1,18 @@
1#!/bin/sh
2
3fail=0
4for test in ./test/*
5do
6 $test
7 if [ $? -eq 0 ]
8 then
9 fail=1
10 fi
11done
12
13if [ $fail -eq 0 ]
14then
15 echo "PASS: libevent"
16else
17 echo "FAIL: libevent"
18fi
diff --git a/meta/recipes-support/libevent/libevent_2.0.22.bb b/meta/recipes-support/libevent/libevent_2.0.22.bb
index 3f9475ed75..2f492930d4 100644
--- a/meta/recipes-support/libevent/libevent_2.0.22.bb
+++ b/meta/recipes-support/libevent/libevent_2.0.22.bb
@@ -6,7 +6,10 @@ SECTION = "libs"
6LICENSE = "BSD" 6LICENSE = "BSD"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=45c5316ff684bcfe2f9f86d8b1279559" 7LIC_FILES_CHKSUM = "file://LICENSE;md5=45c5316ff684bcfe2f9f86d8b1279559"
8 8
9SRC_URI = "${SOURCEFORGE_MIRROR}/levent/${BP}-stable.tar.gz" 9SRC_URI = " \
10 ${SOURCEFORGE_MIRROR}/levent/${BP}-stable.tar.gz \
11 file://run-ptest \
12"
10 13
11SRC_URI[md5sum] = "c4c56f986aa985677ca1db89630a2e11" 14SRC_URI[md5sum] = "c4c56f986aa985677ca1db89630a2e11"
12SRC_URI[sha256sum] = "71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3" 15SRC_URI[sha256sum] = "71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3"
@@ -20,3 +23,15 @@ inherit autotools
20 23
21# Needed for Debian packaging 24# Needed for Debian packaging
22LEAD_SONAME = "libevent-2.0.so" 25LEAD_SONAME = "libevent-2.0.so"
26
27inherit ptest
28
29DEPENDS = "zlib"
30
31do_install_ptest() {
32 install -d ${D}${PTEST_PATH}/test
33 for file in ${B}/test/.libs/regress ${B}/test/.libs/test*
34 do
35 install -m 0755 $file ${D}${PTEST_PATH}/test
36 done
37}