From 3bae748256260290a49d6a9a12fe53089854f600 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 18 Jan 2007 18:04:20 +0000 Subject: Added precheck that curl supports the 'openssl' engine in test 307. --- tests/libtest/test307.pl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tests/libtest/test307.pl (limited to 'tests/libtest/test307.pl') diff --git a/tests/libtest/test307.pl b/tests/libtest/test307.pl new file mode 100755 index 000000000..7e2687b54 --- /dev/null +++ b/tests/libtest/test307.pl @@ -0,0 +1,19 @@ +#!/usr/bin/env perl +# Determine if the given curl executable supports the 'openssl' SSL engine +if ( $#ARGV != 0 ) +{ + print "Usage: $0 curl-executable\n"; + exit 3; +} +if (!open(CURL, "@ARGV[0] -s --engine list|")) +{ + print "Can't get SSL engine list\n"; + exit 2; +} +while( ) +{ + exit 0 if ( /openssl/ ); +} +close CURL; +print "openssl engine not supported\n"; +exit 1; -- cgit v1.2.3