mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
Added application-specific test arguments to test script
This commit is contained in:
parent
7ea53dd21b
commit
1dec034f77
4 changed files with 15 additions and 422 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue