build_tests.sh 632 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # Merely BUILDS test images
  3. # Remove previous test results
  4. rm _results/*.txt
  5. # How long we shall wait for each test to conclude
  6. export netcon_test_wait_time=60s
  7. export image_build_script=build_single_image.sh
  8. # Iterate over all depth=2 (relatively-speaking) directories and perform each test
  9. find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
  10. echo "*** Building: '$testdir'..."
  11. rm _results/*.tmp
  12. # Stage scripts
  13. cp $image_build_script $testdir/$image_build_script
  14. cd $testdir
  15. # Build test docker images
  16. ./$image_build_script
  17. rm $image_build_script
  18. cd ../../
  19. done