From 3310d3519a79a811613595adc30b22445895d655 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Jun 2016 08:45:57 +0530 Subject: [PATCH] Run the build tests also from python setup.py test --- setup/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/test.py b/setup/test.py index 2b84f4364f..56ade73453 100644 --- a/setup/test.py +++ b/setup/test.py @@ -8,7 +8,7 @@ import unittest 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): ans = [] @@ -16,6 +16,9 @@ def find_tests(which_tests=None): def ok(x): 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'): from calibre.srv.tests.main import find_tests a(find_tests())