Added PCBDraw case to the makefile test.

This commit is contained in:
Salvador E. Tropea 2021-01-29 12:22:31 -03:00
parent 55c988bb66
commit d9986b0599
2 changed files with 11 additions and 1 deletions

View File

@ -52,7 +52,7 @@ from kibot.gs import GS
POS_DIR = 'positiondir'
MK_TARGETS = ['position', 'archive', 'interactive_bom', 'run_erc', '3D', 'kibom_internal', 'drill']
MK_TARGETS = ['position', 'archive', 'interactive_bom', 'run_erc', '3D', 'kibom_internal', 'drill', 'pcb_render']
cov = coverage.Coverage()
@ -597,6 +597,12 @@ def test_makefile_1():
assert ctx.get_out_path(os.path.join('ibom', prj+'-ibom.html')) in deps
assert os.path.abspath(targets[targets['interactive_bom']]) == ctx.board_file
logging.debug('- Target `interactive_bom` OK')
# pcb_render target
deps = targets['pcb_render'].split(' ')
assert len(deps) == 1, deps
assert ctx.get_out_path(prj+'-top.svg') in deps
assert os.path.abspath(targets[targets['pcb_render']]) == ctx.board_file
logging.debug('- Target `pcb_render` OK')
# drill target
deps = targets['drill'].split(' ')
assert len(deps) == 3, deps

View File

@ -53,6 +53,10 @@ outputs:
map:
type: pdf
- name: 'pcb_render'
comment: 'Top layer in SVG'
type: pcbdraw
- name: 'archive'
comment: 'Compressed files'
type: compress