Commit graph

2226 commits

Author SHA1 Message Date
Max Rossmannek
f35989be0e 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-11-30 00:51:54 -05:00
Tomas Janousek
2c4d4ad649 Test: Add UUID test demonstrating a "Cannot subtract strings" bug
$ task 0000000d-000a-0000-0000-000000000000 export
Cannot subtract strings
$ task 0000000d-0000-0000-0000-000000000000 export
The expression could not be evaluated.
2020-11-24 02:42:32 -05:00
Tomas Babej
a09f9d48ab Update copyright to 2020 2020-11-21 12:27:05 -05:00
Tomas Babej
d81b999fa9 tests: Do not require line buffering
Test runner complains about it not being supported with binary files and
it does not look like it affects any tests in the first place anyway.
2020-11-21 12:27:05 -05:00
Tomas Babej
02db131fa1 tests: Use updated unittest method 2020-11-21 12:27:05 -05:00
Tomas Babej
407d66d681 tests: Use updated Thread object API
Replace isAlive with is_alive as the former is no longer supported in
Python 3.9.
2020-11-21 12:27:05 -05:00
Martin Michlmayr
174507e7ad Fix typos 2020-11-17 10:41:13 -05:00
javabird25
81183ae7d1 Fix SIGSEGV when substituting sequence with shorter one 2020-11-17 10:40:38 -05:00
Yoichi Hirai
ab443a8ecf Fix one test about backslash
The test was failing because it expected "Created task 1"
but it saw "Created task 0a436fd8-7f06-4168-a66d-bbc940498af9".

Instead, the new code looks at the description of task 1.
2020-11-17 10:39:37 -05:00
Vladimir Rusinov
abddb1ea8e Fix add.t Test1549 test failure.
The test was failing on my machine on fresh checkout. It failed because
somehow both new-id and new-uuid verbosity were set during the test, so
TW defaulted to printing out uuid, which did not match the assertion.

