Commit Graph

48 Commits

Author SHA1 Message Date
42342d0c96 handle Unicode filenames on Windows + test
by adding an argument "encoding: 'UTF-8'" to Dir.entries.
Also add minimal test.
2016-11-07 14:53:21 +01:00
bb2e7bf4a7 'echo PWD=$(pwd)' -> 'echo_pwd.rb' for Windows
missed in earlier commit 6a7bdbd
2016-11-07 10:58:34 +01:00
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
9156ee3a34 skip readonly test on Windows (chmod, ...) 2016-11-07 09:22:40 +01:00
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
1ed22c3163 add test of --no-diff option 2016-11-04 22:49:36 +01:00
3c83c52c70 --diff by default, new --no-diff option 2016-11-04 22:26:05 +01:00
12f905a31b add 'skip_test' 2016-10-31 00:33:20 +01:00
02c45f4ac9 add basic test of 'dont_ignore_files' 2016-10-30 22:35:32 +01:00
9331f23065 make test work with recent FsSnapshot changes 2016-10-30 21:55:03 +01:00
5fdd86537d working setenv/unsetenv + tests
need to be implemented for Windows too
2016-10-10 15:11:21 +02:00
e76dd95bcb add test of -h and --help 2016-09-26 23:51:15 +02:00
5f2d906ddf add test of ### vs. --- is summary line 2016-09-17 21:10:14 +02:00
502e242402 minimal test of --diff option 2016-06-28 09:06:34 +02:00
19d55530f5 add 'cmd_cmdtest_diff' passing --diff option 2016-06-28 09:04:08 +02:00
8943e46c44 --lines option to echo_stdout.rb/echo_stdout.rb
for new tests wanting several lines
2016-06-28 09:02:33 +02:00
deb6af6086 handle exception in setup/teardown
+ new test of this and exception in test_* methods
2016-06-26 21:12:53 +02:00
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
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
bbf4b92b1d introduce 'import_directory' 2016-04-14 19:56:38 +02:00
393a92ae33 require file argument to 'import_file' + test 2016-04-14 19:54:50 +02:00
2bb93b9536 add test with no errors; test exit code too 2015-08-17 23:37:50 +02:00
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
b9c716a80e basic tests of 'cmdtest' command line options 2015-08-04 23:32:20 +02:00
651b613ba0 remove parallel-, revive incremental-support 2015-08-04 10:29:25 +02:00
1765eda504 add 'cmd_cmdtest_verbose' in 'SelftestUtils' 2015-07-29 13:38:12 +02:00
df78fc17d6 test of summary line 2015-07-29 13:38:12 +02:00
d5f29a821c ignore_file accepts shell glob (*, **)
+ test of this new behaviour
2015-07-29 13:32:04 +02:00
bce88a3741 test "Dir.chdir" / "create_file" interaction 2015-06-15 21:32:27 +02:00
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
1c9efc3cad test get_path/set_path 2015-05-26 21:04:34 +02:00
73249f5fd5 test use of 'chdir' 2015-05-26 20:44:49 +02:00
ed7f81a5fa tests: change regexp display (?-mix:^22$) --> /^22$/ 2014-09-07 22:57:54 +02:00
1e6e3ca0a2 handle current directory containing spaces 2013-11-22 01:36:50 +01:00
77ca78c161 test current directory can contain spaces 2013-11-22 01:32:38 +01:00
dec7206f12 adapt tests to removed 'chdir' 2012-06-17 14:19:10 +02:00
daa7f12fbd Improve detection of Windows. 2011-11-04 23:38:52 +01:00
21411e4a87 Renamed "echo-stdout.rb" and "echo-stderr.rb"
to get automatic addition of "ruby -S" on Windows.
2011-11-04 23:12:48 +01:00
776f1595ac New CMDTEST_*.rb files testing "cmdtest" itself.
These files will replaces the old tests.
2011-10-12 22:19:44 +02:00
2df6994a6a Add one version of "echo.rb" for each of stdout/stderr.
This makes is easier to write tests for both stdout_equal and stderr_equal.
2011-09-27 23:16:37 +02:00
a3bd727568 Make handling of Windows / Linux symmetric when it comes
to "clines". Implemented as a Perl script on Linux.
2009-05-12 16:53:18 +00:00
2a7bb70fee Add "clines.cpp" in a better way. 2009-05-12 16:41:02 +00:00
d3c5025960 Test passes on Windows now. 2009-05-12 16:31:40 +00:00
c81b4c0c45 modified tests to work on both Windows and Linux. 2009-05-12 16:04:57 +00:00
64804512a2 Make it possible to give an array as argument to "cmd".
The intention is that the array should be passed "as is" to
the invoked program. This should work on both UN*X and Windows
so it has to deal with the quoting of both sh(1) and CMD.EXE.
The Windows part has not been done yet.
2009-04-08 07:08:13 +00:00
0a15996b2a use new REQUIRE instead of SKIP 2009-03-26 21:50:24 +00:00
5059444af1 add scripts needed for 'rake test' 2009-03-24 08:47:54 +00:00
2c61efb00d add tests 2009-03-24 08:43:47 +00:00