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 00b79f6330..7feec41d62 100644
--- a/meta-oe/recipes-support/neon/neon_0.30.2.bb
+++ b/meta-oe/recipes-support/neon/neon_0.30.2.bb
@@ -7,12 +7,13 @@ LIC_FILES_CHKSUM = "file://src/COPYING.LIB;md5=f30a9716ef3762e3467a2f62bf790f0a
7 7
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://run-ptest \
10 " 11 "
11 12
12SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41" 13SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41"
13SRC_URI[sha256sum] = "db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca" 14SRC_URI[sha256sum] = "db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca"
14 15
15inherit autotools binconfig-disabled lib_package pkgconfig 16inherit autotools binconfig-disabled lib_package pkgconfig ptest
16 17
17# Enable gnutls or openssl, not both 18# Enable gnutls or openssl, not both
18PACKAGECONFIG ?= "expat gnutls libproxy webdav zlib" 19PACKAGECONFIG ?= "expat gnutls libproxy webdav zlib"
@@ -33,6 +34,18 @@ do_compile_append() {
33 oe_runmake -C test 34 oe_runmake -C test
34} 35}
35 36
37do_install_ptest(){
38 BASIC_TESTS="auth basic redirect request session socket string-tests \
39 stubs uri-tests util-tests"
40 DAV_TESTS="acl3744 lock oldacl props xml xmlreq"
41 mkdir "${D}${PTEST_PATH}/test"
42 for i in ${BASIC_TESTS} ${DAV_TESTS}
43 do
44 install -m 0755 "${B}/test/${i}" \
45 "${D}${PTEST_PATH}/test"
46 done
47}
48
36BINCONFIG = "${bindir}/neon-config" 49BINCONFIG = "${bindir}/neon-config"
37 50
38BBCLASSEXTEND = "native" 51BBCLASSEXTEND = "native"