Closed
Bug 63228
Opened 25 years ago
Closed 18 years ago
add unit testing to the build system
Categories
(SeaMonkey :: Build Config, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
Future
People
(Reporter: dprice, Assigned: dprice)
References
Details
we want to add a new pass to the build system that will go through and run all
unit tests in the tree. The rule will be called all-tests Once the tests are
hooked into the build system, we can plug them into tinderbox and turn the tree
orange when tests fail. Hopefully it will make life easier when trying to hunt
down regressions.
sample tests can be:
- an executable that exits with 0 as success and non-zero or crash for failure.
A sample would be
all-tests::
TestProgram
- an executable that produces some output. That output is compared to a text
file containting the expected output...
all-tests::
TestProgram | diff -c - expected-output.txt
diff isn't included with the standard windows tools so we may need a script that
will run a program and diff its output. something like...
diffing-test.pl -p 'TestProgram' -e 'expected-output'
- running a script through xpcshell to test various low level com components.
I'm not exactly sure how this will work yet. It will probably look something
like...
all-tests::
diffing-test.pl -p 'xpcshell testscript' -e 'expected-output.txt'
This will be the master bug. Various other bugs will be created for the
individual tasks. This bug will depend on those tasks.
| Assignee | ||
Updated•25 years ago
|
Target Milestone: --- → mozilla0.8
| Assignee | ||
Comment 1•25 years ago
|
||
per chofmann moving past mozilla 1.0
Target Milestone: mozilla0.8 → mozilla1.1
Updated•21 years ago
|
Product: Browser → Seamonkey
Comment 3•18 years ago
|
||
We have |make check| now, as well as a bunch of other unit testing frameworks (mochitest, reftest, etc).
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•