Open Bug 370340 Opened 19 years ago Updated 3 years ago

tests in nsprpub need "make check" support

Categories

(NSPR :: NSPR, defect)

x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: ray, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

There are 150+ tests in the nsprpub directories. But they must be manually built and run. There is a "runtests.sh" script, but the way to do this is with a "check" target in make. This is the way the buildbot-based test systems will be interacting with these tests. The make target should be set up so that any error in the tests causes the make to return a non-zero value.
Attached patch patch for Makefile support (obsolete) — Splinter Review
I have not this before. I tried this on my intel Mac. I cannot tell about Win and Linux. A "make check" in the top-level directoy now builds and runs the tests.
Attachment #259566 - Flags: review?(wtchang)
Sorry for my ungrammaticalness. It was late at night when I put this patch in. What I was trying to say is that I made it so that a 'make check' in the nsprpub directory will build and run the tests. I assume that this is what is required for the tests to be invoked by the test builds. I have included a check in the runtests.ksh file to ensure that this does not get run on the Mac, since it does not seem to work. Is it necessary for both of these nearly identical scripts to exist?
Attachment #259566 - Attachment is obsolete: true
Attachment #259600 - Flags: review?(wtchang)
Attachment #259566 - Flags: review?(wtchang)

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: