Closed Bug 211188 Opened 21 years ago Closed 20 years ago

Test for any #! lines that are not /usr/bin/perl

Categories

(Bugzilla :: Testing Suite, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: zach, Assigned: Wurblzap)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Spinoff from bug 211127: We need to add something to goodperl.t to look for shebang lines that point to /usr/bonsaitools/bin/perl or another other than /usr/bin/perl. At the same time, we should be careful since admins may modify the shebang line of every cgi and we don't want massive test failure.
if they modify the rest of the files, they can modify the test, too. We can point this out in the docs where we talk about modifying the #! line, too, and point out that it's a good test to run to make sure they got all of them, too :)
In distribution file bugzilla-2.16.5.tar.gz all she-bang lines pointed to /usr/bonsaitools/bin/perl , but most Linux distributions have Perl in /usr/bin/perl. Before a distribution those can be easily changed to more common Perl location.
Attached patch Patch (obsolete) — Splinter Review
Attachment #157139 - Flags: review?
Comment on attachment 157139 [details] [diff] [review] Patch There is redundancy regarding the location of the perl script. Dave said in item1 something about admins changing this location in the testing suite as well, so we should make this easy for them. I'd prefer to have a variable or something like that containing '/usr/bin/perl', and use that instead of hard-coding '/usr/bin/perl' each time we need it. It removes redundancy as well. Or redesign the code so that '/usr/bin/perl' appears only once in the 002 test :)
Attachment #157139 - Flags: review? → review-
OS: MacOS X → All
Hardware: Macintosh → All
Attached patch Patch v1.2Splinter Review
(In reply to comment #4) > Or redesign the code so that '/usr/bin/perl' appears only once in the 002 test > :) Ok, did that.
Attachment #157139 - Attachment is obsolete: true
Attachment #157312 - Flags: review?
Attachment #157312 - Flags: review? → review+
Assignee: zach → marcschum
Flags: approval?
Flags: approval2.18?
Status: NEW → ASSIGNED
Ideally a new patch should be attached for committing with the updates. Thanks :)
kiko: what exactly are you missing? Attachment 157312 [details] [diff] is up to date, right?
Waiting for Christian to respond before approving.
(In reply to comment #6) > Ideally a new patch should be attached for committing with the updates. Thanks kiko: I hope you don't mind me ccing you -- was this meant for some other bug, perhaps?
Sorry, it was meant for another bug, ignore me :)
Flags: documentation?
Flags: documentation2.18?
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval+
Target Milestone: --- → Bugzilla 2.18
Checking in t/002goodperl.t; /cvsroot/mozilla/webtools/bugzilla/t/002goodperl.t,v <-- 002goodperl.t new revision: 1.15; previous revision: 1.14 done Checking in t/002goodperl.t; /cvsroot/mozilla/webtools/bugzilla/t/002goodperl.t,v <-- 002goodperl.t new revision: 1.13.2.2; previous revision: 1.13.2.1 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Blocks: 278336
Bug 278336 has been added to incorporate documentation changes for this enhancement.
No longer blocks: 278336
Flags: documentation?
Flags: documentation2.18?
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: