[Buildroot] [PATCH 2/2] support/testing: add test of BR2_CCACHE with an external toolchain
Arnout Vandecappelle (Essensium/Mind)
arnout at mind.be
Mon Jul 10 20:40:07 UTC 2017
We reuse TestExternalToolchainBuildrootuClibc and add ccache to its
configuration.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
support/testing/tests/toolchain/test_external.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/support/testing/tests/toolchain/test_external.py b/support/testing/tests/toolchain/test_external.py
index afb4bb0b50..57e2f11451 100644
--- a/support/testing/tests/toolchain/test_external.py
+++ b/support/testing/tests/toolchain/test_external.py
@@ -229,3 +229,15 @@ 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.config + self.extraconfig.format(builddir = self.builddir)
+
--
2.13.2
More information about the buildroot
mailing list