From: Atharva Lele <itsatharva@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the times
Date: Fri, 7 Jun 2019 13:45:59 +0530 [thread overview]
Message-ID: <20190607081559.327-1-itsatharva@gmail.com> (raw)
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>
---
utils/genrandconfig | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/utils/genrandconfig b/utils/genrandconfig
index 5f3fe23260..b7d7bf7763 100755
--- a/utils/genrandconfig
+++ b/utils/genrandconfig
@@ -366,6 +366,14 @@ 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")
+ configlines.append("BR2_TARGET_ROOTFS_TAR_NONE=y\n")
+ configlines.append("BR2_TARGET_ROOTFS_TAR_OPTIONS=\"\"\n")
+
# Write out the configuration file
if not os.path.exists(args.outputdir):
os.makedirs(args.outputdir)
--
2.20.1
next reply other threads:[~2019-06-07 8:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-07 8:15 Atharva Lele [this message]
2019-06-07 8:26 ` [Buildroot] [PATCH 1/1] utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the times Arnout Vandecappelle
2019-06-07 8:42 ` Atharva Lele
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190607081559.327-1-itsatharva@gmail.com \
--to=itsatharva@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.