34#include <wx/filename.h>
46template <
typename Exporter>
48 const wxString& aExt )
51 netFile.SetName( netFile.GetName() + aSuffix );
52 netFile.SetExt( aExt );
55 std::unique_ptr<Exporter> exporter = std::make_unique<Exporter>( aSch );
62 wxFFile fp( netFile.GetFullPath(), wxT(
"rb" ) );
64 fp.ReadAll( &contents );
67 wxRemoveFile( netFile.GetFullPath() );
83 m_schematic.get(), wxT(
"_test_orcad" ), wxT(
"net" ) );
87 BOOST_CHECK_MESSAGE(
netlist.Contains( wxT(
"AAB10 " ) ),
88 "OrcadPCB2: pin number AAB10 missing or truncated" );
89 BOOST_CHECK_MESSAGE(
netlist.Contains( wxT(
"AAB11 " ) ),
90 "OrcadPCB2: pin number AAB11 missing or truncated" );
91 BOOST_CHECK_MESSAGE(
netlist.Contains( wxT(
"AAB12 " ) ),
92 "OrcadPCB2: pin number AAB12 missing or truncated" );
103 m_schematic.get(), wxT(
"_test_cadstar" ), wxT(
"frp" ) );
105 BOOST_CHECK_MESSAGE(
netlist.Contains( wxT(
"AAB10" ) ),
106 "CadStar: pin number AAB10 missing or truncated" );
107 BOOST_CHECK_MESSAGE(
netlist.Contains( wxT(
"AAB11" ) ),
108 "CadStar: pin number AAB11 missing or truncated" );
109 BOOST_CHECK_MESSAGE(
netlist.Contains( wxT(
"AAB12" ) ),
110 "CadStar: pin number AAB12 missing or truncated" );
121 m_schematic.get(), wxT(
"_test_pads" ), wxT(
"asc" ) );
124 BOOST_CHECK_MESSAGE(
netlist.Contains( wxT(
"U1.AAB10" ) ),
125 "PADS: pin connection U1.AAB10 missing or truncated" );
126 BOOST_CHECK_MESSAGE(
netlist.Contains( wxT(
"U1.AAB11" ) ),
127 "PADS: pin connection U1.AAB11 missing or truncated" );
128 BOOST_CHECK_MESSAGE(
netlist.Contains( wxT(
"U1.AAB12" ) ),
129 "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