| 1 |
Revision history for Perl module Test::Cmd |
| 2 |
|
| 3 |
1.09 2015-10-25 NEILB |
| 4 |
- README updated with current location of Aegis project. |
| 5 |
Thanks to @SparkeyG for the pull request |
| 6 |
- Updated github repo URL after changing my github username |
| 7 |
- Switched to Dist::Zilla |
| 8 |
|
| 9 |
1.08 2015-01-25 NEILB |
| 10 |
- Documentation improvements from JMATES++. |
| 11 |
|
| 12 |
1.07 2015-01-07 NEILB |
| 13 |
- Linkify external module references. JMATES++ |
| 14 |
- Added Test::Pod as a release test. JMATES++ |
| 15 |
|
| 16 |
1.06 2014-04-09 |
| 17 |
- First non-developer release by NEILB |
| 18 |
- Fixed RT#41504 |
| 19 |
- Fixed RT#92082 |
| 20 |
- Fixed RT#92081 |
| 21 |
- Fixed RT#53619 |
| 22 |
- Noted in the pod that I'm now maintaining it. |
| 23 |
|
| 24 |
1.05_02 2014-04-08 |
| 25 |
- If the constructor failed part way, it would sometimes leave cruft |
| 26 |
behind in TMPDIR. RT#41504 - thanks ANDK. |
| 27 |
|
| 28 |
1.05_01 2014-04-02 |
| 29 |
|
| 30 |
- Specified min perl version 5.6.0 in metadata and in code |
| 31 |
- Moved the modules into lib/Test/ |
| 32 |
- Added PREREQ_PM, TEST_REQUIRES and CONFIGURE_REQUIRES to Makefile.PL |
| 33 |
- Added github repo to metadata and the pod |
| 34 |
- Reformatted Changes file as per CPAN::Changes::Spec |
| 35 |
- Specified license as 'perl' in metadata, to match doc |
| 36 |
- Fixed pod error RT#92082 |
| 37 |
- Pod spelling mistake RT#92081 |
| 38 |
- Clarification in doc for new(), that it returns undef on failure, |
| 39 |
and not false. RT#53619 |
| 40 |
|
| 41 |
1.05 2001-09-07 |
| 42 |
|
| 43 |
- Fix the subdir(), read(), and write() methods to handle |
| 44 |
the case when the first element in an array-reference file |
| 45 |
name is an absolute path name. |
| 46 |
|
| 47 |
- Fix writable() so that it only records errors from chmod() |
| 48 |
on files, not exit with no_result(). |
| 49 |
|
| 50 |
- Doc changes to make some of the variables in the SYNOPSIS |
| 51 |
look like Perl variables. |
| 52 |
|
| 53 |
- Add a Test::Cmd::Common module that sub-classes Test::Cmd to |
| 54 |
provide common exception-handling, eliminating the need for |
| 55 |
everyone to roll their own fail()/no_result() logic for common |
| 56 |
errors. |
| 57 |
|
| 58 |
- Update Test::Cmd documentation to add explicit examples of |
| 59 |
using Test::Cmd in conjunction with Test::Harness, Test::Unit, |
| 60 |
and Aegis. Mention that Test::Cmd::Common is available. |
| 61 |
|
| 62 |
|
| 63 |
1.04 2001-06-16 |
| 64 |
|
| 65 |
- If the run() method is given an explicit 'prog' argument, |
| 66 |
don't use the test environment's 'interpreter' attribute to run |
| 67 |
it. This loses if you're trying to run some other executable |
| 68 |
that isn't in the same scripting language as the program under |
| 69 |
test. |
| 70 |
|
| 71 |
|
| 72 |
1.03 2001-06-11 |
| 73 |
|
| 74 |
- Make specification of an 'interpreter' to the run() method |
| 75 |
independent of whether a 'prog' has been specified. |
| 76 |
|
| 77 |
- Actually store the absolute path to a workdir specified as a |
| 78 |
relative path, as advertised. |
| 79 |
(Thanks to Jonathan Ross <[email protected]> for |
| 80 |
finding this bug and contributing a patch.) |
| 81 |
|
| 82 |
|
| 83 |
1.02 2001-05-26 |
| 84 |
|
| 85 |
- Small fix to make match() backwards compatible to Perl 5.003. |
| 86 |
|
| 87 |
- Add diff_exact() and diff_regex() methods for returning |
| 88 |
UNIX diff(1)-like output from file comparisons. |
| 89 |
|
| 90 |
- Accomodate $TMPDIR specifications that vary from Cwd::cwd() |
| 91 |
due to symbolic links or omission of NT drive letters. |
| 92 |
|
| 93 |
|
| 94 |
1.01 200-08-29 |
| 95 |
|
| 96 |
- Add a match_exact() method for non-regex matches. |
| 97 |
|
| 98 |
- Change the name of the match() method to match_regex(). |
| 99 |
|
| 100 |
- Add a new match() method that calls a registered |
| 101 |
line-matching subroutine to do the match. By default, |
| 102 |
this is match_regex(), so the external interface stays |
| 103 |
backwards-compatible. |
| 104 |
|
| 105 |
- Add a match_sub() method that allows an arbitrary |
| 106 |
line-matching subroutine to be registered. |
| 107 |
|
| 108 |
- EXPORT_OK the match_exact() and match_regex() methods |
| 109 |
to make it easier to register them. |
| 110 |
|
| 111 |
|
| 112 |
1.00 2000-05-26 |
| 113 |
|
| 114 |
- The early versions have been out there long enough, |
| 115 |
so promote the version number to 1.00. |
| 116 |
|
| 117 |
- White space cleanup. |
| 118 |
|
| 119 |
- Small fixes for Perl 5.003: put quotes around hash index |
| 120 |
strings; don't use "my" on the same line as "foreach". |
| 121 |
|
| 122 |
- Add copyright statements to appropriate files. |
| 123 |
|
| 124 |
|
| 125 |
0.04 2000-02-09 |
| 126 |
|
| 127 |
- Removed unnecessary t0001a.pl file (internal testing glue |
| 128 |
for the change management system). |
| 129 |
|
| 130 |
- In the run() method, add the ability to pipe input into a |
| 131 |
command. |
| 132 |
|
| 133 |
- Add a match() method that matches input lines one-for-one |
| 134 |
against an equal number of of regular expressions. |
| 135 |
|
| 136 |
- Have the run() method support 'prog' and 'interpreter' arguments, |
| 137 |
for one-shot execution of a program. |
| 138 |
|
| 139 |
- Remove direct exception throws (calls to $self->no_result) |
| 140 |
by the run() and workdir() methods. Exceptions should be |
| 141 |
handled by the test itself or a subclass specific to the |
| 142 |
program under test. |
| 143 |
|
| 144 |
|
| 145 |
0.03 2000-02-01 |
| 146 |
|
| 147 |
- Minor white space cleanup. |
| 148 |
|
| 149 |
- Allow the write() method to take an absolute path name. |
| 150 |
|
| 151 |
- Documentation cleanup. |
| 152 |
|
| 153 |
- Add a read() method as a companion to write(). |
| 154 |
|
| 155 |
- Directories were still removed on fail/no result if |
| 156 |
PRESERVE_FAIL and PRESERVE_NO_RESULT were set. Fixed. |
| 157 |
|
| 158 |
- Where possible, use array assignment, not shift, for |
| 159 |
method arguments. |
| 160 |
|
| 161 |
|
| 162 |
0.02 2000-01-13 |
| 163 |
|
| 164 |
- Add a string() method to arrange for printing info about |
| 165 |
specific functionality under test upon failure or no result. |
| 166 |
|
| 167 |
- Add a basename() method to return the basename of the |
| 168 |
program under test (the prog() method returns the full path). |
| 169 |
|
| 170 |
- Add a workpath() method to catfile its arguments to the |
| 171 |
end of the temporary working directory; this pushes more |
| 172 |
of the OS-dependent gunk into the module. |
| 173 |
|
| 174 |
- Allow the write() method to take an array reference as a |
| 175 |
file name argument, in which case the arguments are |
| 176 |
concatenated using File::Spec->catfile(). |
| 177 |
|
| 178 |
- Allow the subdir() method to take a array references as |
| 179 |
arguments, in which case the elements are concatenated |
| 180 |
using File::Spec->catfile(). |
| 181 |
|
| 182 |
- Change the run() method to take named-keyword arguments |
| 183 |
like $test->run(args => '1 2 3', chdir => 'sub/dir') |
| 184 |
instead of the old positional arguments. |
| 185 |
|
| 186 |
- Add $caller arguments to the fail() and no_result() |
| 187 |
methods which specify how many levels back to print a |
| 188 |
trace of the exiting line. This allows nested packages |
| 189 |
to get back to the original caller. |
| 190 |
|
| 191 |
|
| 192 |
0.01 1999-11-11 |
| 193 |
|
| 194 |
- Original version; created by h2xs 1.19 |
| 195 |
- Not released to CPAN |
| 196 |
|