Hi,

On Sun, Jun 19, 2016 at 10:41 AM, Илья Шипицин <chipits...@gmail.com> wrote:
> when playing with travis-ci, I encountered that t_lpback.sh and t_cltsrv.sh
> fails on "make check" if openvpn is configured with --disable-crypto
> (because --genkey is not available)
>
> what would be the best ?
>
> 1) run 'openvpn --help' and grep for --genkey ?
> 2) check exit code of 'openvpn --genkey' ?
> 3) run 'openvpn --show-ciphers' and see it is empty ?
> 4) somehow determine exact configure options ? (I haven't found a way yet)

I think 4.  You can use AC_SUBST to pass the value of $enable_crypto
to a Makefile.am, and just not run the t_client.sh, t_lpback.sh and
t_cltsrv.sh if it is 'no'.

Later on, we might want to add a test that verifies correct behaviour
of openvpn-without-crypto.

-Steffan

Reply via email to