qa: move pcbnew data to appropriate directory
This commit is contained in:
parent
cfb8fbc644
commit
3da47e6123
|
@ -87,6 +87,6 @@ target_compile_definitions( qa_pcbnew_utils
|
|||
|
||||
# Pass in the default data location
|
||||
set_source_files_properties( board_file_utils.cpp PROPERTIES
|
||||
COMPILE_DEFINITIONS "QA_PCBNEW_DATA_LOCATION=(\"${CMAKE_CURRENT_SOURCE_DIR}/../data\")"
|
||||
COMPILE_DEFINITIONS "QA_PCBNEW_DATA_LOCATION=(\"${CMAKE_SOURCE_DIR}/qa/data/pcbnew\")"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import pdb
|
|||
class TestPCBLoad(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.pcb = pcbnew.LoadBoard("data/complex_hierarchy.kicad_pcb")
|
||||
self.pcb = pcbnew.LoadBoard("data/pcbnew/complex_hierarchy.kicad_pcb")
|
||||
|
||||
def test_pcb_load(self):
|
||||
self.assertNotEqual(self.pcb,None)
|
||||
|
|
|
@ -17,7 +17,7 @@ NEW_NAME = 'My_Fancy_Layer_Name'
|
|||
class TestBoardClass(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.pcb = LoadBoard("data/complex_hierarchy.kicad_pcb")
|
||||
self.pcb = LoadBoard("data/pcbnew/complex_hierarchy.kicad_pcb")
|
||||
self.TITLE="Test Board"
|
||||
self.COMMENT1="For load/save test"
|
||||
self.FILENAME=tempfile.mktemp()+".kicad_pcb"
|
||||
|
@ -122,7 +122,7 @@ class TestBoardClass(unittest.TestCase):
|
|||
self.assertEqual(pcb.GetLayerID(B_CU), b_cu_id)
|
||||
|
||||
def test_footprint_properties(self):
|
||||
pcb = LoadBoard("data/custom_fields.kicad_pcb")
|
||||
pcb = LoadBoard("data/pcbnew/custom_fields.kicad_pcb")
|
||||
footprint = pcb.FindFootprintByReference('J1')
|
||||
expected_properties = {
|
||||
'Sheet file': 'custom_fields.kicad_sch',
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue