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)

3.32
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

Attachments

(1 file, 3 obsolete files)

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?
Depends on: 1385039
Attached patch 1385061-v1.patch (obsolete) — Splinter Review
Attachment #8891035 - Flags: review?(franziskuskiefer)
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)

I'll try to follow up

Assignee: nobody → kaie
QA Contact: mwobensmith
Attached patch 1385061-v2.patch (obsolete) — Splinter Review
Attachment #8891035 - Attachment is obsolete: true
Attachment #9091060 - Flags: review?(jjones)
Attached patch 1385061-v3.patch (obsolete) — Splinter Review

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)
Blocks: 1385039
No longer depends on: 1385039
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+
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-
Summary: Building NSS should build the NSPR tests, too → Build NSPR tests with NSS make; Add gyp parameters to build/run NSPR tests
Attached patch 1385061-v4.patchSplinter Review

separate options for building and running NSPR tests

Attachment #9091428 - Flags: review?(jjones)

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 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+
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.

Attachment

General

Created:
Updated:
Size: