39 Commits

Author SHA1 Message Date
Johan Holmberg
9331f23065 make test work with recent FsSnapshot changes 2016-10-30 21:55:03 +01: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
e76dd95bcb add test of -h and --help 2016-09-26 23:51:15 +02:00
Johan Holmberg
5f2d906ddf add test of ### vs. --- is summary line 2016-09-17 21:10:14 +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
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
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
bbf4b92b1d introduce 'import_directory' 2016-04-14 19:56:38 +02:00
Johan Holmberg
393a92ae33 require file argument to 'import_file' + test 2016-04-14 19:54:50 +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
b9c716a80e basic tests of 'cmdtest' command line options 2015-08-04 23:32:20 +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
bce88a3741 test "Dir.chdir" / "create_file" interaction 2015-06-15 21:32:27 +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
1c9efc3cad test get_path/set_path 2015-05-26 21:04:34 +02:00
Johan Holmberg
73249f5fd5 test use of 'chdir' 2015-05-26 20:44:49 +02:00
Johan Holmberg
ed7f81a5fa tests: change regexp display (?-mix:^22$) --> /^22$/ 2014-09-07 22:57:54 +02:00
Johan Holmberg
1e6e3ca0a2 handle current directory containing spaces 2013-11-22 01:36:50 +01:00
Johan Holmberg
77ca78c161 test current directory can contain spaces 2013-11-22 01:32:38 +01:00
Johan Holmberg
dec7206f12 adapt tests to removed 'chdir' 2012-06-17 14:19:10 +02:00
Johan Holmberg
daa7f12fbd Improve detection of Windows. 2011-11-04 23:38:52 +01:00
Johan Holmberg
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
Johan Holmberg
776f1595ac New CMDTEST_*.rb files testing "cmdtest" itself.
These files will replaces the old tests.
2011-10-12 22:19:44 +02:00
Johan Holmberg
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
Johan Holmberg
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
Johan Holmberg
2a7bb70fee Add "clines.cpp" in a better way. 2009-05-12 16:41:02 +00:00
Johan Holmberg
d3c5025960 Test passes on Windows now. 2009-05-12 16:31:40 +00:00
Johan Holmberg
c81b4c0c45 modified tests to work on both Windows and Linux. 2009-05-12 16:04:57 +00:00
Johan Holmberg
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
Johan Holmberg
0a15996b2a use new REQUIRE instead of SKIP 2009-03-26 21:50:24 +00:00
Johan Holmberg
5059444af1 add scripts needed for 'rake test' 2009-03-24 08:47:54 +00:00
Johan Holmberg
2c61efb00d add tests 2009-03-24 08:43:47 +00:00