Max Rossmannek
8b91cd97a8
Enforce Python 3 in test_hooks/wrapper
...
This change was not included in the previous commit because the sed
command I used included the `/usr/bin/env` path to ensure I don't
replace any occurences of the word `python` which I did not wish to
replace.
2020-11-30 00:51:54 -05:00
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
mrossinek
4f14b8923f
Fix variant_subtract test case after PR #2095
2020-11-24 08:12:39 -05:00
Max Rossmannek
cad9a4f834
Update diag.t to correct C++ version
...
The default C++ version was updated in 4729876
and this commit reflects
this change in the test.
2020-11-24 08:12:39 -05:00
mrossinek
ca1e2a5a6b
Mark project.t 1455 as expected failure
2020-11-24 08:12:39 -05:00
Tomas Babej
79e076c3c0
tests: Use updated unittest method
2020-11-24 08:12:39 -05:00
mrossinek
7d567c3ac9
Fix wait.t to correct expected output
2020-11-24 08:12:39 -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
351965a87b
Update copyright to 2020
2020-11-21 12:43:40 -05:00
Tomas Babej
d1b867f7b5
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:41:18 -05:00
Tomas Babej
52c49169b4
tests: Use updated unittest methods
2020-11-21 12:39:03 -05:00
Tomas Babej
720c561b75
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:38:14 -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
Paul Beckingham
fb97883bef
Build: 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.
- Thanks to Janik Rabe
2019-04-26 20:45:46 -04:00
mrossinek
f06eb12d10
Add unit test
2019-04-14 19:45:13 -04:00
Paul Beckingham
b87703eb39
Tests: REmoved check for absence of a segfault
...
- Testing for the absence of a segfault is not a good test.
2019-03-03 10:50:49 -05:00
Paul Beckingham
863038905c
Tests: Version test removed
...
- Veriying that the diag command emits the correct commit SHA1 creates
sporadic failures when CMake has not been run against the current
commit, and this is not a good test.
2019-03-03 10:34:09 -05:00
Paul Beckingham
2eb488359d
Certs: Updated test certs
2019-03-03 10:03:42 -05:00
mrossinek
5aaee7678f
Add unit test
2019-03-02 19:44:18 -05:00
Paul Beckingham
3c73af7964
Updated Copyright
2019-03-02 14:33:04 -05:00
Paul Beckingham
3313e1f6cc
Updated copyright
2019-03-02 14:13:31 -05:00
Paul Beckingham
49a5937ace
Test: Updated diag test expectation
2019-03-02 14:03:34 -05:00
taiyu
5150eb4b0f
update tests for changes
2019-02-07 08:41:25 -05:00
Tomas Babej
d457bca59a
tests: Add CentOS7 CI testing support
2019-02-07 08:37:59 -05:00
Tomas Babej
8f8a04fdb5
tests: Install libfaketime in all containers
2019-02-07 08:37:59 -05:00
Tomas Babej
a4ce40add4
tests: Improve bytes python3 compatibility
2019-02-07 08:37:59 -05:00
Tomas Babej
b8347821c4
tests: due:yesterday does not match current year on 1st of January
2019-02-07 08:37:59 -05:00
Tomas Babej
3f97a034c7
tests: mkstemp_exec needs argument in bytes
2019-02-07 08:37:59 -05:00
Tomas Babej
74949bb049
tests: Fix incorrect assert method
2019-02-07 08:37:59 -05:00
Tomas Babej
9e7f259d03
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-02-07 08:37:59 -05:00
Tomas Babej
b8b06e6680
tests: Encode input data for the subprocess
...
Needed for Python2/3 compatibility.
2019-02-07 08:37:59 -05:00
Tomas Babej
928befeea2
tests: Use verbose output when running the tests
2019-02-07 08:37:59 -05:00
Tomas Babej
2140298af2
tests: Do not explicitly require Python 2.7
2019-02-07 08:37:59 -05:00
Tomas Babej
adece30891
tests: Add Archlinux 2018 platform
2019-02-07 08:37:59 -05:00
Tomas Babej
012430cfb6
tests: Add OpenSUSE platform
2019-02-07 08:37:59 -05:00
Tomas Babej
0b20a7eef8
tests: Add Debian Testing as a platform
2019-02-07 08:37:59 -05:00
Tomas Babej
82102f59ba
tests: Add gentoo platform
2019-02-07 08:37:59 -05:00
Tomas Babej
ea2c4d96b4
tests: Add support for Fedora 29
2019-02-07 08:37:59 -05:00
Tomas Babej
9518cdc1e9
tests: Add testing support for Ubuntu 18.04
2019-02-07 08:37:59 -05:00
Tomas Babej
7153a03a5f
tests: Properly set the xtrace flag
2019-02-07 08:37:59 -05:00
Tomas Babej
d748650691
tests: Add OS X test sript
2019-02-07 08:37:59 -05:00
Tomas Babej
cf9f6e958c
tests: Add test container for Debian Stable
2019-02-07 08:37:59 -05:00
Tomas Babej
b5cf4ca56e
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-02-07 08:37:59 -05:00