test: Start to migrate to docker's upstream tests
* Follow the upstream test suite's conventions. * More migration to follow.
This commit is contained in:
22
test/tests/paranoid/container.sh
Normal file
22
test/tests/paranoid/container.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SERV_IP=$(ip -4 -o addr show scope global | awk '{print $4}' | sed -e 's:/.*::' | head -n1)
|
||||
|
||||
#
|
||||
# Generate a simple configuration, returns nonzero on error
|
||||
#
|
||||
ovpn_genconfig -u udp://$SERV_IP 2>/dev/null
|
||||
|
||||
export EASYRSA_BATCH=1
|
||||
export EASYRSA_REQ_CN="Travis-CI Test CA"
|
||||
|
||||
#
|
||||
# Initialize the certificate PKI state, returns nonzero on error
|
||||
#
|
||||
ovpn_initpki nopass 2>/dev/null
|
||||
|
||||
#
|
||||
# Test back-up
|
||||
#
|
||||
ovpn_copy_server_files
|
1
test/tests/paranoid/run.sh
Symbolic link
1
test/tests/paranoid/run.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../run-bash-in-container.sh
|
Reference in New Issue
Block a user