lasote / conan-libcurl

Lib curl library package for conan
2 stars 12 forks source link

This _should_ be right, but unsure how to test. #3

Closed DEGoodmanWilson closed 8 years ago

DEGoodmanWilson commented 8 years ago

Could you advise how I could go about testing this?

lasote commented 8 years ago

"conan test" command is the first step to test the package. Then I have appveyor and travis compiling all the packages. It looks good, but there is a problem with osx x32 packages, it fails because it doesn't find the ssl libraries for x32 in the system. (But I think that noone is using osx x32, so maybe I can exclude this builds) The linux builds are failing too because now it's needed the cacert file. I think it was not the best idea to force the cacert file name. I'm taking your branch and modifying some things.

lasote commented 8 years ago

I've pushed to release/7.47.1 your changes with some other things. Will see if travis and appveyor are ok. If you want to try any package just do:

  1. Change the conanfile.py
  2. run "conan export lasote/testing"
  3. run "conan test"
  4. If you want to know if all packages are building ok in your platform run "env CONAN_USERNAME=lasote python build.py"
lasote commented 8 years ago

The package is now ok (https://travis-ci.org/lasote/conan-libcurl) and pushed to master. I added two options "custom_cacert" with default false (if you want to use your cacert file) and darwin_ssl only with macos and default true that links with security framework. Its working ok and no cacert file is needed.

You need to link the apple frameworks like the CMakeLists.txt file of the test folder:

if(APPLE) ADD_FRAMEWORK(Cocoa main) ADD_FRAMEWORK(Security main) endif() TARGET_LINK_LIBRARIES(main ${CONAN_LIBS})

Thanks for your help!