mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
CI: seed with gotorrent too
This commit is contained in:
parent
cf25586bcb
commit
631b2c0494
1 changed files with 18 additions and 2 deletions
20
.github/actions/test-transfer/entrypoint.sh
vendored
20
.github/actions/test-transfer/entrypoint.sh
vendored
|
|
@ -24,6 +24,11 @@ fi
|
||||||
$SUDO apt-get update
|
$SUDO apt-get update
|
||||||
$SUDO apt-get install -y cmake libssl-dev screen rtorrent mktorrent ssl-cert ca-certificates curl golang
|
$SUDO apt-get install -y cmake libssl-dev screen rtorrent mktorrent ssl-cert ca-certificates curl golang
|
||||||
|
|
||||||
|
git clone https://github.com/anacrolix/torrent.git gotorrent
|
||||||
|
cd gotorrent
|
||||||
|
go build -o ../gotorrent ./cmd/torrent
|
||||||
|
cd ..
|
||||||
|
|
||||||
$SUDO curl -sL https://deb.nodesource.com/setup_15.x | bash -
|
$SUDO curl -sL https://deb.nodesource.com/setup_15.x | bash -
|
||||||
$SUDO apt-get install nodejs -y
|
$SUDO apt-get install nodejs -y
|
||||||
|
|
||||||
|
|
@ -234,6 +239,12 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Start seeding ws client 2
|
||||||
|
|
||||||
|
cd seed
|
||||||
|
GOPPROF=http GODEBUG=x509ignoreCN=0 ../gotorrent download --seed ../torrents/wss-ipv4.torrent > "$HOME/wss-seed2.log" 2>&1 &
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Start leeching clients
|
# Start leeching clients
|
||||||
|
|
||||||
echo "directory.default.set = $HOME/leech
|
echo "directory.default.set = $HOME/leech
|
||||||
|
|
@ -244,9 +255,8 @@ screen -dmS rtorrent-leech rtorrent
|
||||||
|
|
||||||
# ./node_modules/webtorrent-hybrid/bin/cmd.js download ./torrents/wss-ipv4.torrent -o leech > "$HOME/wss-leech.log" 2>&1 &
|
# ./node_modules/webtorrent-hybrid/bin/cmd.js download ./torrents/wss-ipv4.torrent -o leech > "$HOME/wss-leech.log" 2>&1 &
|
||||||
|
|
||||||
git clone https://github.com/anacrolix/torrent.git leech
|
|
||||||
cd leech
|
cd leech
|
||||||
GOPPROF=http GODEBUG=x509ignoreCN=0 go run -v ./cmd/torrent download ../torrents/wss-ipv4.torrent > "$HOME/wss-leech.log" 2>&1 &
|
GOPPROF=http GODEBUG=x509ignoreCN=0 ../gotorrent download ../torrents/wss-ipv4.torrent > "$HOME/wss-leech.log" 2>&1 &
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Check for completion
|
# Check for completion
|
||||||
|
|
@ -341,6 +351,12 @@ cat "wss-seed.log"
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "# --- WSS seed log 2 --- #"
|
||||||
|
cat "wss-seed2.log"
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "# --- WSS leech log --- #"
|
echo "# --- WSS leech log --- #"
|
||||||
cat "wss-leech.log"
|
cat "wss-leech.log"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue