|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <jobs/jobs_output_archive.h>#include <project.h>#include <wx/file.h>#include <wx/filename.h>Go to the source code of this file.
Classes | |
| class | TEST_PROJECT |
| struct | ScopedTempDir |
| Scoped temporary directory used by the tests below. More... | |
Functions | |
| BOOST_AUTO_TEST_CASE (RelativeDestinationResolvesAgainstProject) | |
| A relative destination must land in the project directory, not the working directory, so a jobset run from the command line elsewhere writes to the same place as one run from the GUI. | |
| BOOST_AUTO_TEST_CASE (NestedDestinationPathCreatesParents) | |
| Regression test for https://gitlab.com/kicad/code/kicad/-/issues/24162. | |
| BOOST_AUTO_TEST_CASE (ExistingDestinationStillWorks) | |
| Sanity check: an existing destination directory must still work after the mkdir change. | |
| BOOST_AUTO_TEST_CASE | ( | ExistingDestinationStillWorks | ) |
Sanity check: an existing destination directory must still work after the mkdir change.
Definition at line 142 of file test_jobs_output_archive.cpp.
References BOOST_REQUIRE(), JOBS_OUTPUT_ARCHIVE::HandleOutputs(), ScopedTempDir::path, and JOBS_OUTPUT_HANDLER::SetOutputPath().
| BOOST_AUTO_TEST_CASE | ( | NestedDestinationPathCreatesParents | ) |
Regression test for https://gitlab.com/kicad/code/kicad/-/issues/24162.
The archive output handler must create missing parent directories on demand, matching the folder output handler. Previously, writing an archive to a path such as "subdir1/subdir2/archive.zip" failed because the intermediate directories did not exist when the file stream was opened.
Definition at line 99 of file test_jobs_output_archive.cpp.
References BOOST_REQUIRE(), JOBS_OUTPUT_ARCHIVE::HandleOutputs(), ScopedTempDir::path, and JOBS_OUTPUT_HANDLER::SetOutputPath().
| BOOST_AUTO_TEST_CASE | ( | RelativeDestinationResolvesAgainstProject | ) |
A relative destination must land in the project directory, not the working directory, so a jobset run from the command line elsewhere writes to the same place as one run from the GUI.
Definition at line 48 of file test_jobs_output_archive.cpp.
References BOOST_CHECK_EQUAL(), expected, project, and JOBS_OUTPUT_HANDLER::ResolveOutputPath().