Added pdfunite test with source and external tool

This commit is contained in:
Salvador E. Tropea 2022-06-12 10:27:29 -03:00
parent dc955a41e5
commit e0fa00f68b
2 changed files with 63 additions and 2 deletions

View File

@ -1020,12 +1020,21 @@ def test_annotate_power_1(test_dir):
def test_pdfunite_1(test_dir): def test_pdfunite_1(test_dir):
prj = 'light_control' prj = 'bom'
ctx = context.TestContext(test_dir, prj, 'pdfunite_1', POS_DIR) ctx = context.TestContext(test_dir, prj, 'pdfunite_1', POS_DIR)
ctx.run() ctx.run()
o = prj+'-PDF_Joined.pdf' o = prj+'-PDF_Joined.pdf'
ctx.expect_out_file(o) ctx.expect_out_file(o)
ctx.clean_up(keep_project=True) ctx.clean_up()
def test_pdfunite_2(test_dir):
prj = 'bom'
ctx = context.TestContext(test_dir, prj, 'pdfunite_2', POS_DIR)
ctx.run()
o = prj+'-PDF_Joined.pdf'
ctx.expect_out_file(o)
ctx.clean_up()
def check_refs(ctx, refs): def check_refs(ctx, refs):

View File

@ -0,0 +1,52 @@
kiplot:
version: 1
outputs:
- name: PDF_top
comment: "PDF files for top layer"
type: pdf
dir: PDF
options:
exclude_edge_layer: false
exclude_pads_from_silkscreen: false
plot_sheet_reference: false
plot_footprint_refs: true
plot_footprint_values: true
force_plot_invisible_refs_vals: false
tent_vias: true
# PDF options
drill_marks: small
mirror_plot: false
negative_plot: false
line_width: 0.01
layers:
- layer: F.Cu
suffix: F_Cu
- layer: F.SilkS
suffix: F_Silks
- name: PDF_bottom
comment: "PDF files for bottom layer"
type: pdf
dir: PDF
options:
exclude_edge_layer: false
# PDF options
drill_marks: full
mirror_plot: true
negative_plot: true
line_width: 0.01
layers:
- layer: B.Cu
suffix: B_Cu
- layer: B.SilkS
suffix: B_Silks
- name: PDF_Joined
comment: "PDF files for top layer + mirrored bottom layer"
type: pdfunite
options:
use_external_command: true
outputs:
- source: PDF/*.pdf