This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/tests/docker/build_tests.sh
Joseph Henry c1ce7dc87a updated
2016-06-14 16:01:19 -07:00

34 lines
705 B
Bash
Executable File

#!/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
if [[ $testdir != *$1* ]]
then
continue
fi
echo "\n\n\n*** 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