35#include <wx/filename.h>
47template <
typename Exporter>
49 const wxString& aExt )
52 netFile.SetName( netFile.GetName() + aSuffix );
53 netFile.SetExt( aExt );
56 std::unique_ptr<Exporter> exporter = std::make_unique<Exporter>( aSch );
63 wxFFile fp( netFile.GetFullPath(), wxT(
"rb" ) );
65 fp.ReadAll( &contents );
68 wxRemoveFile( netFile.GetFullPath() );
84 m_schematic.get(), wxT(
"_test_orcad" ), wxT(
"net" ) );
89 "OrcadPCB2: pin number AAB10 missing or truncated" );
91 "OrcadPCB2: pin number AAB11 missing or truncated" );
93 "OrcadPCB2: pin number AAB12 missing or truncated" );
104 m_schematic.get(), wxT(
"_test_cadstar" ), wxT(
"frp" ) );
107 "CadStar: pin number AAB10 missing or truncated" );
109 "CadStar: pin number AAB11 missing or truncated" );
111 "CadStar: pin number AAB12 missing or truncated" );
122 m_schematic.get(), wxT(
"_test_pads" ), wxT(
"asc" ) );
126 "PADS: pin connection U1.AAB10 missing or truncated" );
128 "PADS: pin connection U1.AAB11 missing or truncated" );
130 "PADS: pin connection U1.AAB12 missing or truncated" );
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
virtual const wxString GetProjectFullName() const
Return the full path and name of the project.
Holds all the data relating to one schematic.
PROJECT & Project() const
Return a reference to the project this schematic is part of.
A wrapper for reporting to a wxString object.
void LoadSchematic(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< SCHEMATIC > &aSchematic)
std::vector< FAB_LAYER_COLOR > dummy
ISSUE24330_FIXTURE()=default
SETTINGS_MANAGER m_settingsManager
std::unique_ptr< SCHEMATIC > m_schematic
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(OrcadPCB2_PreservesLongPinNumbers)
static wxString writeAndReadNetlist(SCHEMATIC *aSch, const wxString &aSuffix, const wxString &aExt)
IbisParser parser & reporter
BOOST_CHECK_MESSAGE(totalMismatches==0, std::to_string(totalMismatches)+" board(s) with strategy disagreements")