easyrsa/op_test.sh
Eric F Crist c505a14be5
op_test.sh will now exit with status of unit tests
Fixed an issue where op_test.sh would exit with the status of the rm
command from cleanup, rather than from the unit tests it was running.

Closes #355

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2020-04-14 22:07:14 -05:00

18 lines
400 B
Bash
Executable File

#!/bin/sh
#
# Downloads the run_unit_tests.sh file from easyrsa-unit-tests repo
# and executes that - allows for disconnected testing from the easy-rsa
# repo with TravisCI.
curl -O 'https://raw.githubusercontent.com/OpenVPN/easyrsa-unit-tests/master/easyrsa-unit-tests.sh'
if [ -e "easyrsa-unit-tests.sh" ];
then
sh easyrsa-unit-tests.sh -v
estat=$?
fi
rm -f easyrsa-unit-tests.sh
exit $estat