summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/neon/neon/run-ptest25
-rw-r--r--meta-oe/recipes-support/neon/neon_0.30.2.bb15
2 files changed, 39 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/neon/neon/run-ptest b/meta-oe/recipes-support/neon/neon/run-ptest
new file mode 100644
index 0000000000..602084a52c
--- /dev/null
+++ b/meta-oe/recipes-support/neon/neon/run-ptest
@@ -0,0 +1,25 @@
1#!/bin/sh
2
3set -eux
4
5rm -f debug.log child.log
6
7ulimit -c unlimited
8ulimit -t 120
9
10cd test
11echo foobar > foobar.txt
12
13BASIC_TESTS="auth basic redirect request session socket string-tests \
14 stubs uri-tests util-tests"
15DAV_TESTS="acl3744 lock oldacl props xml xmlreq"
16for t in $BASIC_TESTS $DAV_TESTS
17do
18 echo "Running $t..."
19 if "./$t"
20 then
21 echo "PASS:$t"
22 else
23 echo "FAIL:$t"
24 fi
25done
diff --git a/meta-oe/recipes-support/neon/neon_0.30.2.bb b/meta-oe/recipes-support/neon/neon_0.30.2.bb
index 63676a98b9..2639c92293 100644
--- a/meta-oe/recipes-support/neon/neon_0.30.2.bb
+++ b/meta-oe/recipes-support/neon/neon_0.30.2.bb
@@ -8,12 +8,13 @@ LIC_FILES_CHKSUM = "file://src/COPYING.LIB;md5=f30a9716ef3762e3467a2f62bf790f0a
8SRC_URI = "${DEBIAN_MIRROR}/main/n/neon27/neon27_${PV}.orig.tar.gz \ 8SRC_URI = "${DEBIAN_MIRROR}/main/n/neon27/neon27_${PV}.orig.tar.gz \
9 file://pkgconfig.patch \ 9 file://pkgconfig.patch \
10 file://fix-package-check-for-libxml2.patch \ 10 file://fix-package-check-for-libxml2.patch \
11 file://run-ptest \
11 " 12 "
12 13
13SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41" 14SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41"
14SRC_URI[sha256sum] = "db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca" 15SRC_URI[sha256sum] = "db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca"
15 16
16inherit autotools binconfig-disabled lib_package pkgconfig 17inherit autotools binconfig-disabled lib_package pkgconfig ptest
17 18
18# Enable gnutls or openssl, not both 19# Enable gnutls or openssl, not both
19PACKAGECONFIG ?= "expat gnutls libproxy webdav zlib" 20PACKAGECONFIG ?= "expat gnutls libproxy webdav zlib"
@@ -34,6 +35,18 @@ do_compile_append() {
34 oe_runmake -C test 35 oe_runmake -C test
35} 36}
36 37
38do_install_ptest(){
39 BASIC_TESTS="auth basic redirect request session socket string-tests \
40 stubs uri-tests util-tests"
41 DAV_TESTS="acl3744 lock oldacl props xml xmlreq"
42 mkdir "${D}${PTEST_PATH}/test"
43 for i in ${BASIC_TESTS} ${DAV_TESTS}
44 do
45 install -m 0755 "${B}/test/${i}" \
46 "${D}${PTEST_PATH}/test"
47 done
48}
49
37BINCONFIG = "${bindir}/neon-config" 50BINCONFIG = "${bindir}/neon-config"
38 51
39BBCLASSEXTEND = "native" 52BBCLASSEXTEND = "native"