Closed
Bug 1385061
Opened 8 years ago
Closed 5 years ago
Build NSPR tests with NSS make; Add gyp parameters to build/run NSPR tests
Categories
(NSS :: Test, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
3.47
People
(Reporter: KaiE, Assigned: KaiE)
References
Details
Attachments
(1 file, 3 obsolete files)
5.10 KB,
patch
|
jcj
:
review+
|
Details | Diff | Splinter Review |
NSS already treats NSPR as a subordinate code, and builds NSPR.
Because we don't have a separate NSPR project and no separate NSPR CI infrastructure, the NSS project should feel responsible for testing NSPR, too, see bug 1385039.
Before running the NSPR tests, we obviously need to build them.
Can we change the NSS build to also build the NSPR tests?
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8891035 -
Flags: review?(franziskuskiefer)
Comment 2•8 years ago
|
||
Comment on attachment 8891035 [details] [diff] [review]
1385061-v1.patch
Review of attachment 8891035 [details] [diff] [review]:
-----------------------------------------------------------------
::: coreconf/nspr.sh
@@ +43,2 @@
> run_verbose make -C "$nspr_dir"
> + echo "NSPR [3/4] make tests ..."
This should respect the `--disable-tests` flag from build.sh [1], i.e. don't do this if `--disable-tests` is set.
Actually. Given that this takes a considerable amount of time I think I'd actually prefer to have it disabled by default and only enabled when using something like `--enable-nspr-tests` in build.sh.
[1] https://searchfox.org/nss/rev/a853912c3d9856737a2f5cc2f8d31146f094b063/build.sh#91
Attachment #8891035 -
Flags: review?(franziskuskiefer)
Bulk change per wleung.
Priority: -- → P3
Assignee | ||
Comment 4•5 years ago
|
||
I'll try to follow up
Assignee: nobody → kaie
QA Contact: mwobensmith
Assignee | ||
Comment 5•5 years ago
|
||
Attachment #8891035 -
Attachment is obsolete: true
Attachment #9091060 -
Flags: review?(jjones)
Assignee | ||
Comment 6•5 years ago
|
||
Additional parameter to stop building after NSPR. Helpful for bug 1385039.
Attachment #9091060 -
Attachment is obsolete: true
Attachment #9091060 -
Flags: review?(jjones)
Attachment #9091392 -
Flags: review?(jjones)
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Comment on attachment 9091392 [details] [diff] [review]
1385061-v3.patch
Review of attachment 9091392 [details] [diff] [review]:
-----------------------------------------------------------------
Just the one nit. Otherwise r+.
::: help.txt
@@ +42,5 @@
> --no-zdefs don't set -Wl,-z,defs
> --static create static libraries and use static linking
> --ct-verif build with valgrind for ct-verif
> --nspr force a rebuild of NSPR
> + --nspr-tests when building NSPR also build its tests
ISTM that's "also build and run its tests" every time?
Attachment #9091392 -
Flags: review?(jjones) → review+
Assignee | ||
Comment 8•5 years ago
|
||
Comment on attachment 9091392 [details] [diff] [review]
1385061-v3.patch
You're right. Sorry, I need another revision. I need separate switches for building and running the tests, because building should work, running doesn't yet.
Attachment #9091392 -
Attachment is obsolete: true
Attachment #9091392 -
Flags: review-
Assignee | ||
Updated•5 years ago
|
Summary: Building NSS should build the NSPR tests, too → Build NSPR tests with NSS make; Add gyp parameters to build/run NSPR tests
Assignee | ||
Comment 9•5 years ago
|
||
separate options for building and running NSPR tests
Attachment #9091428 -
Flags: review?(jjones)
Assignee | ||
Comment 10•5 years ago
|
||
J.C.: This link compares the latest patch to the one you had already r+ed.
Thanks in advance:
https://bugzilla.mozilla.org/attachment.cgi?oldid=9091392&action=interdiff&newid=9091428&headers=1
Comment 11•5 years ago
|
||
Comment on attachment 9091428 [details] [diff] [review]
1385061-v4.patch
Review of attachment 9091428 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good now, r=me
Attachment #9091428 -
Flags: review?(jjones) → review+
Assignee | ||
Comment 12•5 years ago
|
||
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.47
You need to log in
before you can comment on or make changes to this bug.
Description
•