utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the times
authorAtharva Lele <itsatharva@gmail.com>
Fri, 7 Jun 2019 08:55:58 +0000 (14:25 +0530)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 8 Jun 2019 20:56:41 +0000 (22:56 +0200)
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>
utils/genrandconfig

index 5f3fe232604151c04506914a6b37166e67fd90ad..aa5e151b7f2870647fe4bedf612b42b0c881f058 100755 (executable)
@@ -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)