[Tests] Added some schematic PS, HPGL and DXF examples

- Used to verify kicad-cli patches
This commit is contained in:
Salvador E. Tropea 2023-02-25 14:33:38 -03:00
parent 423f5e3359
commit f91bb5c01f
4 changed files with 66 additions and 0 deletions

View File

@ -58,6 +58,39 @@ def test_print_sch_svg_ok(test_dir):
ctx.clean_up()
# @pytest.mark.slow
# @pytest.mark.eeschema
# def test_print_sch_ps_ok(test_dir):
# prj = 'test_v5'
# ctx = context.TestContext(test_dir, prj, 'print_sch_ps')
# ctx.run()
# # Check all outputs are there
# ctx.expect_out_file(SVG_FILE.replace('svg', 'ps'))
# ctx.clean_up()
# @pytest.mark.slow
# @pytest.mark.eeschema
# def test_print_sch_dxf_ok(test_dir):
# prj = 'test_v5'
# ctx = context.TestContext(test_dir, prj, 'print_sch_dxf')
# ctx.run()
# # Check all outputs are there
# ctx.expect_out_file(SVG_FILE.replace('svg', 'dxf'))
# ctx.clean_up()
# @pytest.mark.slow
# @pytest.mark.eeschema
# def test_print_sch_hpgl_ok(test_dir):
# prj = 'test_v5'
# ctx = context.TestContext(test_dir, prj, 'print_sch_hpgl')
# ctx.run()
# # Check all outputs are there
# ctx.expect_out_file(SVG_FILE.replace('svg', 'hpgl'))
# ctx.clean_up()
@pytest.mark.slow
@pytest.mark.eeschema
def test_print_sch_svg_fail(test_dir):

View File

@ -0,0 +1,11 @@
# Example KiBot config file
kibot:
version: 1
outputs:
- name: 'print_dxf_svg'
comment: "Plot schematic (DXF)"
type: dxf_sch_print
dir: .
options:
output: Schematic.dxf

View File

@ -0,0 +1,11 @@
# Example KiBot config file
kibot:
version: 1
outputs:
- name: 'print_hpgl_svg'
comment: "Plot schematic (HPGL)"
type: hpgl_sch_print
dir: .
options:
output: Schematic.plt

View File

@ -0,0 +1,11 @@
# Example KiBot config file
kibot:
version: 1
outputs:
- name: 'print_ps_svg'
comment: "Plot schematic (PS)"
type: ps_sch_print
dir: .
options:
output: Schematic.ps