summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-02-11 14:36:39 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 23:59:36 +0000
commitd8a78f3e3232f5e811c1916ee7781e7bbdecf226 (patch)
tree39d57d2a26d65545283da908da3d55f9a2a2015f /meta/recipes-support
parentaf57b2e7ca7bb17d9cb1552e5df6f04d4a39db82 (diff)
downloadpoky-d8a78f3e3232f5e811c1916ee7781e7bbdecf226.tar.gz
nspr: Compile nspr with tests
1. Compile package tests suite 2. Add tests to -dev rpm as it needs dev libraries (From OE-Core rev: c78db5086091e09e510fcd275918aee0949483c1) Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/nspr/nspr_4.8.9.bb135
1 files changed, 131 insertions, 4 deletions
diff --git a/meta/recipes-support/nspr/nspr_4.8.9.bb b/meta/recipes-support/nspr/nspr_4.8.9.bb
index da324fcaad..74bfe6bf2b 100644
--- a/meta/recipes-support/nspr/nspr_4.8.9.bb
+++ b/meta/recipes-support/nspr/nspr_4.8.9.bb
@@ -5,17 +5,135 @@ LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=40;md5=99d4d7d68bbc4
5 file://Makefile.in;beginline=4;endline=38;md5=c2b512182a334e1bfa1edc4d1c84a298 " 5 file://Makefile.in;beginline=4;endline=38;md5=c2b512182a334e1bfa1edc4d1c84a298 "
6SECTION = "libs/network" 6SECTION = "libs/network"
7 7
8PR = "r0" 8PR = "r1"
9 9
10SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz" 10SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \
11 "
11 12
12SRC_URI += "file://nspr.pc.in " 13SRC_URI += "file://nspr.pc.in"
13 14
14SRC_URI[md5sum] = "60770d45dc08c0f181b22cdfce5be3e8" 15SRC_URI[md5sum] = "60770d45dc08c0f181b22cdfce5be3e8"
15SRC_URI[sha256sum] = "ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86c333e692650207103d1cce" 16SRC_URI[sha256sum] = "ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86c333e692650207103d1cce"
16 17
17S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub" 18S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub"
18 19
20TESTS = "runtests.pl \
21 runtests.sh \
22 accept \
23 acceptread \
24 acceptreademu \
25 affinity \
26 alarm \
27 anonfm \
28 atomic \
29 attach \
30 bigfile \
31 cleanup \
32 cltsrv \
33 concur \
34 cvar \
35 cvar2 \
36 dlltest \
37 dtoa \
38 errcodes \
39 exit \
40 fdcach \
41 fileio \
42 foreign \
43 formattm \
44 fsync \
45 gethost \
46 getproto \
47 i2l \
48 initclk \
49 inrval \
50 instrumt \
51 intrio \
52 intrupt \
53 io_timeout \
54 ioconthr \
55 join \
56 joinkk \
57 joinku \
58 joinuk \
59 joinuu \
60 layer \
61 lazyinit \
62 libfilename \
63 lltest \
64 lock \
65 lockfile \
66 logfile \
67 logger \
68 many_cv \
69 multiwait \
70 nameshm1 \
71 nblayer \
72 nonblock \
73 ntioto \
74 ntoh \
75 op_2long \
76 op_excl \
77 op_filnf \
78 op_filok \
79 op_nofil \
80 parent \
81 parsetm \
82 peek \
83 perf \
84 pipeping \
85 pipeping2 \
86 pipeself \
87 poll_nm \
88 poll_to \
89 pollable \
90 prftest \
91 primblok \
92 provider \
93 prpollml \
94 ranfile \
95 randseed \
96 reinit \
97 rwlocktest \
98 sel_spd \
99 selct_er \
100 selct_nm \
101 selct_to \
102 selintr \
103 sema \
104 semaerr \
105 semaping \
106 sendzlf \
107 server_test \
108 servr_kk \
109 servr_uk \
110 servr_ku \
111 servr_uu \
112 short_thread \
113 sigpipe \
114 socket \
115 sockopt \
116 sockping \
117 sprintf \
118 stack \
119 stdio \
120 str2addr \
121 strod \
122 switch \
123 system \
124 testbit \
125 testfile \
126 threads \
127 timemac \
128 timetest \
129 tpd \
130 udpsrv \
131 vercheck \
132 version \
133 writev \
134 xnotify \
135 zerolen"
136
19inherit autotools 137inherit autotools
20 138
21do_configure() { 139do_configure() {
@@ -26,12 +144,21 @@ do_compile_prepend() {
26 oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export 144 oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
27} 145}
28 146
147do_compile_append() {
148 oe_runmake -C pr/tests
149}
150
29do_install_append() { 151do_install_append() {
30 install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc 152 install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc
31 sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc 153 sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
32 sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc 154 sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
33 sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc 155 sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
34 sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc 156 sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
157 cd ${S}/pr/tests
158 mkdir -p ${D}${libdir}/nspr/tests
159 install -m 0755 ${TESTS} ${D}${libdir}/nspr/tests
35} 160}
36 161
37 162FILES_${PN} = ${bindir}/*
163FILES_${PN}-dev += "${libdir}/nspr/tests/*"
164FILES_${PN}-dbg += "${libdir}/nspr/tests/.debug/*"