diff options
| -rw-r--r-- | meta-oe/recipes-support/neon/neon/run-ptest | 25 | ||||
| -rw-r--r-- | meta-oe/recipes-support/neon/neon_0.30.2.bb | 15 |
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 | |||
| 3 | set -eux | ||
| 4 | |||
| 5 | rm -f debug.log child.log | ||
| 6 | |||
| 7 | ulimit -c unlimited | ||
| 8 | ulimit -t 120 | ||
| 9 | |||
| 10 | cd test | ||
| 11 | echo foobar > foobar.txt | ||
| 12 | |||
| 13 | BASIC_TESTS="auth basic redirect request session socket string-tests \ | ||
| 14 | stubs uri-tests util-tests" | ||
| 15 | DAV_TESTS="acl3744 lock oldacl props xml xmlreq" | ||
| 16 | for t in $BASIC_TESTS $DAV_TESTS | ||
| 17 | do | ||
| 18 | echo "Running $t..." | ||
| 19 | if "./$t" | ||
| 20 | then | ||
| 21 | echo "PASS:$t" | ||
| 22 | else | ||
| 23 | echo "FAIL:$t" | ||
| 24 | fi | ||
| 25 | done | ||
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 | |||
| 8 | SRC_URI = "${DEBIAN_MIRROR}/main/n/neon27/neon27_${PV}.orig.tar.gz \ | 8 | SRC_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 | ||
| 13 | SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41" | 14 | SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41" |
| 14 | SRC_URI[sha256sum] = "db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca" | 15 | SRC_URI[sha256sum] = "db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca" |
| 15 | 16 | ||
| 16 | inherit autotools binconfig-disabled lib_package pkgconfig | 17 | inherit autotools binconfig-disabled lib_package pkgconfig ptest |
| 17 | 18 | ||
| 18 | # Enable gnutls or openssl, not both | 19 | # Enable gnutls or openssl, not both |
| 19 | PACKAGECONFIG ?= "expat gnutls libproxy webdav zlib" | 20 | PACKAGECONFIG ?= "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 | ||
| 38 | do_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 | |||
| 37 | BINCONFIG = "${bindir}/neon-config" | 50 | BINCONFIG = "${bindir}/neon-config" |
| 38 | 51 | ||
| 39 | BBCLASSEXTEND = "native" | 52 | BBCLASSEXTEND = "native" |
