Added application-specific test arguments to test script

This commit is contained in:
Joseph Henry 2015-12-06 17:55:48 -08:00
commit 1dec034f77
4 changed files with 15 additions and 422 deletions

View file

@ -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"
echo "*** Done"

View file

@ -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
done

View file

@ -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"
echo "*** Done"