47 Commits

Author SHA1 Message Date
bbaetz%student.usyd.edu.au
c61d5aa145 Bug 130254 - Template params don't have to exist, since they may be
subject to interpolation. Ignore names with $ in them as a workaround
r=myk x 2


git-svn-id: svn://10.0.0.236/trunk@116391 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 13:33:55 +00:00
jake%acutex.net
1b0baad92a Update the test to use the same basic format as the handling code from globals.pl
git-svn-id: svn://10.0.0.236/trunk@114406 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 19:24:05 +00:00
justdave%syndicomm.com
c148fadef8 Fix for bug 108982: enable taint mode for all user-facing CGI files.
Patch by Brad Baetz <bbaetz@student.usyd.edu.au>
r= jake, justdave


git-svn-id: svn://10.0.0.236/trunk@112490 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-20 01:44:52 +00:00
dkl%redhat.com
8d6ec47425 Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl
git-svn-id: svn://10.0.0.236/trunk@112436 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 16:50:08 +00:00
zach%zachlipton.com
d10de70251 Additional fix for bug 112914: "Test should not cat $file" Previous
patch fixed the problem, but this patch stops once it finds strict so
it will not take as long to run.

Patch by ddkilzer@theracingworld.com. R=zach@zachlipton.com though review
is not required for tests.


git-svn-id: svn://10.0.0.236/trunk@111930 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 03:53:18 +00:00
jake%acutex.net
00a0bd35b2 Bug 112914 - This test was relying on the existance of the unix "cat" command instead of using perl's standard open() function. This caused a test failed when running the tinderbox script on win32.
git-svn-id: svn://10.0.0.236/trunk@111359 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-04 16:04:09 +00:00
jake%acutex.net
e0604e6a44 Get the file list of files to scan for templates from Support::Files instead of glob('*')
git-svn-id: svn://10.0.0.236/trunk@109381 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 21:49:47 +00:00
zach%zachlipton.com
0d8c3fd7a1 Fix the double testing of .pm files.
No review needed for tests at this time.


git-svn-id: svn://10.0.0.236/trunk@108382 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 17:29:06 +00:00
jake%acutex.net
ff3e46489b We don't really need to look for fragments that are pulled in by [% INCLUDE %] or [% PROCESS %]. While removing this code bit doesn't allow us to seperatly check that those fragments exist and compile, they'll be checked atomatically when the the template that wants them is run through the process() routine by the 004template.t test. This issue was raised because bug 98707 introduced a [% BLOCK %] element and the syntax for using that is the same as for including a template fragment.
git-svn-id: svn://10.0.0.236/trunk@108008 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 03:44:07 +00:00
zach%zachlipton.com
a96de0e001 Have the tests test .pm files as well, yes this creates bustage, this is
intentional!

No review needed for tests at this time.


git-svn-id: svn://10.0.0.236/trunk@106772 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 01:06:31 +00:00
jake%acutex.net
be3ee559e5 A few enhancements to the template test:
* If there's a compilation error, report what it is
 * Don't try to compile a template if it doesn't exist
   - We already tested for that and issued an ERROR
 * Define the 'url' FILTER


git-svn-id: svn://10.0.0.236/trunk@106481 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-27 15:27:31 +00:00
jake%acutex.net
e8bbc7ef2a Check templates for tabs, also.
git-svn-id: svn://10.0.0.236/trunk@106358 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-26 13:21:38 +00:00
jake%acutex.net
f6426c6f03 Don't rely on the TEST_VERBOSE environment variable (no longer exported from runtests.sh) and instead print to the TESTOUT file handle pulled in from Test::More. This will allow the testing backend to check for verbosity rather than having to handle it in the .t files.
git-svn-id: svn://10.0.0.236/trunk@106182 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 18:41:53 +00:00
jake%acutex.net
5f73a3f4db Bug 106424 - We weren't going orange on warnings such as "used only once". This script now properly outputs the --WARNING and fails on such a condition.
git-svn-id: svn://10.0.0.236/trunk@106166 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 13:29:49 +00:00
jake%acutex.net
457d72aeff Bug 103664 - Tests should "use strict;" and not contain any tabs. We should also use the TEST_VERBOSE environment variable instead of VERBOSE.
Patch by David D. Kilzer <ddkilzer@theracingworld.com>
Additional edits by myself to add the emacs mode line.  Also, the change to runtests.sh was done by me.


git-svn-id: svn://10.0.0.236/trunk@105842 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 22:39:51 +00:00
justdave%syndicomm.com
faaffb8eec yet another meaningless whitespace change to test tinderbox with
git-svn-id: svn://10.0.0.236/trunk@105767 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 13:03:52 +00:00
justdave%syndicomm.com
ed3ed56299 another useless whitespace change to test tinderbox with
git-svn-id: svn://10.0.0.236/trunk@105758 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 06:19:52 +00:00
justdave%syndicomm.com
ad30940b5e whitespace change to test tinderbox again.
git-svn-id: svn://10.0.0.236/trunk@105754 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 05:33:23 +00:00
justdave%syndicomm.com
d8d8ecf9f8 whitespace change to do a test checkin to see how tinderbox reacts
git-svn-id: svn://10.0.0.236/trunk@105750 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 04:36:19 +00:00
jake%acutex.net
c61edb13da Tabs are not allowed in Bugzilla source... if we find one, issue a warning.
No review needed for tests at this time. NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@105346 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-13 01:44:06 +00:00
jake%acutex.net
f7494556d7 If a template doesn't exist, this should be considered a compile failure.
No review needed for tests at this time. NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@105280 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-12 20:35:37 +00:00
jake%acutex.net
5a2be9a074 It's also possible to PROCESS another attachment fragment, not just INCLUDE.
No review needed for tests at this time. NOT PART OF BUILD.


