Closed Bug 409284 Opened 17 years ago Closed 17 years ago

bloatdiff.pl should catch basic errors

Categories

(Webtools Graveyard :: Tinderbox, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: coop, Assigned: coop)

References

Details

Attachments

(1 file)

bloatdiff.pl doesn't do any checking on the command-line args it's passed, so it merrily goes about its calculations even when it has no hope of success. 

Patch forthcoming.
Also:
- comment out unused LABEL var
- add usage() sub which essentially spits out the old file header
- add some usage hints on failure
Attachment #294098 - Flags: review?(nrthomas)
Comment on attachment 294098 [details] [diff] [review]
Check that supplied files exist and are not empty.

>Index: bloatdiff.pl
...
>+# bloatdiff.pl - munges the output from
> #   XPCOM_MEM_BLOAT_LOG=1; mozilla-bin -f bloaturls.txt

I wonder if this is still true - tinderbox does 
  .../obj/dist/bin/firefox-bin -P default resource:///res/bloatcycle.html
for Firefox, Seamonkey, and TestGtkEmbed, otherwise falls back to the -f method.

r+ for the rest.
Attachment #294098 - Flags: review?(nrthomas) → review+
(In reply to comment #2)

> I wonder if this is still true - tinderbox does 
>   .../obj/dist/bin/firefox-bin -P default resource:///res/bloatcycle.html
> for Firefox, Seamonkey, and TestGtkEmbed, otherwise falls back to the -f
> method.

While not strictly untrue, certainly out-of-date. I just wrapped the existing file header here into a usage() sub, but you're right. I should update it with info about how the script is currently used.
Checking in bloatdiff.pl;
/cvsroot/mozilla/tools/tinderbox/bloatdiff.pl,v  <--  bloatdiff.pl
new revision: 1.21; previous revision: 1.20
done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Depends on: 416700
Component: Tinderbox Configuration → Tinderbox
Product: mozilla.org → Webtools
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: