Merge pull request #4769 from orion1024/curl-check-in-perl-tests

Adding CURL check in t6.pl
This commit is contained in:
Olivier Goffart 2016-04-30 14:25:21 +02:00
commit 93e0d52dd3

View file

@ -31,6 +31,13 @@ use strict;
print "Hello, this is t6, a tester for csync with ownCloud.\n"; print "Hello, this is t6, a tester for csync with ownCloud.\n";
# Checking CURL is installed to avoid misleading errors later...
system(("curl", "--help", ">", "/dev/null"));
if ($? != 0) {
print "CURL is needed for this script, aborting with error\n";
exit 1;
}
initTesting(); initTesting();
sub createPostUpdateScript($) sub createPostUpdateScript($)