mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
Add CLI spam test
This commit is contained in:
parent
dcae30d30e
commit
59ebedbfd3
1 changed files with 21 additions and 1 deletions
22
.github/workflows/validate-1m-linux.sh
vendored
22
.github/workflows/validate-1m-linux.sh
vendored
|
@ -182,12 +182,32 @@ ping_loss_percent_2_to_1=$(cat $PING21_FILENAME | \
|
||||||
ping_loss_percent_1_to_2=$(echo "scale=2; $ping_loss_percent_1_to_2/100.0" | bc)
|
ping_loss_percent_1_to_2=$(echo "scale=2; $ping_loss_percent_1_to_2/100.0" | bc)
|
||||||
ping_loss_percent_2_to_1=$(echo "scale=2; $ping_loss_percent_2_to_1/100.0" | bc)
|
ping_loss_percent_2_to_1=$(echo "scale=2; $ping_loss_percent_2_to_1/100.0" | bc)
|
||||||
|
|
||||||
#########################################################PING12_FILENAME#######################
|
################################################################################
|
||||||
# CLI Check #
|
# CLI Check #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
echo "Testing basic CLI functionality..."
|
echo "Testing basic CLI functionality..."
|
||||||
|
|
||||||
|
# Rapidly spam the CLI with joins/leaves
|
||||||
|
|
||||||
|
SPAM_TRIES=128
|
||||||
|
|
||||||
|
for ((s=0; s<=SPAM_TRIES; s++))
|
||||||
|
do
|
||||||
|
$ZT1 join $TEST_NETWORK
|
||||||
|
done
|
||||||
|
|
||||||
|
for ((s=0; s<=SPAM_TRIES; s++))
|
||||||
|
do
|
||||||
|
$ZT1 leave $TEST_NETWORK
|
||||||
|
done
|
||||||
|
|
||||||
|
for ((s=0; s<=SPAM_TRIES; s++))
|
||||||
|
do
|
||||||
|
$ZT1 leave $TEST_NETWORK
|
||||||
|
$ZT1 join $TEST_NETWORK
|
||||||
|
done
|
||||||
|
|
||||||
$ZT1 join $TEST_NETWORK
|
$ZT1 join $TEST_NETWORK
|
||||||
|
|
||||||
$ZT1 -h
|
$ZT1 -h
|
||||||
|
|
Loading…
Add table
Reference in a new issue