Make OpenSSL::Test a bit more flexible
authorRichard Levitte <levitte@openssl.org>
Mon, 10 Oct 2016 20:13:27 +0000 (22:13 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 19 Oct 2016 15:14:33 +0000 (17:14 +0200)
commit9ddf67f34dd13427d7df5f5169f3c26e6ac06caa
tree0d5ab19133fe7e0410cc56d9ac285a7051cf5adf
parent50c3fc00cc3090d082669591c0923a8468f2d8f9
Make OpenSSL::Test a bit more flexible

So far, apps and test programs, were a bit rigidely accessible as
executables or perl scripts.  But what about scripts in some other
language?  Or what about running entirely external programs?  The
answer is certainly not to add new functions to access scripts for
each language or wrapping all the external program calls in our magic!

Instead, this adds a new functions, cmd(), which is useful to access
executables and scripts in a more generalised manner.  app(), test(),
fuzz(), perlapp() and perltest() are rewritten in terms of cmd(), and
serve as examples how to do something similar for other scripting
languages, or constrain the programs to certain directories.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1686)
test/testlib/OpenSSL/Test.pm