Håkan Thörngren
f4754a10fd
Corrected name of program and spelling.
2015-11-19 14:52:26 -08:00
Johan Holmberg
53b4869de9
update documenation
2015-08-26 22:11:20 +02:00
Johan Holmberg
c025d22a14
move code to Runner subclasses
2015-08-17 23:53:49 +02:00
Johan Holmberg
2bb93b9536
add test with no errors; test exit code too
2015-08-17 23:37:50 +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
1ee1533ab2
fix "ruby -w" warnings
2015-08-08 23:42:14 +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
b9c716a80e
basic tests of 'cmdtest' command line options
2015-08-04 23:32:20 +02:00
Johan Holmberg
2e58c4a76a
ignore_file can be a Regexp, forgotten in d5f29a8
...
this caused a regression in d5f29a8,
that should be fixed by the current commit.
2015-08-04 10:46:23 +02:00
Johan Holmberg
651b613ba0
remove parallel-, revive incremental-support
2015-08-04 10:29:25 +02:00
Johan Holmberg
1765eda504
add 'cmd_cmdtest_verbose' in 'SelftestUtils'
2015-07-29 13:38:12 +02:00
Johan Holmberg
df78fc17d6
test of summary line
2015-07-29 13:38:12 +02:00
Johan Holmberg
d5f29a821c
ignore_file accepts shell glob (*, **)
...
+ test of this new behaviour
2015-07-29 13:32:04 +02:00
Johan Holmberg
d3d884a2f1
minimal 'files_equal'
...
the reporting at error should be improved
2015-07-01 08:34:52 +02:00
Johan Holmberg
15c06bab11
add 'transcode_file' helper method
2015-06-17 22:32:07 +02:00
Johan Holmberg
ce6fed5947
add statistics and exit code
2015-06-17 00:48:34 +02:00
Johan Holmberg
dcf4ce246b
wait file mtime delta before new cmd
...
to make it possible ot detect written files
2015-06-17 00:16:07 +02:00
Johan Holmberg
96b8f3a42f
minimal ARGV parsing, similar to Ruby-version
2015-06-16 19:56:20 +02:00
Johan Holmberg
6faf657da0
use os.pathsep instead of ':'
2015-06-16 19:33:46 +02:00
Johan Holmberg
e1bdc5b403
try to use 'win_unicode_console' on Windows
2015-06-15 23:28:21 +02:00
Johan Holmberg
a72025c385
'file_match' now handles multi line patterns
2015-06-15 23:15:23 +02:00
Johan Holmberg
58260c5a21
add 'file_equal' and 'file_match'
2015-06-15 22:35:06 +02:00
Johan Holmberg
4d1fdabb55
improve handling of newline on Windows
2015-06-15 22:17:55 +02:00
Johan Holmberg
35c6425a44
implement 'stderr_match' like 'stdout_match'
2015-06-15 22:17:55 +02:00
Johan Holmberg
79be5a3a87
change relative paths in example code
2015-06-15 22:17:40 +02:00
Johan Holmberg
4805d50e05
use 'utf-8' reading 'CMDTEST_*.py'
2015-06-15 21:48:52 +02:00
Johan Holmberg
bce88a3741
test "Dir.chdir" / "create_file" interaction
2015-06-15 21:32:27 +02:00
Johan Holmberg
8dce49ef45
pass new "chdir" tests
2015-06-15 21:22:17 +02:00
Johan Holmberg
43078cab8e
test 'chdir' and 'Dir.chdir' in test methods
...
should work both in normal mode and with -jN
2015-06-15 21:06:48 +02:00
Johan Holmberg
82d49d40b9
finally add 'cmdtest.py'
...
even if it is unfinished, and not as functional
as the Ruby version.
2015-06-15 00:54:03 +02:00
Johan Holmberg
a476690279
implement get_path
2015-05-26 21:05:09 +02:00
Johan Holmberg
1c9efc3cad
test get_path/set_path
2015-05-26 21:04:34 +02:00
Johan Holmberg
7ff1b8c330
chdir calls Dir.chdir when not parallel
2015-05-26 20:49:42 +02:00
Johan Holmberg
73249f5fd5
test use of 'chdir'
2015-05-26 20:44:49 +02:00
Johan Holmberg
7b014a94ca
update README to use "git" instead of "hg"
...
the repository has been converted Mercurial --> Git
2015-01-19 23:06:20 +01:00
Johan Holmberg
5a663b92bf
internally convert --xml option to absolute path.
2015-01-18 00:43:03 +01:00
Johan Holmberg
151bf74753
First version of stdout_contain/stderr_contain.
2014-09-09 00:00:26 +02:00
Johan Holmberg
21aa24282b
implement changed regexp display (?-mix:^22$) --> /^22$/
2014-09-07 22:59:15 +02:00
Johan Holmberg
ed7f81a5fa
tests: change regexp display (?-mix:^22$) --> /^22$/
2014-09-07 22:57:54 +02:00
Johan Holmberg
c989a9f974
avoid silly Emacs ruby-mode problems with <<....
...
by using [[...]] instead of <<...>>
2014-09-06 21:02:00 +02: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
d9f0a4e903
Document more methods, handling of current directory. Change Hudson --> Jenkins.
2014-02-16 18:33:31 +01:00
Johan Holmberg
0683c9eb32
set LC_ALL=C on MacOS in Rakefile
2014-02-16 14:39:00 +01:00
Johan Holmberg
2709324d8d
make 'cmdtest' work again on Windows.
...
now a new file "tmp-redirect.bat" is used to avoid passing
a complicated command line to Ruby:s "system" function.
2014-01-24 17:03:39 +01:00
Johan Holmberg
c6249ab10d
Util.quote_path now avoids more unnecessary quoting
2014-01-24 16:57:24 +01:00
Johan Holmberg
21ac1f4f01
use File::PATH_SEPARATOR (correct on Windows with Ruby 2.x)
2014-01-24 15:53:45 +01:00