Johan Holmberg
bb2e7bf4a7
'echo PWD=$(pwd)' -> 'echo_pwd.rb' for Windows
...
missed in earlier commit 6a7bdbd
2016-11-07 10:58:34 +01:00
Johan Holmberg
06b011204a
accept Windows drive letter paths in tests
...
on Windows Dir.pwd returns a path like "c:/some/dir",
and the tests mainly cares about the suffix of the path
so accepting an optional drive letter at the beginning
should be ok.
2016-11-07 09:25:27 +01:00
Johan Holmberg
9156ee3a34
skip readonly test on Windows (chmod, ...)
2016-11-07 09:22:40 +01:00
Johan Holmberg
6a7bdbdfe4
make tests more Windows-friendly
...
by using Ruby helper scripts instead fo relying
on the existence of Unix commands
2016-11-05 00:49:22 +01:00
Johan Holmberg
1ed22c3163
add test of --no-diff option
2016-11-04 22:49:36 +01:00
Johan Holmberg
3c83c52c70
--diff by default, new --no-diff option
2016-11-04 22:26:05 +01:00
Johan Holmberg
cd699f4a8e
1.4 -> 1.5, with 'skip_test' ...
2016-11-04 17:22:00 +01:00
Johan Holmberg
12f905a31b
add 'skip_test'
2016-10-31 00:33:20 +01:00
Johan Holmberg
02c45f4ac9
add basic test of 'dont_ignore_files'
2016-10-30 22:35:32 +01:00
Johan Holmberg
16a882521c
whitespace cleanup
2016-10-30 22:09:36 +01:00
Johan Holmberg
9331f23065
make test work with recent FsSnapshot changes
2016-10-30 21:55:03 +01:00
Johan Holmberg
1af393872c
'teardown' should run after AssertFailed too
2016-10-30 21:42:47 +01:00
Johan Holmberg
dfb27787fe
add 'dont_ignore_files'
2016-10-30 18:45:18 +01:00
Johan Holmberg
6e16688a1b
all files in FsSnapshot, but with ignored flag
2016-10-30 18:05:33 +01:00
Johan Holmberg
8a2af873ef
call '_delayed_run_cmd' already in 'comment'
2016-10-26 23:18:34 +02:00
Johan Holmberg
d9b1b2accf
Merged in hth313/cmdtest (pull request #2 )
...
Allow timeout on test cases
2016-10-13 19:58:59 +00:00
Håkan Thörngren
991db268b2
Use keyword-only argument
2016-10-13 12:52:22 -07:00
Håkan Thörngren
d1c5da0b21
Merge holmberg556/cmdtest into master
2016-10-13 11:35:37 -07:00
Håkan Thörngren
d8121b1d5e
Allow timeout on test cases
...
Certain commands are likely to fail to terminate in case something goes
wrong. Having the ability to force such commands to terminate after a
certain time is useful.
2016-10-13 11:20:32 -07:00
Johan Holmberg
6b0bee4de5
setenv/unsetenv for Windows too
2016-10-10 15:26:35 +02:00
Johan Holmberg
5fdd86537d
working setenv/unsetenv + tests
...
need to be implemented for Windows too
2016-10-10 15:11:21 +02:00
Johan Holmberg
136bb53a89
improve --version output
...
now showing a value like 1.4.20161008,
the same as the DEB package
2016-10-08 21:04:30 +02:00
Johan Holmberg
70e6aaa9a7
avoid creating DEB package on MacOS
2016-10-08 18:32:57 +02:00
Johan Holmberg
3f80a9a1ea
creation on DEB packages
...
with improved version numbering
2016-10-07 16:45:10 +02:00
Johan Holmberg
e9974f5922
add 'generate-debian-package' rake task
2016-10-07 16:39:19 +02:00
Johan Holmberg
aa9d2c4f93
handle --help as any other option
...
earlier -h was recognized as a special case
in "argumentparser.rb"
2016-09-27 00:03:52 +02:00
Johan Holmberg
e76dd95bcb
add test of -h and --help
2016-09-26 23:51:15 +02:00
Johan Holmberg
e6a9092783
add --stop-on-error option
...
to stop after first error. If running in parallel,
we don't know how to stop immediately, so that
option combination is disallowed.
2016-09-17 23:17:23 +02:00
Johan Holmberg
419ace2d58
avoid --help twice in help message
2016-09-17 22:50:40 +02:00
Johan Holmberg
c6cfae144c
report finished time
2016-09-17 22:42:17 +02:00
Johan Holmberg
79bb49ed33
use Cmdtest.print_summary both with/without -j
2016-09-17 21:11:52 +02:00
Johan Holmberg
5f2d906ddf
add test of ### vs. --- is summary line
2016-09-17 21:10:14 +02:00
Johan Holmberg
8124d2fcd6
at error, forget old "success" in .cmdtest-filter
...
with this changes a test will be re-run again even if
it is restored to an earlier content.
(all this is about the effect of the -i option)
2016-09-17 19:19:47 +02:00
Johan Holmberg
d477ccc24a
gcc 5.x error messages changed
...
adapt expectations to work with both 4.x and 5.x
2016-06-28 09:36:48 +02:00
Johan Holmberg
502e242402
minimal test of --diff option
2016-06-28 09:06:34 +02:00
Johan Holmberg
19d55530f5
add 'cmd_cmdtest_diff' passing --diff option
2016-06-28 09:04:08 +02:00
Johan Holmberg
8943e46c44
--lines option to echo_stdout.rb/echo_stdout.rb
...
for new tests wanting several lines
2016-06-28 09:02:33 +02:00
Johan Holmberg
1b80605f49
--diff option (experimental)
...
using an LCS algorithm (like diff)
2016-06-28 00:33:39 +02:00
Johan Holmberg
deb6af6086
handle exception in setup/teardown
...
+ new test of this and exception in test_* methods
2016-06-26 21:12:53 +02:00
Johan Holmberg
966a98f4b1
remove obsolete parallel code
...
from before refactoring parallel handling
2016-06-05 12:56:22 +02:00
Johan Holmberg
166b0f310b
reset current directory for "teardown"
...
and after processing each test method.
should pass resently added tests.
2016-06-04 21:16:12 +02:00
Johan Holmberg
4cbbac7ec1
test current directory in "teardown" method
...
even when current directory is changed within a test method
the "teardown" method should have same current directory
as "setup" and as the the original value in the test method.
2016-06-04 20:53:49 +02:00
Johan Holmberg
dc4ab527de
test that readonly directory give error
...
ie. when cmdtest fails to remove the "work"
directory between test methods. Previously
cmdtest relied on FileUtils.rm_rf, but it could
fail silently, leading to weird consequences.
2016-06-04 20:49:59 +02:00
Johan Holmberg
75ea993a54
change FileUtils.rm_rf -> Util.rm_rf
...
since the one in FileUtils is broken, or at least does not
work like the command "rm -rf". A post condition should be that
the directory does not exist OR an exception is thrown at failure.
2016-06-03 21:03:12 +02:00
Johan Holmberg
43072aecec
remove extra ORIG_CWD
...
just keep Cmdtest::ORIG_CWD
2016-06-03 20:29:02 +02:00
Johan Holmberg
3ea3d852aa
chdir to ORIG_CWD after each test method
...
so current directory is outside the temporary tree
when it is cleaned between test methods.
2016-06-03 20:02:08 +02:00
Johan Holmberg
9117bc2e60
sort methods/files
...
for more deterministic behaviour
2016-06-03 11:17:18 +02:00
Johan Holmberg
122d2b3326
update copyright year -> 2016
2016-04-14 20:25:21 +02:00
Johan Holmberg
0ad8daec68
update HTML User Guide
2016-04-14 20:10:04 +02:00
Johan Holmberg
bbf4b92b1d
introduce 'import_directory'
2016-04-14 19:56:38 +02:00