Johan Holmberg
d8379148e7
simple test usage of 'argumentparser.rb'
2016-01-05 19:10:02 +01:00
Johan Holmberg
c025d22a14
move code to Runner subclasses
2015-08-17 23:53:49 +02:00
Johan Holmberg
5021972318
first version using parallel(1)
...
to implement -jN option to cmdtest.
may need some cleanup/refactoring.
2015-08-17 23:03:42 +02:00
Johan Holmberg
225983f813
refactor: remove 'run' methods
...
instead loop over test-files/classes/methods outside
of the "administrative" classes. In preparation for
a new way of implementing --parallel support with
the external command GNU Parallel.
2015-08-08 23:43:06 +02:00
Johan Holmberg
b82c90232c
refactor, 'tmp_dir',... -> Runner class
...
the methods 'tmp_dir', 'tmp_work_dir' and 'tmp_cmdtest_dir'
are needed in 'cmdtest.rb' too, so moving them to the
Runner class.
2015-08-08 00:26:17 +02:00
Johan Holmberg
c03de8c577
make --test work again
...
need to convert Symbol -> String before compare
2015-08-06 22:39:08 +02:00
Johan Holmberg
13b284ef8c
use new "argumentparser.rb"
...
modelled after "argparse" in Python
2015-08-06 22:33:48 +02:00
Johan Holmberg
651b613ba0
remove parallel-, revive incremental-support
2015-08-04 10:29:25 +02:00
Johan Holmberg
5a663b92bf
internally convert --xml option to absolute path.
2015-01-18 00:43:03 +01:00
Johan Holmberg
7edd2313ff
add simple SIGINT handler
2014-02-16 21:59:44 +01:00
Johan Holmberg
ee6b520ca3
update copyright year to 2014
2014-02-16 21:36:27 +01:00
Johan Holmberg
21ac1f4f01
use File::PATH_SEPARATOR (correct on Windows with Ruby 2.x)
2014-01-24 15:53:45 +01:00
Johan Holmberg
5c58af597e
fix broken 'import_file' when using t/ or test/ directory
2013-04-18 08:58:22 +02:00
Johan Holmberg
785629e86a
shebang line should use /usr/bin/ruby
2013-04-18 08:06:13 +02:00
Johan Holmberg
cce66576cd
get 'import_file' argument relative to CMDTEST file
...
(not current directory)
2012-09-06 15:21:19 +02:00
Johan Holmberg
7a8492e454
Update copyright year to 2012
2012-08-13 19:02:28 +02:00
Johan Holmberg
b772c8b7f8
Call "Dir.chdir" when no --parallel=N was given.
...
This should make "old" tests work with newer versions.
2012-07-09 22:52:43 +02:00
Johan Holmberg
ffe0a34b40
start using 'notify' for parallelism, add -j option
2012-07-02 09:46:16 +02:00
Johan Holmberg
fedbfa745a
removed use of 'chdir' (preparing for parallel cmdtest)
2012-06-17 14:17:49 +02:00
Johan Holmberg
c2f45a5882
only pass strings to logger classes (no cmdtest objects)
2012-06-12 00:32:50 +02:00
Johan Holmberg
bb70f757ec
Introduced LogClient class (preparing for parallel cmdtest).
2012-06-11 01:02:47 +02:00
Johan Holmberg
daa7f12fbd
Improve detection of Windows.
2011-11-04 23:38:52 +01:00
Johan Holmberg
892dc530c5
Preparation for parallel cmdtest:
...
- 'runner' parameter to methods instead of constructors
- unique work-directory for each test method
- detect class/method name clashes early
- moved tmp-dir knowledge to "testcase.rb"
2011-11-02 00:03:23 +01:00
Johan Holmberg
27f1f3f80f
Make 'cmdtest' work with Ruby 1.9.3 too.
2011-10-30 20:33:16 +01:00
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