Commit graph

18 commits

Author SHA1 Message Date
Paul Beckingham
f21568ae4c Tests: Set sys.stdout as utf8 2016-11-21 22:07:02 -05:00
Paul Beckingham
973cb8a718 Tests: Fixed test harness for Python 3.x.
- Thanks to jrabbit.
2016-11-21 20:34:18 -05:00
Wilhelm Schuermann
01b5d0a66b Test: Fix mangled "run_all --verbose" output
For lack of being able to reproduce the problem, this is a "fix by
guessing at the root cause" commit.  Don't do this at home.

FreeBSD was showing a 100.04% test suite run because the output of
"test/problems --summary" was intertwined with TAP output.

The only somewhat sane way for this to happen that does not involve
magic is that Python's sys.stdout buffer is not flushed before calling
subprocess.call(), which uses the raw file descriptors.

A quick check of the sources seems to support this theory.
2015-11-17 21:54:14 +01:00
Daniel Shahaf
823e3d51d0 Test: Make 'make test' exit non-zero if tests failed 2015-11-07 17:45:55 -05:00
Tomas Babej
f22322bc18 problems: Return non-zero code when some tests fail 2015-09-11 07:50:37 -04:00
Wilhelm Schuermann
d9dc685feb Tests: Parallelize bash_tap.sh tests
- bash_tap.sh, like the Python test suite, runs tests in a temporary
  directory and can be parallelized.
2015-07-20 20:33:52 +02:00
Daniel Shahaf
808524507e Tests: Python 3 compatibility
The tests use '#!/usr/bin/env python' which may be Python 3.  Adjust the
tests to work under either Python 2 or Python 3.

This introduces a use of b"" string literals, which are supported by
Python 2.7 and Python 3, but not by Python 2.6.

Also, document the required minimum Python version.
2015-07-17 19:27:48 +01:00
Renato Alves
338603efa6 Test: Remove prefix # from run_all logging output 2015-07-17 08:53:11 +01:00
Renato Alves
157f191546 Test: Show total time on serial and parallel tests
Visible only when using run_all -l (or above)
2015-07-13 02:15:34 +01:00
Renato Alves
03847ab8ba Test: run_all is now in Python and defaults to parallelizing tests
In addition to the conversion to Python, run_all now defaults to running
all Python tests in parallel, using the same approach previously
available via '--fast'. If desired one can force all tests to run
serially by calling run_all with --serial

A debugging flag was now also included in run_all.  Pass one or more -l
(-l, -ll or -lll) for different levels of debugging information.
2015-06-25 23:36:28 +01:00
Federico Hernandez
112d0d8771 Unit tests
- portability to help flod
2012-09-12 00:00:54 +02:00
Federico Hernandez
31bbc0ea2f Unit testing
- verbose unit testing to help flod tinderbox in displaying the results.
2012-09-11 22:38:40 +02:00
Federico Hernandez
89a7f2a459 Unit tests
- run_all should also look for *.t.exe files on cygwin
2012-09-10 21:07:05 +02:00
Louis-Claude Canon
542f1e0f82 Code Cleanup
- Clearer commands for sumarizing the test results.
2012-05-23 06:53:12 -04:00
Owen Clarke
049f34d339 Portability
- Improved run_all script to run on Solaris.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2012-02-25 23:10:11 -05:00
Paul Beckingham
1b55a48757 Unit Tests
- Eliminated obsolete benchmark.t.
- Removed the 'quick' mode logic to skip benchmarks in run_all.
- Restored bug.480.t tests that hung earlier.
2011-08-21 01:09:32 -04:00
Paul Beckingham
04033911c3 Unit Tests
- Modified several unit tests to accomodate new column names.
2011-05-08 17:14:28 -04:00
Federico Hernandez
17ef077e27 Moved src/tests to test (cmake preperations) 2010-12-28 21:17:23 +01:00
Renamed from src/tests/run_all (Browse further)