Comments (4)
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.
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.
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.
Very interesting. Thank you for sharing that.
from conan.
Related Issues (20)
- [bug] conan inspect is not showing requirements HOT 4
- [question] How to validate Options of a Dependency Package in conan v1 HOT 10
- [question] Conan SSL Errors With Artifactory HOT 4
- [question] How to properly "evolve" lockfiles? HOT 12
- [question] Migrating custom generator + user_info to Conan 2.0 HOT 3
- [question] cpp_info in editable mode HOT 1
- Building Qt 6.5.3 fails using conan 2.1.0 and 2.5.0 HOT 5
- [question] Conan 'home' with CI/CD Runners HOT 3
- [question] How to access `package_folder` in an extension command with settings/profiles HOT 3
- conan not working properly when using GNUInstallDirs HOT 3
- [question] combination of several conan configurations HOT 2
- [bug] building QT 6.5.3 under WSL2, conan builds/installs a "cmake" that fails to run. HOT 3
- [bug] `conan list -r` do not list packages HOT 3
- [bug] Remote login variables not working in docker runner
- [bug] inconsistent `-f` options HOT 1
- [question] Adding test_package which automatically sets up environment for run-time linkage to tested reference HOT 1
- [question] How can I set config `conan config set core.upload:parallel 10` in conan v2? HOT 3
- [question] Dynamic rpath issue for transitive shared libraries HOT 3
- [question]How to enable jumping to the source files of dependencies in Visual Studio? HOT 5
- [bug]OpenCV crashes the program on Linux HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conan.