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

We reuse TestExternalToolchainBuildrootuClibc and add ccache to its
configuration.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Arnout Vandecappelle 2017-07-24 13:16:26 +02:00 committed by Thomas Petazzoni
parent c5b85231fb
commit 6355ec2768
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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)