summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2017-07-24 13:16:26 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-24 18:35:15 +0200
commit6355ec2768c486de318b76835af73fdcb894b311 (patch)
treee173d4219dd882c49d53261b49d8d1cceebcac7f
parentc5b85231fb35e447ad0f9739aab8361d0dab129c (diff)
downloadbuildroot-6355ec2768c486de318b76835af73fdcb894b311.tar.gz
buildroot-6355ec2768c486de318b76835af73fdcb894b311.zip
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>
-rw-r--r--.gitlab-ci.yml1
-rw-r--r--support/testing/tests/toolchain/test_external.py11
2 files changed, 12 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 57710ab9a6..42707ad1a6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
diff --git a/support/testing/tests/toolchain/test_external.py b/support/testing/tests/toolchain/test_external.py
index afb4bb0b50..394fa17345 100644
--- a/support/testing/tests/toolchain/test_external.py
+++ b/support/testing/tests/toolchain/test_external.py
@@ -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)
OpenPOWER on IntegriCloud