mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Run the build tests also from python setup.py test
This commit is contained in:
parent
975efe314e
commit
3310d3519a
@ -8,7 +8,7 @@ import unittest
|
|||||||
|
|
||||||
from setup import Command
|
from setup import Command
|
||||||
|
|
||||||
TEST_MODULES = frozenset('srv db polish opf css docx cfi matcher icu smartypants'.split())
|
TEST_MODULES = frozenset('srv db polish opf css docx cfi matcher icu smartypants build'.split())
|
||||||
|
|
||||||
def find_tests(which_tests=None):
|
def find_tests(which_tests=None):
|
||||||
ans = []
|
ans = []
|
||||||
@ -16,6 +16,9 @@ def find_tests(which_tests=None):
|
|||||||
def ok(x):
|
def ok(x):
|
||||||
return not which_tests or x in which_tests
|
return not which_tests or x in which_tests
|
||||||
|
|
||||||
|
if ok('build'):
|
||||||
|
from calibre.test_build import find_tests
|
||||||
|
a(find_tests())
|
||||||
if ok('srv'):
|
if ok('srv'):
|
||||||
from calibre.srv.tests.main import find_tests
|
from calibre.srv.tests.main import find_tests
|
||||||
a(find_tests())
|
a(find_tests())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user