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 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 | ||
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://run-ptest \ | ||
10 | " | 11 | " |
11 | 12 | ||
12 | SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41" | 13 | SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41" |
13 | SRC_URI[sha256sum] = "db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca" | 14 | SRC_URI[sha256sum] = "db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca" |
14 | 15 | ||
15 | inherit autotools binconfig-disabled lib_package pkgconfig | 16 | inherit autotools binconfig-disabled lib_package pkgconfig ptest |
16 | 17 | ||
17 | # Enable gnutls or openssl, not both | 18 | # Enable gnutls or openssl, not both |
18 | PACKAGECONFIG ?= "expat gnutls libproxy webdav zlib" | 19 | PACKAGECONFIG ?= "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 | ||
37 | do_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 | |||
36 | BINCONFIG = "${bindir}/neon-config" | 49 | BINCONFIG = "${bindir}/neon-config" |
37 | 50 | ||
38 | BBCLASSEXTEND = "native" | 51 | BBCLASSEXTEND = "native" |