Closed Bug 342551 Opened 18 years ago Closed 16 years ago

Start repository of software update tests

Categories

(Toolkit :: Application Update, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 451085

People

(Reporter: Waldo, Assigned: Waldo)

Details

There exists no centralized source of software update tests, and consequently anyone who wants to do anything with it has to re-construct the appropriate tests from scratch.

There's a small framework which will do some of what we need (HTTP server) in <http://lxr.mozilla.org/mozilla/source/netwerk/test/unit/head_http_server.js>, but it's missing some stuff -- for example, the update service uses nsIncrementalDownload which uses the Range header, and there's no support for dynamically registering locations with the server.  These problems shouldn't be difficult to fix (well, the Range header thing might be interesting), tho, and from anecdotal evidence, there are a fair number of such testcases in private hands which would be useful in a public location for use by other update service hackers.

I unfortunately don't have time to do this now, but I'd like to get something working sometime after 2.0b1 ships.  Getting testcases set up was a pain I'd rather others not have to repeat in the future.
Product: Firefox → Toolkit
Jeff, I've added a bunch of general tests and have been filing bugs for new tests as I think of them (bug 451085 for example)... can this bug be closed now?
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/test/unit/
Now that we have a bunch of tests including tests to verify the applying of mar files I am going to resolve this as duplicate of bug 451085.

If anyone has ideas for additional tests please file them as individual bugs.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.