aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGravatar Atharva Lele <itsatharva@gmail.com>2019-06-07 14:25:58 +0530
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-06-08 22:56:41 +0200
commit9355933afdb47e000080c7489b1d8a15cbba7e3a (patch)
tree76ab9488bd87a802427d8a45fe8f57f0eca061eb /utils
parent11a290b5890c3823958963c78e96518bdbff2d00 (diff)
downloadbuildroot-9355933afdb47e000080c7489b1d8a15cbba7e3a.tar.gz
buildroot-9355933afdb47e000080c7489b1d8a15cbba7e3a.tar.bz2
utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the times
Initial patch to start reproducibility testing. Also enable tar filesystem to compare images since diffoscope works well with tar. Signed-off-by: Atharva Lele <itsatharva@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/genrandconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/genrandconfig b/utils/genrandconfig
index 5f3fe23260..aa5e151b7f 100755
--- a/utils/genrandconfig
+++ b/utils/genrandconfig
@@ -366,6 +366,12 @@ def gen_config(args):
if randint(0, 4) == 0:
configlines.append("BR2_SYSTEM_ENABLE_NLS=y\n")
+ # Randomly enable BR2_REPRODUCIBLE 10% of times
+ # also enable tar filesystem images for testing
+ if randint(0, 10) == 0:
+ configlines.append("BR2_REPRODUCIBLE=y\n")
+ configlines.append("BR2_TARGET_ROOTFS_TAR=y\n")
+
# Write out the configuration file
if not os.path.exists(args.outputdir):
os.makedirs(args.outputdir)