2015-12-04 20:39:54 +00:00
|
|
|
#!/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
|
|
|
|
|
2015-12-04 23:39:35 +00:00
|
|
|
export image_build_script=_build_single_image.sh
|
2015-12-04 20:39:54 +00:00
|
|
|
|
|
|
|
# Iterate over all depth=2 (relatively-speaking) directories and perform each test
|
|
|
|
find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
|
2015-12-07 01:55:48 +00:00
|
|
|
|
|
|
|
if [[ $testdir != *$1* ]]
|
|
|
|
then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2016-01-21 23:10:26 +00:00
|
|
|
echo "\n\n\n*** Building: '$testdir'..."
|
2015-12-04 20:39:54 +00:00
|
|
|
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 ../../
|
2015-12-07 01:55:48 +00:00
|
|
|
done
|