From 626599c1034f679e93f1db1e35fc49a081febd1a Mon Sep 17 00:00:00 2001
From: Ivan Davidov <davidov.i@gmail.com>
Date: Sat, 2 Nov 2019 21:57:03 +0200
Subject: [PATCH] Test script for each available overlay bundle.

---
 src/test_overlay_build.sh | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100755 src/test_overlay_build.sh

diff --git a/src/test_overlay_build.sh b/src/test_overlay_build.sh
new file mode 100755
index 000000000..9ae088230
--- /dev/null
+++ b/src/test_overlay_build.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# This script tests the build process of each overlay bundle. The idea is to
+# find failing bundles (wrong or outdated build dependencies, broken download
+# links, other simple and stupid failures) and take action accordingly. This
+# script doesn't test the actual functionality of the overlay bundles.
+
+set -ex
+
+cd minimal_overlay
+for bundle in `ls bundles` ; do
+  echo "******************************"
+  echo "***** $bundle TEST BEGIN *****"
+  echo "******************************"
+  ./overlay_clean.sh
+  ./overlay_build.sh $bundle
+  echo "****************************"
+  echo "***** $bundle TEST END *****"  
+  echo "****************************"
+done
+