diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index e0864ae4..5b8f2bda 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -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 diff --git a/tests/yaml_samples/makefile_1.kibot.yaml b/tests/yaml_samples/makefile_1.kibot.yaml index 95107afa..442119f8 100644 --- a/tests/yaml_samples/makefile_1.kibot.yaml +++ b/tests/yaml_samples/makefile_1.kibot.yaml @@ -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