git-svn-id: svn://10.0.0.236/trunk@104924 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-09 19:14:59 +00:00
jake%acutex.net
351aff7b88 Allow compile tests for files that run in taint mode
No review needed for tests at this time. NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@104751 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-06 23:22:48 +00:00
jake%acutex.net
1ee80bca07 We also need to look for templates that are INCLUDEd in other templates.
No review needed for tests at this time. NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@104747 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-06 21:37:22 +00:00
jake%acutex.net
80835a0679 Test that scans Bugzilla's code looking for used templates then checks to make sure that:
a) All the required templates exist
 b) They all have good syntax

No review needed for tests at this time. NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@104740 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-06 18:59:36 +00:00
zach%zachlipton.com
b20d770736 Fixing issue where excluded files aren't excluded if they end in .pl or
.cgi.


git-svn-id: svn://10.0.0.236/trunk@104720 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-06 03:49:06 +00:00
zach%zachlipton.com
a045f6a3ce Don't test importxml.pl since you need XML::Parser which is not required,
creating a false fail.

No review needed for tests. NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@104718 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-06 03:25:43 +00:00
zach%zachlipton.com
ed06973963 Get rid of our which causes errors on 5.005.
No review needed for tests at this time. NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@104711 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-06 01:23:38 +00:00
zach%zachlipton.com
c3991b060c Renaming *.t to be 00*.t to solve any sorting issues down the road as per
bug 97976.

No review required for tests at this time. NOT_PART_OF_BUILD


git-svn-id: svn://10.0.0.236/trunk@103570 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-23 04:08:44 +00:00
zach%zachlipton.com
d3d55e6e94 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@103569 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-23 04:02:19 +00:00
zach%zachlipton.com
be39f40d3c Fix to make the tests generate the list of files to test instead of having to update the list manually whenever a file is added
or removed. The main logic is in t/Support/Files.pm, changes to the test files are needed to allow it to function properly.

NOT_PART_OF_BUILD. No review needed for tests at this time.


git-svn-id: svn://10.0.0.236/trunk@102988 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-16 18:35:18 +00:00
zach%zachlipton.com
c98ca09634 Make this file test for exec calls in addition to system calls that are
one-argument and are therefore insecure.

NOT_PART_OF_BUILD, no review needed.


git-svn-id: svn://10.0.0.236/trunk@102986 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-16 17:52:19 +00:00
zach%zachlipton.com
ca5d6d78c2 Oops. Forgot to check this is.
git-svn-id: svn://10.0.0.236/trunk@102621 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:48:15 +00:00
zach%zachlipton.com
ab18280466 Adding a test for safe system and exec calls. Part of this code by Dave.
git-svn-id: svn://10.0.0.236/trunk@102254 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:43:25 +00:00
zach%zachlipton.com
3254c8a684 Add a little 1; to the end of this.
git-svn-id: svn://10.0.0.236/trunk@102201 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 04:28:24 +00:00
zach%zachlipton.com
34e0aa80c0 Actually make the strict checking work.
git-svn-id: svn://10.0.0.236/trunk@102197 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 22:11:43 +00:00
zach%zachlipton.com
845e5fbbee add tests for use strict;
git-svn-id: svn://10.0.0.236/trunk@102196 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 22:04:09 +00:00
zach%zachlipton.com
90cc2fe587 Enforce -w. This file will also be used to enforce use strict;
git-svn-id: svn://10.0.0.236/trunk@102195 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 21:43:22 +00:00
zach%zachlipton.com
9f27644a48 Rename 1.t to 1compile.t as per bug 97976.
git-svn-id: svn://10.0.0.236/trunk@102193 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 20:17:40 +00:00
zach%zachlipton.com
7c0be6c517 Remove processmail from the list. It was causing problems with taint.
git-svn-id: svn://10.0.0.236/trunk@102192 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 19:39:37 +00:00
zach%zachlipton.com
488ccb60b0 Ok, really this time. This should work :)
git-svn-id: svn://10.0.0.236/trunk@102190 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 19:26:58 +00:00
zach%zachlipton.com
18717d4966 Backout of this to get things back to normal
git-svn-id: svn://10.0.0.236/trunk@102189 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 18:50:56 +00:00
zach%zachlipton.com
7a86f27c8a Use Support::Files for the test items.
No review needed at this time for tests as per Dave.


git-svn-id: svn://10.0.0.236/trunk@102188 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 18:35:19 +00:00
zach%zachlipton.com
9dd9a3fee4 Addition of Files.pm which will be used shortly by 1.t (soon to be 1compile.t) which contains the list of files to test. This is important so that we can bring it into other tests which check files for content, etc...
No review required for tests as of now as per Dave.


git-svn-id: svn://10.0.0.236/trunk@102187 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 18:33:03 +00:00
zach%zachlipton.com
b82047c7b9 Fix for bug 98024: t/1.t should use $^X instead of hard-coded path to perl.
Patch by ddkilzer@theracingworld.com (David D. Kilzer, ddk). Review by Zach Lipton (zach@zachlipton.com) no 2nd review required.


git-svn-id: svn://10.0.0.236/trunk@102186 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 17:58:53 +00:00
justdave%syndicomm.com
ce6d26e5d3 Added a --verbose option to runtests.sh that the tinderbox scripts can use to get all the warnings and errors and whatnot into the build log. Also corrected several syntax and logic errors in the 1.t test file.
git-svn-id: svn://10.0.0.236/trunk@102139 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 03:06:15 +00:00
zach%zachlipton.com
cfad5a114f Adding runtests.sh and 1.t to start the testing suite. No bug has been
filed on this issue. NOT_PART_OF_BUILD.


git-svn-id: svn://10.0.0.236/trunk@102086 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 17:41:38 +00:00