138 Commits

Author SHA1 Message Date
Johan Holmberg
dec7206f12 adapt tests to removed 'chdir' 2012-06-17 14:19:10 +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
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
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
62392a5e16 Improve the detection of test_* method boundaries.
This is used with the -i option to "cmdtest".
Now a leading comment like "## methods: ..." can replace
the "def test_*" line at the beginning of a method.
This handles the case where "define_method" is used in
the testsuite for "cmdtest" itself.
2011-10-13 22:30:26 +02: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
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
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
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
3de169ea11 add GCC vs. G++ example tests 2010-10-11 23:19:07 +02:00
Johan Holmberg
9fdb2ebd0a add error cases to GCC example tests 2010-10-11 22:39:15 +02:00
Johan Holmberg
e88cb07656 introduce CMDTEST_GCC_TO_TEST 2010-10-11 17:09:24 +02:00
Johan Holmberg
b0ff71a8da add test of -D and -I options to GCC 2010-10-10 23:57:01 +02:00
Johan Holmberg
0075282c4a add example file testing GCC command line interface 2010-10-10 23:33:22 +02:00
Johan Holmberg
2ef8fce6ae add a .hgignore file 2010-10-10 23:32:04 +02:00
Johan Holmberg
dc36a1e023 update copyright year 2010-09-03 09:05:21 +02:00
Johan Holmberg
823f254d60 New file for formatting output. 2010-09-03 08:55:07 +02:00
Johan Holmberg
46607b24c2 Use COMPSEC to find "cmd.exe" on Windows. 2009-11-23 17:11:27 +01:00
Johan Holmberg
2fe19ae2ff Added "set_path()" and "--no-exit-code" info. 2009-11-19 08:42:06 +01:00
Johan Holmberg
43dd9acebf Added "set_path" method. Cleanup of PATH handling. 2009-11-19 00:14:22 +01:00
Johan Holmberg
aabd98a9b1 Make tests work again by supply --no-exit-code. 2009-11-18 23:59:04 +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
0f29f631fc minor change to 'create_file' description 2009-11-18 22:26:25 +01:00
Johan Holmberg
1f504f5f9b Add "chdir" method. Can be used to avoid ruby warning "conflicting
chdir during another chdir block".
2009-08-14 14:05:06 +02:00
Johan Holmberg
a533ee1300 Change checkout example to show use of Mercurial.
We changed revision control system from Subversion recently.
2009-06-16 20:58:16 +02:00
Johan Holmberg
c15e9e5ae4 Added tag v1.0 for changeset 3b86c7a3be02 2009-06-08 21:19:34 +02:00
Johan Holmberg
c8127b87e2 add ruby comment line for emacs 2009-06-06 12:36:12 +00:00
Johan Holmberg
c170b3d889 added sections 'Specifying files / directories' and 'PATH handling' 2009-05-27 06:31:46 +00:00
Johan Holmberg
1bc5337156 add more info about command line usage 2009-05-12 19:02:20 +00:00
Johan Holmberg
ddfb52d68c search for test files in 'test/' directory too 2009-05-12 19:01:10 +00:00
Johan Holmberg
c532c65351 added method showing output on both stdout and stderr 2009-05-12 18:34:29 +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
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
9e417d8700 Avoide error at weired indentation of Ruby code. 2009-05-10 22:23:33 +00:00
Johan Holmberg
3fcf7d7d27 re-indented code 2009-05-10 22:02:35 +00:00
Johan Holmberg
36eb26efb0 Added "time(interval)" method. Also fixed some spelling errors. 2009-05-10 21:57:26 +00:00
Johan Holmberg
c4acd10b1e Document "changed_files" instead of "modified_files". 2009-05-10 21:49:10 +00:00
Johan Holmberg
d6817779c8 added example testing som UN*X commands 2009-05-10 21:44:12 +00:00
Johan Holmberg
4c6948301a Added description of -i option. 2009-05-10 21:13:09 +00:00
Johan Holmberg
6898c43c1d re-generated from txt-file 2009-05-10 21:12:29 +00:00
Johan Holmberg
fe042df53c added basic description of command line options 2009-05-10 21:11:28 +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