Skip to contentSkip to conversation

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

PATCH New Arnout Vandecappelle (Essensium/Mind) 2 participants 2 messages Jul 24, 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.

---
Sorry, I forgot to commit before sending, this is the *real* v3.

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 | 11 +++++++++++
 1 file changed, 11 insertions(+)
support/testing/tests/toolchain/test_external.py +11 -0
index afb4bb0b50..394fa17345 100644
@@ -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)
Signature · 1 line
2.13.2
#1 lore raw

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

Hello,

Quoted 8 lines · Arnout Vandecappelle (Essensium/Mind)

We reuse TestExternalToolchainBuildrootuClibc and add ccache to its configuration.

---
Sorry, I forgot to commit before sending, this is the *real* v3.

Applied to master, thanks. However, you forgot to
regenerate .gitlab-ci.yml, so I've done so.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com