diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index bd3323be..76be9e1b 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -1020,12 +1020,21 @@ def test_annotate_power_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.run() o = prj+'-PDF_Joined.pdf' 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): diff --git a/tests/yaml_samples/pdfunite_2.kibot.yaml b/tests/yaml_samples/pdfunite_2.kibot.yaml new file mode 100644 index 00000000..46e56854 --- /dev/null +++ b/tests/yaml_samples/pdfunite_2.kibot.yaml @@ -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