Closed Bug 95677 Opened 25 years ago Closed 24 years ago

update urltest.cpp

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.5

People

(Reporter: andreas.otte, Assigned: andreas.otte)

Details

(Whiteboard: seeking r,sr)

Attachments

(3 files, 4 obsolete files)

urltest needs an overhaul ...
urltest.cpp should be updated to the latest changes in urlparsing. Also some more tests should be added.
Status: NEW → ASSIGNED
Attached patch patch to bring urltest uptodate (obsolete) — Splinter Review
I changed the format of urlparse.dat to include the testurl and the expected results with -std and without. Also urlparse.dat contains some more tests, especially file url tests, but they are only for a unix like OS. For that reason there is now a urlparse_win.dat which gets installed for windows, which also contains some windows specific file url tests. Maybe someone can do a mac version?
I think bbaetz is assigned this in our QA group, for the dozen or so business days he is remaining here. I expect I will take this over when he leaves b/c get the URL releated stuff as blackbox tester.
I haven't been working on the url parser...
You can check on the options of urltest and see if it fits your criteria. Some examples: urltest -std -file urltest.dat checks the testcases in the file with calling the nsStdURLParser urltest -file urlparse.dat checks the testcases in the file while really creating the URIs, sometimes using different urlparsers. urltest -abs x x is irrelevant, as long as there is no base url the internal relative urls tests are executed urltest http://foo/bar parses the absolute url into its components urltest http://foo/bar -abs bar2 Resolves the base url and the relative path to a new url.
This version works with urltest -abs without parameter and executes the relative url test. It also counts the failed relative tests and returns a correct error code for all tests so that it can be used in shell scripts to check the result of the tests.
Whiteboard: seeking r,sr
Target Milestone: --- → mozilla0.9.4
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Attached patch better version (obsolete) — Splinter Review
For the new version I included the base url into the array of relative url tests which now allows different base urls. Added a test to check parsing of params inside directory.
Attached patch updated patchSplinter Review
The last three attachments contain the whole update to urltest. Now there is urlparse.dat for generic urls and urlparse_unx.dat and urltest_win.dat for unix/windows specific file urls. Mac stuff still missing.
looks fine. I assume that you tested it and stuff. r=me. darin can you sr.
Yes I did some tests :-), it's in my tree for months now. I just didn't like it anymore to discuss with people output of urltest which nobody could verify or reproduce. I will ask Conrad for a file with mac file urls. I the future we might have to change some of the test urls, that depends on where we go with UNC support.
Attachment #46784 - Attachment is obsolete: true
Attachment #46467 - Attachment is obsolete: true
Attachment #46117 - Attachment is obsolete: true
Attachment #46115 - Attachment is obsolete: true
Comment on attachment 48617 [details] [diff] [review] updated patch sr=darin
Attachment #48617 - Flags: superreview+
checked in
closing bug ...
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: