Skip to contentSkip to conversation

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

PATCH Superseded Arnout Vandecappelle (Essensium/Mind) 1 participant 1 message Jul 23, 2017

lore
Share & tools
lore
#0 lore raw

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

We reuse TestExternalToolchainBuildrootuClibc and add ccache to its configuration.

---
v3:
- += instead of ... = ... + ... [Ricardo]
- remove spaces around parameter equals [Ricardo]
- remove empty line at end of file [Ricardo]

v2: separate test instead of hijacking BuildrootuClibc test

---
 support/testing/tests/toolchain/test_external.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)
support/testing/tests/toolchain/test_external.py +12 -0
index afb4bb0b50..57e2f11451 100644
@@ -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)
+
Signature · 1 line
2.13.2