Skip to content

Commit

Permalink
add smoke tests
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydin <[email protected]>
Signed-off-by: Furkan Türkal <[email protected]>
  • Loading branch information
developer-guy authored and Dentrax committed Mar 21, 2024
1 parent 4cd46b5 commit 6bdcadb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions shadowsocks-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,39 @@ subpackages:
mkdir -p "${{targets.subpkgdir}}"/usr/bin/
install -Dm755 "${{targets.destdir}}"/target/release/${{range.key}} "${{targets.subpkgdir}}"/usr/bin/
test:
environment:
contents:
packages:
- shadowsocks-rust-sslocal
- shadowsocks-rust-ssmanager
- shadowsocks-rust-ssserver
- shadowsocks-rust-ssservice
- shadowsocks-rust-ssurl
pipeline:
- runs: |
ssservice --version
ssmanager --version
ssurl --version
- runs: |
for bin in sslocal ssserver; do
echo "Starting $bin"
nohup $bin > $bin.out 2> $bin.err < /dev/null &
pid=$!
sleep 3
if ! (cat $bin.out $bin.err | grep "listening on"); then
echo "Could not find expected 'listening on' log message in '$bin' output!"
cat $bin.out
cat $bin.err
exit 1
fi
echo "Stopping $bin"
kill $pid
sleep 3
done
update:
enabled: true
github:
Expand Down

0 comments on commit 6bdcadb

Please sign in to comment.