Commit graph

22 commits

Author SHA1 Message Date
mattsmida
ef9613e2d6
Renaming test files according to their language (#3407) 2024-05-01 14:28:07 -04:00
Felix Schurk
d093ce3d84
Fix test script paths (#3387)
* fix path to task executable in pyton tests

The current approach would copy the current files into the `build/test`
directory. Updating the paths according to the custom user setup.

By the copy I appended `.py` to have a clear visible distingtion which
ones are the python tests.

As soon as a source file in the normal directory is changed, it is
copied over and the corresponding file is updated.

From now on the python tests would need to get run in the according
build directory.

* reflect the current build instruction in PR template

* update paths and globing in run_all

* add line break for every cpp test

* remove .gitignore in test folder

As now all the auxillary files such as `all.log` as well as the
executables are present in the `build` directory there is no longer a
need to ignore them.

* update paths in python test scripts and enable deactivated

* remove .py extension when copy to build

Further remove glob pattern for `*.t.py` tests.

* remove accidentally added template.t from test files
2024-04-28 15:38:14 -04:00
Dustin J. Mitchell
31105c2ba3
Sync against taskchampion-sync-server (#3118)
This removes use of gnutls and the TLS implementation, which is no
longer needed (task synchronization is handled via Taskchampion, which
uses `reqwest`, which handles TLS via other Rust dependencies). This
incidentally removes the following config options:
 * `debug.tls`
 * `taskd.ca`
 * `taskd.certificate`
 * `taskd.ciphers`
 * `taskd.credentials`
 * `taskd.key`
 * `taskd.server`
 * `taskd.trust`
2023-07-08 10:27:33 -04:00
Max Rossmannek
6d2ecaa15c
Enforce Python 3 for unittests
This commit updates all tests to enforce the Python3 executable. This is
necessary because the `assertRegex` function we use was renamed to this
name only in Python 3.2 [1]

For reference:
s;/usr/bin/env python;/usr/bin/env python3;g

[1]: https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRegex
2020-12-06 10:00:59 -05:00
Paul Beckingham
a821c886b3 Tests: Set sys.stdout as utf8 2018-05-13 20:23:05 -04:00
Paul Beckingham
b323069419 Tests: Fixed test harness for Python 3.x.
- Thanks to jrabbit.
2018-05-13 20:22:52 -04: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)