Closed
Bug 143155
Opened 24 years ago
Closed 23 years ago
Make runtests.sh be a .pl
Categories
(Bugzilla :: Testing Suite, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: zach, Assigned: xor)
References
Details
Attachments
(2 files, 3 obsolete files)
runtests.sh needs to be a perl script so it works under windows and so
we can do other special stuff easier later on. This is also needed for
newinstall.
Comment 1•24 years ago
|
||
Are you going to tackle this soonish? I need to have the blocked bug 142744 done
fairly soon for my own uses, so if you don't have the time to do this soon, I
can take a look at it.
| Reporter | ||
Comment 2•24 years ago
|
||
I'll try to do this tonight, I leave for japan tomorrow and I will be emailess
until the 31st so if I don't do it tonight, it's fair game
Comment 3•24 years ago
|
||
Gotcha. :-) I'll do it if you won't have the time. Have a nice trip!
Updated•24 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.18
Comment 6•24 years ago
|
||
Unfortunately I can't run the test suite on Unix right now so I don't know if
this does the job there, but at least on Win32 this runs all the tests. It
outputs a horrendous amount of errors though, but I think that's the essence of
bug 142744. I don't think tainting is relevant here?
Two little comments: The patch should use four-space indents and checksetup.pl
should be patched for the filename change.
Are you going to do this? If so, please reassign the bug to yourself. If not,
say so and I'll do the fixes.
Comment 7•24 years ago
|
||
xor@ivwnet.com:
Are you going to continue working on this patch? Please see my previous comment.
Comment 8•24 years ago
|
||
Reassigning to patch author per discussion in mail.
Assignee: jouni → xor
Status: ASSIGNED → NEW
Comment 10•24 years ago
|
||
Okay, fixed known issues.
Attachment #83016 -
Attachment is obsolete: true
Comment 11•24 years ago
|
||
The latest version is fine by me, too. Let's hope this gets some review
attention soon.
Zach being away for the time being, I'll CC some of the other core folks for
reviews and possible comments.
Comment 12•24 years ago
|
||
Comment on attachment 83519 [details]
indented
>#!/usr/bonsaitools/bin/perl -w
># -*- Mode: perl; indent-tabs-mode: nil -*-
># ***** BEGIN LICENSE BLOCK *****
We tend not to use the license block form in Bugzilla.
Just copy the license from another Bugzilla file.
># Make it harder for us to do dangerous things in Perl.
>use diagnostics;
>use strict;
>
>use Test::Harness qw(&runtests $verbose);
>
>$verbose=0;
Nit: $verbose = 0;
>foreach (@ARGV) {
> if (/^--verbose$/) {
> $verbose = 1;
> last;
> }
>}
Why "last"? It'll break things if another if() clause is added. Also,
can we have "-v" as a synonym for --verbose, please?
>runtests glob "t/*.t";
Can we use brackets here? And does the glob guarantee to return them in
numerical order?
Other than that, this is great. I had no idea it was so simple.
Gerv
Attachment #83519 -
Flags: review-
Comment 13•24 years ago
|
||
POSIX standard says the result of a glob is alphanumerically sorted. And Perl
glob does it's job according to the standard - at least what they told me in
the docs some time ago ;-). So I guess that one's ok.
Comment 14•24 years ago
|
||
> We tend not to use the license block form in Bugzilla.
Modified the one from checksetup.pl. Hope it's right this time. Can we add
something to the Developer's Guide on current practice regarding licenses? I
hate having to guess when it comes to legal stuff...
> Nit: $verbose = 0;
Oh, duh! Thought I'd fixed that. Must have been just the =1 case. :P
> Why "last"? It'll break things if another if() clause is added. Also,
> can we have "-v" as a synonym for --verbose, please?
It allows early exit from the loop, so it's a good thing. If somebody else
needs the change later, they can make it. Synonym added.
> Can we use brackets here? And does the glob guarantee to return them in
> numerical order?
Parens added, and Jouni has addressed the ordering issue better than I could.
Attachment #83519 -
Attachment is obsolete: true
Comment 15•24 years ago
|
||
Comment on attachment 83766 [details]
updated
r=gerv.
Gerv
Attachment #83766 -
Flags: review+
Comment 16•24 years ago
|
||
Sorry to spam you again. This should fix the ignorant bug I introduced in the
last version. Assuming r= still applies.
Attachment #83766 -
Attachment is obsolete: true
Attachment #83766 -
Flags: review+ → review-
Attachment #83799 -
Flags: review+
Comment 17•24 years ago
|
||
Comment on attachment 83518 [details] [diff] [review]
name changes
r=jouni on the checksetup.pl changes.
Attachment #83518 -
Flags: review+
Comment 18•24 years ago
|
||
Comment on attachment 83799 [details]
smarter match
r=jouni
Still nothing to complain about. I've used this for its lifetime (both on Linux
and Win32) and it works fine. This should be ready for checkin as soon as
someone gives the minor checksetup.pl change patch a second r=.
Attachment #83799 -
Flags: review+
Comment 19•24 years ago
|
||
Comment on attachment 83518 [details] [diff] [review]
name changes
r=gerv. This sort of thing, you can give 2xr= to :-)
Gerv
Attachment #83518 -
Flags: review+
Comment 20•24 years ago
|
||
I'll post to reviewers@ to find out the implications of this before checkin.
| Reporter | ||
Comment 21•24 years ago
|
||
This is ready to go with review and all. I'm inclined to check this in, but
before we do so, I want to clarify one thing: do we "cvs remove" runtests.sh or
do we change runtests.sh to a little wrapper script that does something like:
"/usr/bonsaitools/bin/perl runtests.pl" ?
Comment 22•24 years ago
|
||
cvs remove it. Let's avoid backwards compatibility cruft where we can. runtests
is used only be developers; they can cope.
Gerv
| Reporter | ||
Comment 23•24 years ago
|
||
If we cvs remove runtests.sh, it will break tinderbox so we should probably
do this when someone is around who can change the tinderbox
commands to run .pl
Comment 24•24 years ago
|
||
We don't have to cvs remove runtests.sh at exactly the same moment we check in
runtests.pl. There can be a migration period. But we should remove runtests.sh
eventually.
Gerv
Comment 25•24 years ago
|
||
What gerv said. Give it a week, at most.
| Reporter | ||
Comment 26•23 years ago
|
||
Patch is in, let's get tinderbox changed so I can cvs remove the .sh file
please. Dave?
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•