265 Commits

Author SHA1 Message Date
Johan Holmberg
dae53f993b use 'rake test' in text 2017-09-03 17:31:25 +02:00
Johan Holmberg
7f2d05f602 remove README.html 2017-09-03 17:29:42 +02:00
Johan Holmberg
ec574042ff update README 2017-09-03 17:22:29 +02:00
Johan Holmberg
735206883e update 'rake test' action 2017-09-03 17:21:41 +02:00
Johan Holmberg
ba12179c02 avoid unicode output from 'mkdir' 2017-09-03 17:09:11 +02:00
Johan Holmberg
7f643cb90e ruby example passes on Ubuntu 16.04 2017-09-03 17:04:56 +02:00
Johan Holmberg
b3fae13231 only use CMDTEST_GCC_TO_TEST
and derive C++ name from the C compiler,
typically "gcc" -> "g++"
2017-07-13 15:38:30 +02:00
Johan Holmberg
f524ddcad6 split test_MD_MT_MF
so the MT test can fail by itself
2017-07-12 13:22:49 +02:00
Johan Holmberg
ea7c65c49d test -MD -MF -MT to gcc 2017-07-12 11:11:51 +02:00
Johan Holmberg
067c806593 LC_ALL=C to avoid funny chars from gcc 2017-06-28 17:54:21 +02:00
Johan Holmberg
30be1a4460 add "simple" packaging
to get zip/tgz files with just "bin" and "lib" directories
2017-06-28 17:53:19 +02:00
Johan Holmberg
0ca4391a89 fix copy paste bug 'rake' --> 'cmdtest' 2017-06-28 17:53:19 +02:00
Johan Holmberg
8fd531c4b5 use 'bitbucket.io' address to manual 2017-04-14 18:36:33 +02:00
Johan Holmberg
01f041b9f3 fix simple spelling error 2017-03-23 12:37:46 +01:00
Johan Holmberg
9a899213f0 find test_* methods in base classes too
this makes it prossible to structure tests better
and even used "mixin" of modules with test_* methods
2017-03-23 10:26:27 +01:00
Johan Holmberg
04c31df479 sort "CMDTEST_*.rb" files alphabetically
by sorting the result of Dir.glob().
This should make "CMDTEST_*.rb" being run in a well defined order.
2017-02-28 10:24:27 +01:00
Håkan Thörngren
fe5dbe704e Allow specifying tests with 'cmdtest_in_dir'
The entry point 'cmdtest_in_dir' now accepts and passes on arguments
that optionally specifies which tests to be run. This can be done on file
level, class level and method level.

As the list of optional named arguments is quite long, they are now
keyword arguments.
2016-12-13 09:45:53 -08:00
Johan Holmberg
9b977a8761 quote ' and " in XML output too 2016-12-07 21:54:45 +01:00
Johan Holmberg
b80d52c480 use ^@, ^A,... escapes in XML output + test
to avoid writing non-printable characters
to the XML file.
2016-12-07 21:44:46 +01:00
Johan Holmberg
017db356db test helper script to print ctrl characters 2016-12-07 21:41:20 +01:00
Johan Holmberg
43cb4be270 remove LogBaseMixin, use method_missing?
this gets rid of some unnecessary boilerplate code
2016-11-30 23:04:32 +01:00
Johan Holmberg
7f7baa4dad include hour/minute in Debian package version 2016-11-30 15:22:53 +01:00
Johan Holmberg
f813ccf196 add CHANGES.txt file 2016-11-29 21:59:16 +01:00
Johan Holmberg
e7001794fa avoid JRuby bug when reading directory as file
one would expect an EISDIR error, but instead JRuby
seems to get stuck using 100% CPU and getting nowhere.
Cmdtest just needs to be able to issue an error message.
2016-11-28 22:30:42 +01:00
Johan Holmberg
58ca0a1e8b enable testing running cmdtest with jruby
or some other "non-standard" Ruby.
The environment variable CMDTEST_RUBY is used to select
which Ruby to use.
2016-11-28 20:06:21 +01:00
Johan Holmberg
592005f808 add executed commands to JUnit error output 2016-11-28 14:59:34 +01:00
Johan Holmberg
4164dd7752 rename cmdline() argument 2016-11-28 13:37:13 +01:00
Johan Holmberg
5c84e04a51 add 'time=n.nnn' attribute in JUnit output 2016-11-28 13:21:21 +01:00
Johan Holmberg
93519ab612 make stdout_contain work again
after introduction of FileContent class
to handle file encoding in a stricter way
2016-11-18 15:10:13 +01:00
Johan Holmberg
d6e6189cb3 minimal test of stdout_contain/stderr_contain 2016-11-18 15:08:03 +01:00
Johan Holmberg
b18b462328 add --stdout/stderr option to lines.rb
to make it easier to generate test output
on both stdout and stderr
2016-11-18 15:05:49 +01:00
Johan Holmberg
67a662f1c6 use env.rb and grep.rb in test
to avoid depending on some env.exe and grep.exe
on Windows.
2016-11-17 10:30:29 +01:00
Johan Holmberg
6c14d32cce add test of 'output_encoding' 2016-11-16 22:36:25 +01:00
Johan Holmberg
9505af3dcc improve line ending detection + add tests
should hopefully work on Linux and Windows now
2016-11-16 22:34:00 +01:00
Johan Holmberg
c3ee66e5c5 detect mixed line ending on Windows 2016-11-16 17:47:03 +01:00
Johan Holmberg
2b1126a508 introduce 'output_encoding' method
to tell cmdtest what encoding to expect from STDOUT/STDERR
and from files inspected with 'file_equal'.
2016-11-16 17:27:55 +01:00
Johan Holmberg
cfc08acd15 avoid 'recursive_find' over directory symlink
this could cause an endless recursion if a symlink pointed
upwards in the file tree
2016-11-09 16:42:55 +01:00
Johan Holmberg
4bfa4a625d update documentation 2016-11-08 09:59:22 +01:00
Johan Holmberg
fd4b3e09af add ZIP to CPACK_GENERATOR 2016-11-08 09:09:32 +01:00
Johan Holmberg
6672d7bccf new 'file_encoding' assert method + test 2016-11-07 23:56:01 +01:00
Johan Holmberg
b63c6ee187 add test of 'skipped' in summary 2016-11-07 19:04:18 +01:00
Johan Holmberg
af412833bc minimal test of 'skip_test' 2016-11-07 18:32:39 +01:00
Johan Holmberg
94130debdd avoid running command at 'skip_test'
this happened by accident (a copy/paste bug).
Now the Ruby exception is thrown immediately.
2016-11-07 18:30:29 +01:00
Johan Holmberg
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
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