| package OpenSSL::Test::Utils; |
| use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); |
| OpenSSL::Test::Utils - test utility functions |
| use OpenSSL::Test::Utils; |
| This module provides utility functions for the testing framework. |
| In a scalar context returns 1 if any of the features in ARRAY is disabled. |
| In an array context returns an array with each element set to 1 if the |
| corresponding feature is disabled and 0 otherwise. |
| #print STDERR "Running check_disabled\n"; |
| foreach (run(app(["openssl", "list", "-disabled"]), capture => 1)) { |
| next if /:/; # skip header |
| # list of features to check |
| check_disabled() unless $disabled_set; |
| push @ret, exists $disabled{lc $_} ? 1 : 0; |
| return 1 if exists $disabled{lc $_}; |
| Stephen Henson E<lt>steve@openssl.orgE<gt> with inspiration |
| from Richard Levitte E<lt>levitte@openssl.orgE<gt> |