#!/bin/bash

#set -e
#set -vx

# This script executes go test X times
export MEEP_HOST_TEST_URL="http://172.29.10.52"

i="0"

output_prefix="result"
output_suffix=".txt"
rm -f ${output_prefix}*${output_suffix}
while [ $i -lt 1 ]
do
    output=${output_prefix}${i}${output_suffix}
    go test -timeout 30m > ${output}
    i=$[$i+1]
done
