70 wxString srcDir = base.
path + wxFileName::GetPathSeparator() + wxS(
"src" );
71 BOOST_REQUIRE( wxFileName::Mkdir( srcDir, wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) );
73 wxString srcFile = srcDir + wxFileName::GetPathSeparator() + wxS(
"payload.txt" );
77 f.Write( wxS(
"hello" ) );
81 wxString nestedDir = base.
path + wxFileName::GetPathSeparator() + wxS(
"level1" )
82 + wxFileName::GetPathSeparator() + wxS(
"level2" );
83 wxString outPath = nestedDir + wxFileName::GetPathSeparator() + wxS(
"archive.zip" );
90 std::vector<wxString> noOverwriteList;
91 std::vector<JOB_OUTPUT> outputs;
92 std::optional<wxString> resolved;
94 bool ok = archive.
HandleOutputs( srcDir,
nullptr, noOverwriteList, outputs, resolved );
98 "Nested parent directory should have been created." );
100 BOOST_CHECK( wxFileName::FileExists( resolved.value() ) );
112 wxString srcDir = base.
path + wxFileName::GetPathSeparator() + wxS(
"src" );
113 BOOST_REQUIRE( wxFileName::Mkdir( srcDir, wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) );
115 wxString srcFile = srcDir + wxFileName::GetPathSeparator() + wxS(
"payload.txt" );
119 f.Write( wxS(
"hello" ) );
122 wxString outPath = base.
path + wxFileName::GetPathSeparator() + wxS(
"archive.zip" );
127 std::vector<wxString> noOverwriteList;
128 std::vector<JOB_OUTPUT> outputs;
129 std::optional<wxString> resolved;
131 bool ok = archive.
HandleOutputs( srcDir,
nullptr, noOverwriteList, outputs, resolved );
135 BOOST_CHECK( wxFileName::FileExists( resolved.value() ) );
bool HandleOutputs(const wxString &aBaseTempPath, PROJECT *aProject, const std::vector< wxString > &aPathsWithOverwriteDisallowed, const std::vector< JOB_OUTPUT > &aOutputsToHandle, std::optional< wxString > &aResolvedOutputPath) override