Commit Graph

71 Commits

Author SHA1 Message Date
Kovid Goyal 2c4891b26d Dont buffer test output when running a specific test 2022-07-06 19:19:46 +05:30
Kovid Goyal 51d2a08501 Allow running individual tests by name using calibre-debug
calibre-debug -c "from calibre.utils.run_tests import *; import sys; run_test(sys.argv[-1])" some_test_name
2022-07-04 19:14:48 +05:30
Kovid Goyal d1242fd29c ... 2022-03-31 11:27:29 +05:30
Kovid Goyal 09ce82c760 Allow usage of SHM from python 2022-03-21 18:15:14 +05:30
Kovid Goyal 24c460faec also upgrade code in setup folder 2022-01-08 12:15:18 +05:30
Eli Schwartz 4761866fa3 tests: fix exclusion of FreeBSD code
calibre.devices.usbms.hal was added as a FreeBSD backend, but the test
exclusion only tries importing it on Linux. It does import on Linux, but
what we actually care about is that it imports on FreeBSD.
2021-12-02 10:49:04 -05:00
Kovid Goyal 35f95c4ed8 Implement validation for html transform rules 2021-11-10 14:33:30 +05:30
Kovid Goyal 573693a052 Cleaner rexec logic 2021-10-04 21:12:51 +05:30
Kovid Goyal b8fce28cb7 oops 2021-10-04 20:58:08 +05:30
Kovid Goyal f577625504 ... 2021-10-04 14:51:15 +05:30
Kovid Goyal f027fac8a2 Use the new env var to disable RTLD_DEEPBIND for pycryptodome when running the tests with sanitization enabled 2021-10-04 14:39:42 +05:30
Kovid Goyal 4dc0502a29 Fix failing tests 2021-06-27 20:13:57 +05:30
Kovid Goyal efdf661457 Remove DBUS based global menu and system tray code
This was mainly present to support GNOME and GNOME has decided to ditch
system trays and global menus. Since the python-dbus package this code
uses is not maintained, ditch it entirely.
2021-06-24 10:55:12 +05:30
Kovid Goyal 009e82c9df Turn on deprecation warnings in CI 2021-06-24 10:20:19 +05:30
Kovid Goyal 53168e075e Alias for test name option 2021-06-19 14:59:48 +05:30
Kovid Goyal 3dd9598139 Remove ASAN patch for bug in arch Qt. Thanks @eli-schwartz 2021-04-14 10:47:53 +05:30
Kovid Goyal 51983180dd Fix ASAN failure on Arch because they switched to some random patchset on top of base Qt 2021-04-08 13:16:55 +05:30
Kovid Goyal 5ce36cc3e6 Option to run tests under sanitizer 2021-03-22 09:35:17 +05:30
Kovid Goyal f92439fe6b Move tests into separate module
Avoids parsing the test code on every import of a very central module
2021-01-21 05:54:51 +05:30
Joseph R. Fox-Rabinovitz efe490b1b7 Added unit tests for author sort function 2021-01-15 12:47:44 -05:00
Kovid Goyal d8e7a58646 Start work on unified framework for live code loading 2020-12-18 18:20:37 +05:30
Kovid Goyal e430bf3312 PDF Output: Yet another attempt at working around chromium's broken TTF embedding. Fixes #1907849 [conversion to pdf results in bizarre kerning](https://bugs.launchpad.net/calibre/+bug/1907849)
This has the advantage of making the merging code a lot simpler as well.
2020-12-12 13:41:48 +05:30
Kovid Goyal d6887a1bfd Exclude winsapi from import all tests on non-windows 2020-10-22 13:47:48 +05:30
Kovid Goyal da5964ec07 Run the SAPI tests in CI 2020-10-22 13:37:37 +05:30
Kovid Goyal 13552bef07 isosx -> ismacos 2020-09-09 14:51:09 +05:30
Kovid Goyal 5075fc2d36 Keep annotations sorted in CFI order when merging 2020-08-22 18:48:11 +05:30
Kovid Goyal e7e78da5c1 Fix devendoring meta path magic on py3 2020-08-22 18:48:03 +05:30
Kovid Goyal 01b0fba8ad Auto fix excess blank lines 2020-08-22 18:47:56 +05:30
Kovid Goyal 9ff27782de Remove useless __future__ imports
Not needed on python3
2020-08-22 18:47:55 +05:30
Kovid Goyal 29cd8d64ea Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
Kovid Goyal 6c9c141c3e Add a command to easily run rapydscript tests 2020-04-02 16:34:07 +05:30
Aimylios 5c795352c9 Allow excluding individual tests from test run 2020-01-17 21:54:25 +01:00
Kovid Goyal 231664e7ca Move test location 2020-01-08 22:25:38 +05:30
Kovid Goyal f0e6ead4c7 Better workaround for XXE in lxml
Instead of disabling resolution of all entities, only disable resolution
of entities from files
2020-01-08 22:03:38 +05:30
Kovid Goyal b16b5535bf Implement mapping of locales to dictionary names 2019-12-01 10:50:32 +05:30
Kovid Goyal d304e08ec1 Code to merge W arrays 2019-09-13 09:12:24 +05:30
Kovid Goyal 7803f3de36 Rename viewer2 to viewer 2019-09-13 09:12:20 +05:30
Kovid Goyal 59b9357c0c Add tests for the new viewer cache 2019-09-13 09:12:11 +05:30
Kovid Goyal c5aeaa8c8a Cleanup HTML metadata parsing 2019-08-12 10:10:50 +05:30
Kovid Goyal 0f3b2e2329 Dont use win32com for adding to recent docs 2019-06-11 14:50:05 +05:30
Kovid Goyal b842fe758a Fixes for f2e0181926 2019-05-27 14:25:52 +05:30
Kovid Goyal 8366df8637 Run code quality checks on the odf package 2019-05-20 16:52:16 +05:30
Kovid Goyal 50dd4952cb Fix removal of invalid directories in import test 2019-04-10 20:48:09 +05:30
Kovid Goyal 8b280c03c3 py3: Port RTF metadata module 2019-03-31 13:45:46 +05:30
Kovid Goyal c33768b35e Move the python imports test out of the build test module
The build test is designed to run with frozen calibre, where the
source files may not be available. So run it only as part of
the setup test suite.
2019-03-31 09:31:38 +05:30
Kovid Goyal de9d97d688 Port use of BS for comments_html() 2019-03-25 09:52:45 +05:30
Kovid Goyal ae735b2ea3 De-vendor html2text 2019-03-20 14:42:46 +05:30
Kovid Goyal 626d5aa1ce Infrastructure for author name mapping 2018-07-17 15:32:58 +05:30
Kovid Goyal 3f9c5a8719 Move the search query parser tests into their own module and integrate with the calibre testing system 2018-01-18 10:03:30 +05:30
Kovid Goyal 0fdf23de8b Simplify windows exclusive file implementation by using msvcrt.locking as a fcntl substitute 2017-05-21 13:39:26 +05:30