#!/bin/bash BIN_HOME="$( cd "$( dirname "$0" )" && pwd )" TEST_HOME="$( cd "$BIN_HOME/.." && pwd )" LOG_HOME="$TEST_HOME/logs" default_image_names="$( ls $TEST_HOME/images )" image_names=${1:-$default_image_names} for image_name in $image_names do log_dir="$LOG_HOME/$image_name" echo " * Cleaning up logs: $log_dir .." mkdir -p $log_dir rm -rf $log_dir/* done gems="$( $BIN_HOME/list_all )" #for image_name in $image_names; do #for gem in $gems; do #$BIN_HOME/test_entry $image_name $gem #done #done # Experimental: run test in parallel parallel --gnu -j+0 $BIN_HOME/test_entry ::: $image_names ::: $gems