Test fixed by explicitly setting verbosity to new-id.
2020-03-12 10:37:14 -04:00
mrossinek
5aaee7678f Add unit test 2019-03-02 19:44:18 -05:00
taiyu
5150eb4b0f update tests for changes 2019-02-07 08:41:25 -05:00
Paul Beckingham
b6da775958 Update summary.t 2019-02-07 08:20:14 -05:00
Paul Beckingham
2e72ae5068 Update project.t 2019-02-07 08:20:14 -05:00
mrossinek
7cb341ee05 Extend bug fix of #1917 to summary command 2019-02-07 08:20:14 -05:00
mrossinek
9c89870c71 Add unit-tests to verify fix for 1904 2019-02-07 08:20:14 -05:00
Tomas Babej
f95d1d0472 tests: Add CentOS7 CI testing support 2019-01-02 13:24:11 -05:00
mrossinek
517ea11c4c
Mark project.t 1455 as expected failure 2019-01-02 17:32:03 +01:00
mrossinek
447830dc68
Fix wait.t to correct expected output 2019-01-02 16:36:45 +01:00
mrossinek
fc3b336f1a
Fix variant_subtract test case after PR #2095 2019-01-02 16:32:16 +01:00
Tomas Babej
9fa94516ad tests: Make sure expected message is printed out
Information about newly logged task is only printed if new-uuid
verbosity flag is configured.
2019-01-01 21:31:00 -05:00
Tomas Babej
55ee8c9233 tests: Install libfaketime in all containers 2019-01-01 20:19:52 -05:00
Tomas Babej
9b690fca57 tests: Improve bytes python3 compatibility 2019-01-01 20:11:13 -05:00
Tomas Babej
7aac91f29f tests: due:yesterday does not match current year on 1st of January 2019-01-01 20:02:20 -05:00
Tomas Babej
0e052b6415 tests: We are enforcing C++14 compliance
From the 2.6.0 version onwards we are enforcing C++14 compliance. Test
accordingly.
2019-01-01 19:46:32 -05:00
Tomas Babej
ef3c1bc090 tests: mkstemp_exec needs argument in bytes 2019-01-01 19:44:39 -05:00
Tomas Babej
cd52782d2f tests: Fix incorrect assert method 2019-01-01 19:44:39 -05:00
Tomas Babej
07c21e79ad tests: Do not use filter objects
The filter objects are not well handled by the unittest framework, pass
a concrete number of occurences instead.
2019-01-01 19:44:39 -05:00
Tomas Babej
7c37940549 tests: Encode input data for the subprocess
Needed for Python2/3 compatibility.
2019-01-01 19:09:54 -05:00
Tomas Babej
f55468d5aa tests: Use verbose output when running the tests 2019-01-01 15:44:19 -05:00
Tomas Babej
675b8e2798 tests: Do not explicitly require Python 2.7 2019-01-01 14:53:44 -05:00
Tomas Babej
8ae7e1677b tests: Add Archlinux 2018 platform 2019-01-01 14:25:57 -05:00
Tomas Babej
86c7c84fec tests: Add OpenSUSE platform 2019-01-01 14:10:23 -05:00
Tomas Babej
dcbefe51bb tests: Add Debian Testing as a platform 2019-01-01 13:51:47 -05:00
Tomas Babej
a50f442c10 tests: Add gentoo platform 2019-01-01 13:25:07 -05:00
Tomas Babej
eed5a30ecc tests: Add support for Fedora 29 2019-01-01 12:01:24 -05:00
Tomas Babej
4dbad4c1e2 tests: Add testing support for Ubuntu 18.04 2019-01-01 12:00:19 -05:00
Tomas Babej
043bcbfb2f tests: Properly set the xtrace flag 2019-01-01 11:12:02 -05:00
Tomas Babej
90170a5820 tests: Add OS X test sript 2019-01-01 11:04:24 -05:00
Tomas Babej
a7baa9fef2 tests: Add test container for Debian Stable 2019-01-01 09:34:09 -05:00
Tomas Babej
ac8c6d52fc tests: Change default command of the test containers to end with ./problems
This makes sure that non-zero return code is propagated out of the
container.
2019-01-01 09:33:29 -05:00
Tomas Babej
9a8890f479 test: Workaround the cyclic dependencies between the libraries 2019-01-01 08:59:46 -05:00
Tomas Babej
3e41a4b01f test: Add fedora28 and ubuntu1604 dockerfiles
These dockerfiles can be used to run taskwarrior's test suite on the
respective platforms using the following commands:

$ cd taskwarrior.git
$ docker build -t test-tw-fedora28 -f test/docker/fedora28 .
$ docker run test-tw-fedora28

For ubuntu, replace fedora28 with ubuntu1604.
2019-01-01 08:48:36 -05:00
Tomas Babej
8066e4e6e2 meta: Update copyright year 2019-01-01 08:46:21 -05:00
Janik Rabe
32b3afc8d0
Do not set CMP0037 on CMake 3.11.0 and above
This policy is no longer necessary because CMake issue #16062, which
caused incorrect warnings to be shown, has been resolved in 3.11.0.
2018-08-11 15:38:28 +03:00
Paul Beckingham
d312775f99 TW #1973: Don't nag when no tasks are READY
- Thanks to Martin F. Krafft
2018-03-18 11:09:34 -04:00
Simon Ruderich
e817dfc800 Always use https:// link for opensource.org
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Federico Hernandez
4ffdfe817f Changed to a more generic URL for testing 2018-02-18 00:30:13 +01:00
Jakub Wilk
e36145b4fa Tests: Don't hardcode errno constants
The values of ENOENT and ESRCH are architecture-dependent, so don't
assume they're always 2 and 3.
2018-02-17 13:59:29 +01:00
Paul Beckingham
4a929197ae Build: C++14 support added 2018-02-16 22:04:29 -05:00