sanitycheck: Remove the --ccache option from sanitycheck
The --ccache option will be replaced by another mechanism. Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
728cda15de
commit
781e39887c
1 changed files with 6 additions and 22 deletions
|
@ -689,7 +689,7 @@ class MakeGenerator:
|
||||||
|
|
||||||
re_make = re.compile("sanity_test_([A-Za-z0-9]+) (.+)|$|make[:] \*\*\* \[(.+:.+: )?(.+)\] Error.+$")
|
re_make = re.compile("sanity_test_([A-Za-z0-9]+) (.+)|$|make[:] \*\*\* \[(.+:.+: )?(.+)\] Error.+$")
|
||||||
|
|
||||||
def __init__(self, base_outdir, asserts=False, deprecations=False, ccache=0):
|
def __init__(self, base_outdir, asserts=False, deprecations=False):
|
||||||
"""MakeGenerator constructor
|
"""MakeGenerator constructor
|
||||||
|
|
||||||
@param base_outdir Intended to be the base out directory. A make.log
|
@param base_outdir Intended to be the base out directory. A make.log
|
||||||
|
@ -705,7 +705,6 @@ class MakeGenerator:
|
||||||
self.makefile = os.path.join(base_outdir, "Makefile")
|
self.makefile = os.path.join(base_outdir, "Makefile")
|
||||||
self.asserts = asserts
|
self.asserts = asserts
|
||||||
self.deprecations = deprecations
|
self.deprecations = deprecations
|
||||||
self.ccache = ccache
|
|
||||||
|
|
||||||
def _get_rule_header(self, name):
|
def _get_rule_header(self, name):
|
||||||
return MakeGenerator.GOAL_HEADER_TMPL.format(goal=name)
|
return MakeGenerator.GOAL_HEADER_TMPL.format(goal=name)
|
||||||
|
@ -728,15 +727,6 @@ class MakeGenerator:
|
||||||
if self.deprecations:
|
if self.deprecations:
|
||||||
cflags = cflags + " -Wno-deprecated-declarations"
|
cflags = cflags + " -Wno-deprecated-declarations"
|
||||||
|
|
||||||
if self.ccache:
|
|
||||||
# CMake enables ccache by default when installed
|
|
||||||
#
|
|
||||||
# sanitycheck requires the user to explicitly enable
|
|
||||||
# ccache
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
args += " -DUSE_CCACHE=0"
|
|
||||||
|
|
||||||
return MakeGenerator.MAKE_RULE_TMPL.format(
|
return MakeGenerator.MAKE_RULE_TMPL.format(
|
||||||
phase=phase,
|
phase=phase,
|
||||||
goal=name,
|
goal=name,
|
||||||
|
@ -1410,7 +1400,6 @@ class TestSuite:
|
||||||
config_filter = args.config
|
config_filter = args.config
|
||||||
platform_limit = args.platform_limit
|
platform_limit = args.platform_limit
|
||||||
extra_args = args.extra_args
|
extra_args = args.extra_args
|
||||||
enable_ccache = args.ccache
|
|
||||||
all_plats = args.all
|
all_plats = args.all
|
||||||
|
|
||||||
verbose("platform filter: " + str(platform_filter))
|
verbose("platform filter: " + str(platform_filter))
|
||||||
|
@ -1418,7 +1407,6 @@ class TestSuite:
|
||||||
verbose(" tag_filter: " + str(tag_filter))
|
verbose(" tag_filter: " + str(tag_filter))
|
||||||
verbose(" exclude_tag: " + str(exclude_tag))
|
verbose(" exclude_tag: " + str(exclude_tag))
|
||||||
verbose(" config_filter: " + str(config_filter))
|
verbose(" config_filter: " + str(config_filter))
|
||||||
verbose(" enable_ccache: " + str(enable_ccache))
|
|
||||||
|
|
||||||
if last_failed:
|
if last_failed:
|
||||||
failed_tests = self.get_last_failed()
|
failed_tests = self.get_last_failed()
|
||||||
|
@ -1433,7 +1421,7 @@ class TestSuite:
|
||||||
info("Selecting default platforms per test case")
|
info("Selecting default platforms per test case")
|
||||||
default_platforms = True
|
default_platforms = True
|
||||||
|
|
||||||
mg = MakeGenerator(self.outdir, ccache=enable_ccache)
|
mg = MakeGenerator(self.outdir)
|
||||||
dlist = {}
|
dlist = {}
|
||||||
for tc_name, tc in self.testcases.items():
|
for tc_name, tc in self.testcases.items():
|
||||||
for arch_name, arch in self.arches.items():
|
for arch_name, arch in self.arches.items():
|
||||||
|
@ -1667,7 +1655,7 @@ class TestSuite:
|
||||||
self.instances[ti.name] = ti
|
self.instances[ti.name] = ti
|
||||||
|
|
||||||
def execute(self, cb, cb_context, build_only, enable_slow, enable_asserts, enable_deprecations,
|
def execute(self, cb, cb_context, build_only, enable_slow, enable_asserts, enable_deprecations,
|
||||||
extra_args, enable_ccache):
|
extra_args):
|
||||||
|
|
||||||
def calc_one_elf_size(name, goal):
|
def calc_one_elf_size(name, goal):
|
||||||
if not goal.failed:
|
if not goal.failed:
|
||||||
|
@ -1677,8 +1665,7 @@ class TestSuite:
|
||||||
goal.metrics["rom_size"] = sc.get_rom_size()
|
goal.metrics["rom_size"] = sc.get_rom_size()
|
||||||
goal.metrics["unrecognized"] = sc.unrecognized_sections()
|
goal.metrics["unrecognized"] = sc.unrecognized_sections()
|
||||||
|
|
||||||
mg = MakeGenerator(self.outdir, asserts=enable_asserts, deprecations=enable_deprecations,
|
mg = MakeGenerator(self.outdir, asserts=enable_asserts, deprecations=enable_deprecations)
|
||||||
ccache=enable_ccache)
|
|
||||||
for i in self.instances.values():
|
for i in self.instances.values():
|
||||||
mg.add_test_instance(i, build_only, enable_slow, self.coverage, extra_args)
|
mg.add_test_instance(i, build_only, enable_slow, self.coverage, extra_args)
|
||||||
self.goals = mg.execute(cb, cb_context)
|
self.goals = mg.execute(cb, cb_context)
|
||||||
|
@ -1907,9 +1894,6 @@ def parse_arguments():
|
||||||
parser.add_argument("--compare-report",
|
parser.add_argument("--compare-report",
|
||||||
help="Use this report file for size comparison")
|
help="Use this report file for size comparison")
|
||||||
|
|
||||||
parser.add_argument("--ccache", action="store_const", const=1, default=0,
|
|
||||||
help="Enable the use of ccache when building")
|
|
||||||
|
|
||||||
parser.add_argument("-B", "--subset",
|
parser.add_argument("-B", "--subset",
|
||||||
help="Only run a subset of the tests, 1/4 for running the first 25%%, "
|
help="Only run a subset of the tests, 1/4 for running the first 25%%, "
|
||||||
"3/5 means run the 3rd fifth of the total. "
|
"3/5 means run the 3rd fifth of the total. "
|
||||||
|
@ -2174,11 +2158,11 @@ def main():
|
||||||
if VERBOSE or not TERMINAL:
|
if VERBOSE or not TERMINAL:
|
||||||
goals = ts.execute(chatty_test_cb, ts.instances, args.build_only,
|
goals = ts.execute(chatty_test_cb, ts.instances, args.build_only,
|
||||||
args.enable_slow, args.enable_asserts, args.error_on_deprecations,
|
args.enable_slow, args.enable_asserts, args.error_on_deprecations,
|
||||||
args.extra_args, args.ccache)
|
args.extra_args)
|
||||||
else:
|
else:
|
||||||
goals = ts.execute(terse_test_cb, ts.instances, args.build_only,
|
goals = ts.execute(terse_test_cb, ts.instances, args.build_only,
|
||||||
args.enable_slow, args.enable_asserts, args.error_on_deprecations,
|
args.enable_slow, args.enable_asserts, args.error_on_deprecations,
|
||||||
args.extra_args, args.ccache)
|
args.extra_args)
|
||||||
info("")
|
info("")
|
||||||
|
|
||||||
# figure out which report to use for size comparison
|
# figure out which report to use for size comparison
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue