summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorRicardo Martincoski <ricardo.martincoski@datacom.ind.br>2019-01-28 18:22:06 -0500
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2019-01-29 22:16:33 +0100
commit4d5d0124c795a4269e9ae81efcdd1a121dd2f739 (patch)
tree21f7dfc3a4b39f44888510cf3626aa0c6132bb9a /support
parent07bbf1b4dd1fc97e31950b5ba827af7807386179 (diff)
downloadbuildroot-4d5d0124c795a4269e9ae81efcdd1a121dd2f739.tar.gz
buildroot-4d5d0124c795a4269e9ae81efcdd1a121dd2f739.zip
support/testing/infra/basetest: support br2-external
Some upcoming test cases can use one or more br2-external trees as fixtures that provide packages used only in runtime tests. Add support for br2-external into the BRTest class. Any test case can then provide a list of paths for being used as br2-external trees during the build of the image to test. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Daniel J. Leach <dleach@belcan.com> Signed-off-by: Adam Duskett <Aduskett@gmail.com> Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com> [Thomas: use named argument for make_extra_opts.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'support')
-rw-r--r--support/testing/infra/basetest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py
index 5014fefafa..e67bf1af23 100644
--- a/support/testing/infra/basetest.py
+++ b/support/testing/infra/basetest.py
@@ -30,6 +30,7 @@ MINIMAL_CONFIG = \
class BRTest(unittest.TestCase):
config = None
+ br2_external = list()
downloaddir = None
outputdir = None
logtofile = True
@@ -58,7 +59,7 @@ class BRTest(unittest.TestCase):
if not self.b.is_finished():
self.show_msg("Building")
- self.b.configure()
+ self.b.configure(make_extra_opts=["BR2_EXTERNAL={}".format(":".join(self.br2_external))])
self.b.build()
self.show_msg("Building done")
OpenPOWER on IntegriCloud