1
0
mirror of https://github.com/coturn/coturn.git synced 2025-12-25 09:51:37 +01:00

Add autopkgtest

This commit is contained in:
Mészáros Mihály 2018-12-05 10:42:00 +00:00 committed by Ferenc Wágner
parent e932875ca4
commit a9e29530e9
3 changed files with 28 additions and 0 deletions

3
debian/tests/control vendored Normal file
View File

@ -0,0 +1,3 @@
Depends: @
Restrictions: needs-root, allow-stderr, isolation-container
Tests: coturn

10
debian/tests/coturn vendored Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -ex
cp debian/tests/turnserver.conf /etc/turnserver.conf
cp examples/var/db/turndb /var/lib/turn/turndb
systemctl restart coturn
sleep 3
/usr/share/coturn/examples/scripts/longtermsecure/secure_udp_c2c.sh
/usr/share/coturn/examples/scripts/longtermsecure/secure_tcp_client_c2c_tcp_relay.sh

15
debian/tests/turnserver.conf vendored Normal file
View File

@ -0,0 +1,15 @@
verbose
syslog
listening-ip=127.0.0.1
listening-ip=::1
relay-ip=127.0.0.1
relay-ip=::1
min-port=32355
max-port=65535
relay-threads=3
max-bps=3000000
fingerprint
no-tls
no-dtls
no-auth
db=/var/lib/turn/turndb