KiCad PCB EDA Suite
test_netlists.cpp File Reference

Go to the source code of this file.

Classes

class  TEST_NETLISTS_FIXTURE
 

Functions

static wxString getSchematicFile (const wxString &aBaseName)
 
 BOOST_AUTO_TEST_CASE (FindPlugin)
 
 BOOST_AUTO_TEST_CASE (GlobalPromotion)
 
 BOOST_AUTO_TEST_CASE (GlobalPromotion2)
 
 BOOST_AUTO_TEST_CASE (Video)
 
 BOOST_AUTO_TEST_CASE (ComplexHierarchy)
 
 BOOST_AUTO_TEST_CASE (WeakVectorBusDisambiguation)
 
 BOOST_AUTO_TEST_CASE (BusJunctions)
 
 BOOST_AUTO_TEST_CASE (HierRenaming)
 
 BOOST_AUTO_TEST_CASE (NoConnects)
 
 BOOST_AUTO_TEST_CASE (PrefixBusAlias)
 
 BOOST_AUTO_TEST_CASE (GroupBusMatching)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/11]

BOOST_AUTO_TEST_CASE ( FindPlugin  )

Definition at line 227 of file test_netlists.cpp.

228 {
229  BOOST_CHECK_NE( m_pi, nullptr );
230 }

◆ BOOST_AUTO_TEST_CASE() [2/11]

BOOST_AUTO_TEST_CASE ( GlobalPromotion  )

Definition at line 233 of file test_netlists.cpp.

234 {
235  doNetlistTest( "test_global_promotion" );
236 }

◆ BOOST_AUTO_TEST_CASE() [3/11]

BOOST_AUTO_TEST_CASE ( GlobalPromotion2  )

Definition at line 239 of file test_netlists.cpp.

240 {
241  doNetlistTest( "test_global_promotion_2" );
242 }

◆ BOOST_AUTO_TEST_CASE() [4/11]

BOOST_AUTO_TEST_CASE ( Video  )

Definition at line 245 of file test_netlists.cpp.

246 {
247  doNetlistTest( "video" );
248 }

◆ BOOST_AUTO_TEST_CASE() [5/11]

BOOST_AUTO_TEST_CASE ( ComplexHierarchy  )

Definition at line 251 of file test_netlists.cpp.

252 {
253  doNetlistTest( "complex_hierarchy" );
254 }

◆ BOOST_AUTO_TEST_CASE() [6/11]

BOOST_AUTO_TEST_CASE ( WeakVectorBusDisambiguation  )

Definition at line 257 of file test_netlists.cpp.

258 {
259  doNetlistTest( "weak_vector_bus_disambiguation" );
260 }

◆ BOOST_AUTO_TEST_CASE() [7/11]

BOOST_AUTO_TEST_CASE ( BusJunctions  )

Definition at line 263 of file test_netlists.cpp.

264 {
265  doNetlistTest( "bus_junctions" );
266 }

◆ BOOST_AUTO_TEST_CASE() [8/11]

BOOST_AUTO_TEST_CASE ( HierRenaming  )

Definition at line 269 of file test_netlists.cpp.

270 {
271  doNetlistTest( "test_hier_renaming" );
272 }

◆ BOOST_AUTO_TEST_CASE() [9/11]

BOOST_AUTO_TEST_CASE ( NoConnects  )

Definition at line 275 of file test_netlists.cpp.

276 {
277  doNetlistTest( "noconnects" );
278 }

◆ BOOST_AUTO_TEST_CASE() [10/11]

BOOST_AUTO_TEST_CASE ( PrefixBusAlias  )

Definition at line 281 of file test_netlists.cpp.

282 {
283  doNetlistTest( "prefix_bus_alias" );
284 }

◆ BOOST_AUTO_TEST_CASE() [11/11]

BOOST_AUTO_TEST_CASE ( GroupBusMatching  )

Definition at line 287 of file test_netlists.cpp.

288 {
289  doNetlistTest( "group_bus_matching" );
290 }

◆ getSchematicFile()

static wxString getSchematicFile ( const wxString &  aBaseName)
static

Definition at line 72 of file test_netlists.cpp.

73 {
74  wxFileName fn = KI_TEST::GetEeschemaTestDataDir();
75  fn.AppendDir( "netlists" );
76  fn.AppendDir( aBaseName );
77  fn.SetName( aBaseName );
78  fn.SetExt( KiCadSchematicFileExtension );
79 
80  return fn.GetFullPath();
81 }
wxFileName GetEeschemaTestDataDir()
Get the configured location of Eeschema test data.
const std::string KiCadSchematicFileExtension

References KI_TEST::GetEeschemaTestDataDir(), and KiCadSchematicFileExtension.

Referenced by TEST_NETLISTS_FIXTURE::loadSchematic().