Commit Graph

  • 393a92ae33 require file argument to 'import_file' + test Johan Holmberg 2016-04-14 19:54:50 +02:00
  • 3baa2c5133 minimal test of 'cmdtest.py' used as module Johan Holmberg 2016-01-07 19:22:28 +01:00
  • a343141f30 set __file__ in CMDTEST_*.py files Johan Holmberg 2016-01-07 19:19:43 +01:00
  • cdd38dd5a3 add rake file with 'test' task Johan Holmberg 2016-01-06 20:58:47 +01:00
  • a65f019e51 add tests of 'cmdtest.py' in t/ subdir Johan Holmberg 2016-01-06 20:55:53 +01:00
  • f0e6f5c281 add --quiet option Johan Holmberg 2016-01-06 20:54:53 +01:00
  • 2d37244714 add 'always_ignore_file' Johan Holmberg 2016-01-06 20:47:40 +01:00
  • dad35dd311 accept directory command line argument Johan Holmberg 2016-01-06 20:33:08 +01:00
  • 633b184c6a modify sys.path during exec() call Johan Holmberg 2016-01-06 20:29:43 +01:00
  • 07ac9b72ee flatten list argument to 'create_file' Johan Holmberg 2016-01-06 20:26:30 +01:00
  • 73d53c1f20 add .gitignore Johan Holmberg 2015-10-02 22:28:38 +02:00
  • e9ff28c74a add idea for yaml based version of cmdtest Johan Holmberg 2015-10-02 22:28:03 +02:00
  • 71a74c00ef add CMDTEST file verifying doc example Johan Holmberg 2015-10-02 22:27:07 +02:00
  • 4cbba1cba1 add file used in tests of 'cmdtest' Johan Holmberg 2015-10-02 22:26:16 +02:00
  • 3ddfd85791 first attempt writing a Ruby "gemspec" Johan Holmberg 2015-10-02 22:17:37 +02:00
  • d8379148e7 simple test usage of 'argumentparser.rb' Johan Holmberg 2015-10-02 20:51:50 +02:00
  • c241d760a4 Merged in hth313/cmdtest (pull request #1) Johan Holmberg 2016-01-05 19:03:33 +01:00
  • 5075c7b38b Combine class and method name when saving work dir Håkan Thörngren 2016-01-03 19:53:00 -08:00
  • af28746648 Preserve files for failed tests. Håkan Thörngren 2016-01-02 20:14:27 -08:00
  • f486a15f66 Allow Python cmdtest to be used as a library. Håkan Thörngren 2015-12-09 20:49:13 -08:00
  • f4754a10fd Corrected name of program and spelling. Håkan Thörngren 2015-11-19 14:52:26 -08:00
  • 53b4869de9 update documenation Johan Holmberg 2015-08-26 21:55:45 +02:00
  • c025d22a14 move code to Runner subclasses Johan Holmberg 2015-08-17 23:38:42 +02:00
  • 2bb93b9536 add test with no errors; test exit code too Johan Holmberg 2015-08-17 23:37:50 +02:00
  • 5021972318 first version using parallel(1) Johan Holmberg 2015-08-17 23:03:42 +02:00
  • 225983f813 refactor: remove 'run' methods Johan Holmberg 2015-08-08 23:43:06 +02:00
  • 1ee1533ab2 fix "ruby -w" warnings Johan Holmberg 2015-08-08 23:42:14 +02:00
  • b82c90232c refactor, 'tmp_dir',... -> Runner class Johan Holmberg 2015-08-08 00:26:17 +02:00
  • c03de8c577 make --test work again Johan Holmberg 2015-08-06 22:39:08 +02:00
  • 13b284ef8c use new "argumentparser.rb" Johan Holmberg 2015-08-06 22:33:48 +02:00
  • b9c716a80e basic tests of 'cmdtest' command line options Johan Holmberg 2015-08-04 23:32:20 +02:00
  • 2e58c4a76a ignore_file can be a Regexp, forgotten in d5f29a8 Johan Holmberg 2015-08-04 10:46:23 +02:00
  • 651b613ba0 remove parallel-, revive incremental-support Johan Holmberg 2015-07-29 16:02:26 +02:00
  • 1765eda504 add 'cmd_cmdtest_verbose' in 'SelftestUtils' Johan Holmberg 2015-07-28 18:54:10 +02:00
  • df78fc17d6 test of summary line Johan Holmberg 2015-07-28 18:03:36 +02:00
  • d5f29a821c ignore_file accepts shell glob (*, **) Johan Holmberg 2015-07-29 13:32:04 +02:00
  • d3d884a2f1 minimal 'files_equal' Johan Holmberg 2015-07-01 08:34:52 +02:00
  • 15c06bab11 add 'transcode_file' helper method Johan Holmberg 2015-06-17 22:32:07 +02:00
  • ce6fed5947 add statistics and exit code Johan Holmberg 2015-06-17 00:48:34 +02:00
  • dcf4ce246b wait file mtime delta before new cmd Johan Holmberg 2015-06-17 00:16:07 +02:00
  • 96b8f3a42f minimal ARGV parsing, similar to Ruby-version Johan Holmberg 2015-06-16 19:56:20 +02:00
  • 6faf657da0 use os.pathsep instead of ':' Johan Holmberg 2015-06-16 19:33:46 +02:00
  • e1bdc5b403 try to use 'win_unicode_console' on Windows Johan Holmberg 2015-06-15 23:28:21 +02:00
  • a72025c385 'file_match' now handles multi line patterns Johan Holmberg 2015-06-15 23:15:23 +02:00
  • 58260c5a21 add 'file_equal' and 'file_match' Johan Holmberg 2015-06-15 22:35:06 +02:00
  • 4d1fdabb55 improve handling of newline on Windows Johan Holmberg 2015-06-15 22:11:02 +02:00
  • 35c6425a44 implement 'stderr_match' like 'stdout_match' Johan Holmberg 2015-06-15 21:52:32 +02:00
  • 79be5a3a87 change relative paths in example code Johan Holmberg 2015-06-15 21:50:02 +02:00
  • 4805d50e05 use 'utf-8' reading 'CMDTEST_*.py' Johan Holmberg 2015-06-15 21:48:52 +02:00
  • bce88a3741 test "Dir.chdir" / "create_file" interaction Johan Holmberg 2015-06-15 21:32:27 +02:00
  • 8dce49ef45 pass new "chdir" tests Johan Holmberg 2015-06-15 21:22:17 +02:00
  • 43078cab8e test 'chdir' and 'Dir.chdir' in test methods Johan Holmberg 2015-06-15 21:06:48 +02:00
  • 82d49d40b9 finally add 'cmdtest.py' Johan Holmberg 2015-06-15 00:54:03 +02:00
  • a476690279 implement get_path Johan Holmberg 2015-05-26 21:05:09 +02:00
  • 1c9efc3cad test get_path/set_path Johan Holmberg 2015-05-26 21:04:34 +02:00
  • 7ff1b8c330 chdir calls Dir.chdir when not parallel Johan Holmberg 2015-05-26 20:49:42 +02:00
  • 73249f5fd5 test use of 'chdir' Johan Holmberg 2015-05-26 20:44:49 +02:00
  • 7b014a94ca update README to use "git" instead of "hg" Johan Holmberg 2015-01-19 23:02:27 +01:00
  • 5a663b92bf internally convert --xml option to absolute path. Johan Holmberg 2015-01-18 00:43:03 +01:00
  • 151bf74753 First version of stdout_contain/stderr_contain. Johan Holmberg 2014-09-09 00:00:26 +02:00
  • 21aa24282b implement changed regexp display (?-mix:^22$) --> /^22$/ Johan Holmberg 2014-09-07 22:59:15 +02:00
  • ed7f81a5fa tests: change regexp display (?-mix:^22$) --> /^22$/ Johan Holmberg 2014-09-07 22:57:54 +02:00
  • c989a9f974 avoid silly Emacs ruby-mode problems with <<.... by using [[...]] instead of <<...>> Johan Holmberg 2014-09-06 21:02:00 +02:00
  • 7edd2313ff add simple SIGINT handler Johan Holmberg 2014-02-16 21:59:44 +01:00
  • ee6b520ca3 update copyright year to 2014 Johan Holmberg 2014-02-16 21:36:27 +01:00
  • d9f0a4e903 Document more methods, handling of current directory. Change Hudson --> Jenkins. Johan Holmberg 2014-02-16 18:33:31 +01:00
  • 0683c9eb32 set LC_ALL=C on MacOS in Rakefile Johan Holmberg 2014-02-16 14:39:00 +01:00
  • 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. Johan Holmberg 2014-01-24 17:03:39 +01:00
  • c6249ab10d Util.quote_path now avoids more unnecessary quoting Johan Holmberg 2014-01-24 16:57:24 +01:00
  • 21ac1f4f01 use File::PATH_SEPARATOR (correct on Windows with Ruby 2.x) Johan Holmberg 2014-01-24 15:53:45 +01:00
  • 1e6e3ca0a2 handle current directory containing spaces Johan Holmberg 2013-11-22 01:36:50 +01:00
  • 77ca78c161 test current directory can contain spaces Johan Holmberg 2013-11-22 01:32:38 +01:00
  • 5cbd5214c0 update README file for bitbucket Johan Holmberg 2013-08-13 22:25:42 +02:00
  • 9c6159a525 Rename README.txt --> README.rst (for bitbucket) Johan Holmberg 2013-08-13 20:31:55 +02:00
  • 5c58af597e fix broken 'import_file' when using t/ or test/ directory Johan Holmberg 2013-04-18 08:58:22 +02:00
  • 785629e86a shebang line should use /usr/bin/ruby Johan Holmberg 2013-04-18 08:06:13 +02:00
  • cce66576cd get 'import_file' argument relative to CMDTEST file (not current directory) Johan Holmberg 2012-09-06 15:21:19 +02:00
  • 7a8492e454 Update copyright year to 2012 Johan Holmberg 2012-08-13 19:02:28 +02:00
  • 9ea790b0cb Use just one tmp-directory when no --parallel=N is used. Johan Holmberg 2012-07-09 23:40:03 +02:00
  • b772c8b7f8 Call "Dir.chdir" when no --parallel=N was given. This should make "old" tests work with newer versions. Johan Holmberg 2012-07-09 22:52:43 +02:00
  • ffe0a34b40 start using 'notify' for parallelism, add -j option Johan Holmberg 2012-07-02 09:46:16 +02:00
  • ecc8675d1e implement setenv/unsetenv (preparing for parallel cmdtest) Johan Holmberg 2012-07-02 09:25:26 +02:00
  • 35620124e5 add file implementing parallelism Johan Holmberg 2012-07-02 09:23:26 +02:00
  • dec7206f12 adapt tests to removed 'chdir' Johan Holmberg 2012-06-17 14:19:10 +02:00
  • fedbfa745a removed use of 'chdir' (preparing for parallel cmdtest) Johan Holmberg 2012-06-17 14:17:49 +02:00
  • c2f45a5882 only pass strings to logger classes (no cmdtest objects) Johan Holmberg 2012-06-12 00:32:50 +02:00
  • bb70f757ec Introduced LogClient class (preparing for parallel cmdtest). Johan Holmberg 2012-06-11 01:02:47 +02:00
  • daa7f12fbd Improve detection of Windows. Johan Holmberg 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. Johan Holmberg 2011-11-04 23:12:48 +01:00
  • 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" Johan Holmberg 2011-11-02 00:03:23 +01:00
  • 27f1f3f80f Make 'cmdtest' work with Ruby 1.9.3 too. Johan Holmberg 2011-10-30 20:33:16 +01:00
  • 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. Johan Holmberg 2011-10-13 22:30:26 +02:00
  • 776f1595ac New CMDTEST_*.rb files testing "cmdtest" itself. These files will replaces the old tests. Johan Holmberg 2011-10-12 22:19:44 +02:00
  • 90df8d6b76 Add directory of CMDTEST_*.rb files to LOAD_PATH. Makes it easy to "require" support files in the CMDTEST_*.rb files. Johan Holmberg 2011-10-12 22:14:11 +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. Johan Holmberg 2011-09-27 23:16:37 +02:00
  • a0663562f0 Avoid setting ENV["PATH"] in cmdtest itself. Instead set PATH in the shell scripts used to execute the actual commands to test. Johan Holmberg 2011-09-21 23:38:21 +02:00
  • 02270c3aa9 Let "orig_env_path" return a copy of the path, so users of the method can modify the value. Johan Holmberg 2011-08-28 20:53:32 +02:00
  • 3de169ea11 add GCC vs. G++ example tests Johan Holmberg 2010-10-11 23:19:07 +02:00
  • 9fdb2ebd0a add error cases to GCC example tests Johan Holmberg 2010-10-11 22:39:15 +02:00
  • e88cb07656 introduce CMDTEST_GCC_TO_TEST Johan Holmberg 2010-10-11 17:09:24 +02:00