Commit 6355ec27 authored by Arnout Vandecappelle's avatar Arnout Vandecappelle Committed by Thomas Petazzoni
Browse files

support/testing: add test of BR2_CCACHE with an external toolchain



We reuse TestExternalToolchainBuildrootuClibc and add ccache to its
configuration.
Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: default avatarRicardo Martincoski <ricardo.martincoski@gmail.com>
Tested-by: default avatarRicardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent c5b85231
......@@ -233,6 +233,7 @@ tests.package.test_python.TestPython2: *runtime_test
tests.package.test_python.TestPython3: *runtime_test
tests.toolchain.test_external.TestExternalToolchainBuildrootMusl: *runtime_test
tests.toolchain.test_external.TestExternalToolchainBuildrootuClibc: *runtime_test
tests.toolchain.test_external.TestExternalToolchainCCache: *runtime_test
tests.toolchain.test_external.TestExternalToolchainCtngMusl: *runtime_test
tests.toolchain.test_external.TestExternalToolchainLinaroArm: *runtime_test
tests.toolchain.test_external.TestExternalToolchainSourceryArmv4: *runtime_test
......
......@@ -229,3 +229,14 @@ BR2_TOOLCHAIN_EXTERNAL_CXX=y
kernel="builtin",
options=["-initrd", img])
self.emulator.login()
class TestExternalToolchainCCache(TestExternalToolchainBuildrootuClibc):
extraconfig = \
"""
BR2_CCACHE=y
BR2_CCACHE_DIR="{builddir}/ccache-dir"
"""
def __init__(self, names):
super(TestExternalToolchainBuildrootuClibc, self).__init__(names)
self.config += self.extraconfig.format(builddir=self.builddir)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment