Added tests for PcbDraw JPG and PNG outputs

This commit is contained in:
Salvador E. Tropea 2020-08-25 13:47:49 -03:00
parent 90c0e14b73
commit 3023035b75
2 changed files with 4 additions and 3 deletions

View File

@ -31,6 +31,6 @@ def test_pcbdraw_simple():
prj = 'bom'
ctx = context.TestContext(OUT_DIR+'_simple', prj, 'pcbdraw_simple', OUT_DIR)
ctx.run()
ctx.expect_out_file(os.path.join(OUT_DIR, prj+'-top.svg'))
ctx.expect_out_file(os.path.join(OUT_DIR, prj+'-bottom.svg'))
ctx.expect_out_file(os.path.join(OUT_DIR, prj+'-top.png'))
ctx.expect_out_file(os.path.join(OUT_DIR, prj+'-bottom.jpg'))
ctx.clean_up()

View File

@ -7,7 +7,7 @@ outputs:
type: pcbdraw
dir: PcbDraw
options: &pcb_draw_ops
format: svg
format: png
no_drillholes: True
placeholder: True
mirror: True
@ -22,6 +22,7 @@ outputs:
<<: *pcb_draw_ops
style: set-red-enig
bottom: True
format: jpg
show_components: none
warnings: none