Git Product home page Git Product logo

Comments (4)

AbrilRBS avatar AbrilRBS commented on August 19, 2024

Hi @PauloCarvalhoRJ thanks for your question.

The think you're most likely looking for is the env argument to the self.run method.
After looking into the docs, an example usage can be found here, but we need to have a more direct reference for the argument (As the run documentation is lacking info on this argument). I'll move this ticket to the docs repo after talking with the team :)

In Conan Center Index you can find examples of runs running witht he run environment if you look for the "conanrun" string, I hope this helps a bit for now!

from conan.

PauloCarvalhoRJ avatar PauloCarvalhoRJ commented on August 19, 2024

Hi, @RubenRBS ,

Thank you for your reply. So, running a test has turned much more verbose in terms of code (and, hence, more error-prone) in Conan 2? If I understood it right, I have to explicitly set env vars like PATH and LD_LIBRARY_PATH with the dynamic library locations of the package under test. Right? In Conan 1 we had that handy flag and the framework took care of the rest.

regards,

PC

from conan.

AbrilRBS avatar AbrilRBS commented on August 19, 2024

Not at all. By instantiating the VirtualRunEnv/VirtualBuildEnv generators as needed, that information is already propagated to your scripts, no need to do it manually for most cases :)

from conan.

PauloCarvalhoRJ avatar PauloCarvalhoRJ commented on August 19, 2024

Very interesting. Thank you for sharing that.

from conan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.