2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-12-03 02:52:58 +00:00
rules_foreign_cc/examples/third_party/curl/curl_test.cc

18 lines
544 B
C++
Raw Normal View History

#include <curl/curl.h>
#include <cassert>
#include <string>
// Use (void) to silent unused warnings.
#define assertm(exp, msg) assert(((void)msg, exp))
int main(int argc, char* argv[])
{
curl_version_info_data* data = curl_version_info(CURLVERSION_NOW);
assertm(std::string(data->version) == std::string("7.74.0"), "The version of curl does not match the expected version");
2022-07-27 21:39:04 +00:00
assertm(std::string(data->ssl_version) == std::string("OpenSSL/1.1.1o"), "The version of openssl does not match the expected version");
return 0;
}