-
Book Overview & Buying
-
Table Of Contents
Software Architecture with C++ - Second Edition
By :
The core packaging step in Conan involves the creation of a package. However, in practice, this step is usually preceded by testing and followed by publishing. In this section, we cover the complete workflow: testing, creating, and publishing a Conan package.
Packages should be validated before their publication, as malfunctioning packages can break development. Conan supports this validation process through a test package, which is used only during testing. Thus, the process of creating a Conan package involves two scripts, one of which is published, and the other that is not published but needed only for testing the package.
Once Conan builds a package, it should test whether the package was properly built and can be correctly linked and reused by consumers in their own projects. In order to do so, let’s start by creating a test_package subdirectory. It will include a conanfile.py script, but this time, a shorter...