summaryrefslogtreecommitdiff
path: root/netcon/docker-test/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'netcon/docker-test/test.sh')
-rwxr-xr-xnetcon/docker-test/test.sh23
1 files changed, 17 insertions, 6 deletions
diff --git a/netcon/docker-test/test.sh b/netcon/docker-test/test.sh
index 34bc0796..cda8e700 100755
--- a/netcon/docker-test/test.sh
+++ b/netcon/docker-test/test.sh
@@ -1,4 +1,8 @@
-#./build.sh
+#!/bin/bash
+
+# Runs test images
+
+echo "*** Running unit tests..."
# Remove previous test results
rm _results/*.txt
@@ -7,15 +11,22 @@ rm _results/*.txt
export netcon_test_wait_time=60s
# Test structure, in later releases more complex multi-party scripts will be included
-export testscript=two_party_test.sh
+export test_script=two_party_test.sh
# Iterate over all depth=2 (relatively-speaking) directories and perform each test
find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
echo "*** Testing: '$testdir'..."
rm _results/*.tmp
- cp $testscript $testdir/$testscript
+
+ # Stage scripts
+ cp $test_script $testdir/$test_script
cd $testdir
- ./$testscript
- rm $testscript
+
+ # Run test
+ ./$test_script
+ rm $test_script
+
cd ../../
-done \ No newline at end of file
+done
+
+echo "*** Done" \ No newline at end of file