summaryrefslogtreecommitdiff
path: root/netcon/docker-test
diff options
context:
space:
mode:
Diffstat (limited to 'netcon/docker-test')
-rwxr-xr-xnetcon/docker-test/build.sh4
-rwxr-xr-xnetcon/docker-test/build_tests.sh8
-rwxr-xr-xnetcon/docker-test/test.sh7
3 files changed, 15 insertions, 4 deletions
diff --git a/netcon/docker-test/build.sh b/netcon/docker-test/build.sh
index 4eaa246c..bb5fd8e7 100755
--- a/netcon/docker-test/build.sh
+++ b/netcon/docker-test/build.sh
@@ -3,6 +3,6 @@
echo "*** Building Zerotier-One, libraries, and test/monitor images..."
./build_zt.sh
-./build_tests.sh
+./build_tests.sh $1
-echo "*** Done" \ No newline at end of file
+echo "*** Done"
diff --git a/netcon/docker-test/build_tests.sh b/netcon/docker-test/build_tests.sh
index 2da539e1..f360124b 100755
--- a/netcon/docker-test/build_tests.sh
+++ b/netcon/docker-test/build_tests.sh
@@ -12,6 +12,12 @@ export image_build_script=_build_single_image.sh
# Iterate over all depth=2 (relatively-speaking) directories and perform each test
find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
+
+ if [[ $testdir != *$1* ]]
+ then
+ continue
+ fi
+
echo "*** Building: '$testdir'..."
rm _results/*.tmp
@@ -24,4 +30,4 @@ find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
rm $image_build_script
cd ../../
-done \ No newline at end of file
+done
diff --git a/netcon/docker-test/test.sh b/netcon/docker-test/test.sh
index 3b6d35de..c0579c1f 100755
--- a/netcon/docker-test/test.sh
+++ b/netcon/docker-test/test.sh
@@ -18,6 +18,11 @@ find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
echo "*** Testing: '$testdir'..."
rm _results/*.tmp
+ if [[ $testdir != *$1* ]]
+ then
+ continue
+ fi
+
# Stage scripts
cp $test_script $testdir/$test_script
cd $testdir
@@ -29,4 +34,4 @@ find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
cd ../../
done
-echo "*** Done" \ No newline at end of file
+echo "*** Done"