summaryrefslogtreecommitdiff
path: root/netcon/docker-test/build_tests.sh
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2015-12-04 12:39:54 -0800
committerJoseph Henry <josephjah@gmail.com>2015-12-04 12:39:54 -0800
commitd9b12be697ed97e5a66c3912acc9a88d97f9ab8d (patch)
treeb2c4adbb8771c3dfb0516e0ba065272d3cfada97 /netcon/docker-test/build_tests.sh
parent2196d982c374231e09f41d23cc32932391036ee8 (diff)
downloadinfinitytier-d9b12be697ed97e5a66c3912acc9a88d97f9ab8d.tar.gz
infinitytier-d9b12be697ed97e5a66c3912acc9a88d97f9ab8d.zip
ZT_NC_NWID patch + (WIP) test script modifications
Diffstat (limited to 'netcon/docker-test/build_tests.sh')
-rwxr-xr-xnetcon/docker-test/build_tests.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/netcon/docker-test/build_tests.sh b/netcon/docker-test/build_tests.sh
new file mode 100755
index 00000000..b8ab7c5c
--- /dev/null
+++ b/netcon/docker-test/build_tests.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# Merely BUILDS test images
+
+# Remove previous test results
+rm _results/*.txt
+
+# How long we shall wait for each test to conclude
+export netcon_test_wait_time=60s
+
+export image_build_script=build_single_image.sh
+
+# Iterate over all depth=2 (relatively-speaking) directories and perform each test
+find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
+ echo "*** Building: '$testdir'..."
+ rm _results/*.tmp
+
+ # Stage scripts
+ cp $image_build_script $testdir/$image_build_script
+ cd $testdir
+
+ # Build test docker images
+ ./$image_build_script
+ rm $image_build_script
+
+ cd ../../
+done \ No newline at end of file