]> rtime.felk.cvut.cz Git - wvtest.git/log
wvtest.git
13 years agowvtestrun: Do not use colors on dumb terminals master
Michal Sojka [Tue, 22 Jun 2010 11:16:13 +0000 (13:16 +0200)]
wvtestrun: Do not use colors on dumb terminals

14 years agosh: use a worse version of _wvfind_caller if bash isn't available.
Avery Pennarun [Tue, 16 Feb 2010 22:03:28 +0000 (17:03 -0500)]
sh: use a worse version of _wvfind_caller if bash isn't available.

bash has tools for finding the file/linenumber of the caller, but it's not
POSIX, so don't rely on it.

14 years agosh: add new WVPASSRC and WVFAILRC commands.
Avery Pennarun [Tue, 16 Feb 2010 22:01:38 +0000 (17:01 -0500)]
sh: add new WVPASSRC and WVFAILRC commands.

For testing the value of $?.

14 years agosh: Import wvtest.sh from the bup project.
Avery Pennarun [Tue, 16 Feb 2010 21:40:14 +0000 (16:40 -0500)]
sh: Import wvtest.sh from the bup project.

14 years agoMerge branch 'master' of git://github.com/wlach/wvtest
Avery Pennarun [Wed, 30 Dec 2009 20:46:17 +0000 (15:46 -0500)]
Merge branch 'master' of git://github.com/wlach/wvtest

* 'master' of git://github.com/wlach/wvtest:
  Basic support for checking (in)equality of std::string in C++ version

14 years agoMerge wvtest.py and wvtestmain.py into one file.
Avery Pennarun [Wed, 30 Dec 2009 20:41:51 +0000 (15:41 -0500)]
Merge wvtest.py and wvtestmain.py into one file.

This makes it a bit easier to bring into your own projects, since it's just
a single file.

Copied from eqldata project, commit
3b004336b117c01885f09f95b6e2aededd2de377.

14 years agoBasic support for checking (in)equality of std::string in C++ version
William Lachance [Tue, 11 Aug 2009 16:35:05 +0000 (12:35 -0400)]
Basic support for checking (in)equality of std::string in C++ version

14 years agoAdded an initial README.
Avery Pennarun [Fri, 1 May 2009 03:33:31 +0000 (23:33 -0400)]
Added an initial README.

14 years agoRename wvtestrunner to wvtestrun.
Avery Pennarun [Fri, 1 May 2009 02:36:07 +0000 (22:36 -0400)]
Rename wvtestrunner to wvtestrun.

Who names their programs as nouns anyway?  Clearly it runs things, so it
should be a verb.

14 years agoClean up license information and add LICENSE file.
Avery Pennarun [Fri, 1 May 2009 02:11:55 +0000 (22:11 -0400)]
Clean up license information and add LICENSE file.

14 years agoRename wvtestrunner.pl to wvtestrunner.
Avery Pennarun [Fri, 1 May 2009 02:04:58 +0000 (22:04 -0400)]
Rename wvtestrunner.pl to wvtestrunner.

The .pl isn't the important part, and someday it might change to another
language. Who knows?

14 years agoBetter 'make clean' targets.
Avery Pennarun [Fri, 1 May 2009 01:59:51 +0000 (21:59 -0400)]
Better 'make clean' targets.

14 years agoFix standalone compilation of wvtest/cpp.
Avery Pennarun [Fri, 1 May 2009 01:49:23 +0000 (21:49 -0400)]
Fix standalone compilation of wvtest/cpp.

14 years agoAdded a Makefile to dotnet as an example of how to run tests.
Avery Pennarun [Fri, 1 May 2009 01:28:26 +0000 (21:28 -0400)]
Added a Makefile to dotnet as an example of how to run tests.

...and call it from the top level 'make test' too.

14 years agoAdd toplevel and python/ 'make test' example targets.
Avery Pennarun [Fri, 1 May 2009 00:58:08 +0000 (20:58 -0400)]
Add toplevel and python/ 'make test' example targets.

14 years agowvtestrunner: print the time taken by each section, and the total time.
Avery Pennarun [Fri, 17 Apr 2009 02:44:43 +0000 (22:44 -0400)]
wvtestrunner: print the time taken by each section, and the total time.

This will perhaps help encourage faster tests.

(cherry picked from commit 6be08f9b861f059da5d3137b7af4e25b77511731)

14 years agowvtestrunner: catch segfaults in the subprogram.
Avery Pennarun [Mon, 24 Nov 2008 22:28:39 +0000 (17:28 -0500)]
wvtestrunner: catch segfaults in the subprogram.

wvtestrunner would notice if the subprogram returned a non-zero exit code,
but not if it died on a signal.  Thus, a unit test program dying on a
segfault was considered a success.  Oops!

(cherry picked from commit 9aff60fa6d55a46440a8e4d6bf343753b2bdc1ec)

14 years agowvtestrunner: timeouts and CRLF support.
Avery Pennarun [Wed, 10 Sep 2008 05:03:37 +0000 (01:03 -0400)]
wvtestrunner: timeouts and CRLF support.

We now time out if there are no test results for 120 seconds.  Also handle
surprise CRLFs in the input stream.

(cherry picked from commit ff9cd2868155ff91201e457008a1bfe0da3e6e40)

14 years agoReplaced wvtesthelper/meter/colour scripts with an all-new wvtestrunner.pl.
Avery Pennarun [Fri, 1 May 2009 01:02:00 +0000 (21:02 -0400)]
Replaced wvtesthelper/meter/colour scripts with an all-new wvtestrunner.pl.

This one is much smarter than previous versions: by default, it prints out
only the headers from "Testing blah blah:" lines and then prints just a "."
for each "! whatever  ok" line.  But, if a test does fail, it prints out
*all* the stdout/stderr that was produced by the test from the "Testing blah
blah" line all the way to the failing test.

It also auto-colours ok/FAILED lines, but only if stdout is a tty, so you
don't need to decide whether you want it coloured or not.

Finally, its output is actually compatible with itself: you can run a
top-level wvtestrunner and it'll further summarize the output of inner
wvtestrunners, because the complete output of a given testrunner is in a
single "Testing blah blah:" section.  But if a failure occurs, you'll still
get the more detailed results.

(cherry picked from commit 49efbe24c148d69873ca78c05e9c5825d50ef49d)

14 years agoImport wvtest for python from eqldata project.
Avery Pennarun [Fri, 1 May 2009 00:46:08 +0000 (20:46 -0400)]
Import wvtest for python from eqldata project.

Commit 5db96d703ab5a0c253d09d0cbcfd56646eaffbfe.

14 years agoImport latest wvtest for C#/.NET from versaplex project.
Avery Pennarun [Fri, 1 May 2009 00:42:44 +0000 (20:42 -0400)]
Import latest wvtest for C#/.NET from versaplex project.

Commit 8f939de8b03b0e0236a182543af0298bb6b97c52.

14 years agoImport basic C++ wvtest from wvstreams project.
Avery Pennarun [Fri, 1 May 2009 01:08:13 +0000 (21:08 -0400)]
Import basic C++ wvtest from wvstreams project.

Commit was 333349d03e15b0081c7141f7164bacc2e1fb196a.

14 years agoInitial .gitignore.
Avery Pennarun [Fri, 1 May 2009 01:06:21 +0000 (21:06 -0400)]
Initial .gitignore.