mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
Add new workflow trigger
This commit is contained in:
parent
361afcdc93
commit
4e49d4d8aa
2 changed files with 29 additions and 20 deletions
45
.github/workflows/validate-1m-linux.sh
vendored
45
.github/workflows/validate-1m-linux.sh
vendored
|
@ -121,6 +121,30 @@ ps aux | grep zerotier
|
||||||
# Online Check #
|
# Online Check #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
spam_cli()
|
||||||
|
{
|
||||||
|
echo "Spamming CLI..."
|
||||||
|
# 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
|
||||||
|
}
|
||||||
|
|
||||||
echo "Waiting for ZeroTier to come online before attempting test..."
|
echo "Waiting for ZeroTier to come online before attempting test..."
|
||||||
MAX_WAIT_SECS="${MAX_WAIT_SECS:-120}"
|
MAX_WAIT_SECS="${MAX_WAIT_SECS:-120}"
|
||||||
node1_online=false
|
node1_online=false
|
||||||
|
@ -210,25 +234,7 @@ ping_loss_percent_2_to_1=$(echo "scale=2; $ping_loss_percent_2_to_1/100.0" | bc)
|
||||||
|
|
||||||
echo "Testing basic CLI functionality..."
|
echo "Testing basic CLI functionality..."
|
||||||
|
|
||||||
# Rapidly spam the CLI with joins/leaves
|
spam_cli
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
@ -421,3 +427,4 @@ EOF
|
||||||
echo $summary > $FILENAME_SUMMARY
|
echo $summary > $FILENAME_SUMMARY
|
||||||
cat $FILENAME_SUMMARY
|
cat $FILENAME_SUMMARY
|
||||||
|
|
||||||
|
"$@"
|
4
.github/workflows/validate.yml
vendored
4
.github/workflows/validate.yml
vendored
|
@ -1,4 +1,6 @@
|
||||||
on: [ push ]
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_ubuntu:
|
build_ubuntu:
|
||||||
|
|
Loading…
Add table
Reference in a new issue