#!/bin/bash

set -e
set -o pipefail

# Set path to contain Go binaries explicitly; see issue 566.
export PATH=$PATH:/usr/local/go/bin:/home/vagrant/go/bin:/home/vagrant/bin
export TEST_SUITE="runtime-tests"
mkdir -p ./cilium-files

for test in *.sh; do
	file=$(basename $test)
	filename="${file%.*}"
        mkdir -p ./cilium-files/"${filename}"
	echo "#################################################"
	echo
	echo
	echo
	echo "Starting test $test"
	echo
	echo
	echo
	./$test | tee ./cilium-files/"${filename}"/output.txt
	echo
	echo
	echo
	echo "Finished test $test"
	echo
	echo
	echo
	echo "#################################################"
done
