17 Commits

Author SHA1 Message Date
Johan Holmberg
90df8d6b76 Add directory of CMDTEST_*.rb files to LOAD_PATH.
Makes it easy to "require" support files in the CMDTEST_*.rb files.
2011-10-12 22:14:11 +02:00
Johan Holmberg
a0663562f0 Avoid setting ENV["PATH"] in cmdtest itself.
Instead set PATH in the shell scripts used to execute
the actual commands to test.
2011-09-21 23:38:21 +02:00
Johan Holmberg
02270c3aa9 Let "orig_env_path" return a copy of the path,
so users of the method can modify the value.
2011-08-28 20:53:32 +02:00
Johan Holmberg
dc36a1e023 update copyright year 2010-09-03 09:05:21 +02:00
Johan Holmberg
43dd9acebf Added "set_path" method. Cleanup of PATH handling. 2009-11-19 00:14:22 +01:00
Johan Holmberg
25f3e618ad Set exit code at errors. Add --no-exit-code to disable. 2009-11-18 23:04:06 +01:00
Johan Holmberg
ddfb52d68c search for test files in 'test/' directory too 2009-05-12 19:01:10 +00:00
Johan Holmberg
5f1be57ebc Exatract method "_path_separator" to handle JRuby too
where the Config::CONFIG hash seem to be buggy.
2009-05-12 16:56:28 +00:00
Johan Holmberg
4c6948301a Added description of -i option. 2009-05-10 21:13:09 +00:00
Johan Holmberg
42242ae1e6 Added possiblilty to give "pattern arguments", e.g.: "cmdtest /foo/".
Then only test methods matching the regexp will be run.
2009-05-09 16:46:11 +00:00
Johan Holmberg
5342fe0ce4 added 'Usage:' line in --help output 2009-05-09 12:40:37 +00:00
Johan Holmberg
2fa102ca2c Relax rules for command line options.
Now an option can be placed *after* file arguments.
2009-05-09 11:47:04 +00:00
Johan Holmberg
b52d63f91a Added -r option (incremental mode). 2009-05-09 11:12:45 +00:00
Johan Holmberg
80db818acb add --help entry about --xml option 2009-05-09 06:31:36 +00:00
Johan Holmberg
ec9e081399 Moved some responsibility from "prepend_path_dirs" to the callers.
The method now assumes that the arguments are absolute paths.
2009-04-19 16:41:37 +00:00
Johan Holmberg
54b7536481 Add method "prepend_path" to control PATH when running commands. 2009-03-27 07:23:10 +00:00
Johan Holmberg
8245c819bd add the code 2009-03-24 08:41:36 +00:00