summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests/run.sh19
-rw-r--r--tests/smtp_ingress-clean.sh5
2 files changed, 23 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 2257d88..a1c31a4 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -24,21 +24,40 @@
# $ source install_congress_testserver_1.sh
#
+start=`date +%s`
+
echo "============"
echo "Test: dmz.sh"
echo "============"
sh dmz.sh
+if (($? == 0)); then dmz="Passed"
+else dmz="Failed"; fi
sh dmz-clean.sh
echo "========================"
echo "Test: reserved_subnet.sh"
echo "========================"
sh reserved_subnet.sh
+if (($? == 0)); then reserved_subnet="Passed"
+else reserved_subnet="Failed"; fi
sh reserved_subnet-clean.sh
echo "====================="
echo "Test: smtp_ingress.sh"
echo "====================="
sh smtp_ingress.sh
+if (($? == 0)); then smtp_ingress="Passed"
+else smtp_ingress="Failed"; fi
sh smtp_ingress-clean.sh
+end=`date +%s`
+runtime=$((end-start))
+runtime=$((runtime/60))
+echo "======================"
+echo "Test Execution Summary"
+echo "======================"
+echo "Test Duration = $runtime minutes"
+echo "$dmz : dmz.sh"
+echo "$reserved_subnet : reserved_subnet.sh"
+echo "$smtp_ingress: smtp_ingress.sh"
+
diff --git a/tests/smtp_ingress-clean.sh b/tests/smtp_ingress-clean.sh
index f224ae6..898f4df 100644
--- a/tests/smtp_ingress-clean.sh
+++ b/tests/smtp_ingress-clean.sh
@@ -24,7 +24,10 @@
# After test, cleanup with
# $ sh dmz-clean.sh
-if [ $1 == "debug" ]; then set -x #echo on
+if [ $# -eq 1 ]; then
+ if [ $1 == "debug" ]; then
+ set -x #echo on
+ fi
fi
source /opt/copper/admin-openrc.sh