Added postscript test.
This commit is contained in:
parent
c22ccb607a
commit
77b2d1e075
|
|
@ -0,0 +1,31 @@
|
||||||
|
"""
|
||||||
|
Tests of Postscript format.
|
||||||
|
|
||||||
|
For debug information use:
|
||||||
|
pytest-3 --log-cli-level debug
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
# Look for the 'utils' module from where the script is running
|
||||||
|
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
sys.path.insert(0, os.path.dirname(script_dir))
|
||||||
|
# Utils import
|
||||||
|
from utils import context
|
||||||
|
|
||||||
|
|
||||||
|
PS_DIR = 'PS'
|
||||||
|
|
||||||
|
|
||||||
|
def test_ps():
|
||||||
|
prj = 'simple_2layer'
|
||||||
|
ctx = context.TestContext('Postscript', prj, 'ps', PS_DIR)
|
||||||
|
ctx.run()
|
||||||
|
|
||||||
|
f_cu = ctx.get_gerber_filename('F_Cu', '.ps')
|
||||||
|
f_fab = ctx.get_gerber_filename('F_Fab', '.ps')
|
||||||
|
ctx.expect_out_file(f_cu)
|
||||||
|
ctx.expect_out_file(f_fab)
|
||||||
|
ctx.dont_expect_out_file(ctx.get_gerber_job_filename())
|
||||||
|
|
||||||
|
ctx.clean_up()
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
kiplot:
|
||||||
|
version: 1
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
- name: postscript
|
||||||
|
comment: "Postscript files"
|
||||||
|
type: ps
|
||||||
|
dir: PS
|
||||||
|
options:
|
||||||
|
exclude_edge_layer: false
|
||||||
|
exclude_pads_from_silkscreen: false
|
||||||
|
use_aux_axis_as_origin: false
|
||||||
|
plot_sheet_reference: false
|
||||||
|
plot_footprint_refs: true
|
||||||
|
plot_footprint_values: true
|
||||||
|
force_plot_invisible_refs_vals: false
|
||||||
|
tent_vias: true
|
||||||
|
check_zone_fills: true
|
||||||
|
|
||||||
|
# PS options
|
||||||
|
line_width: 0.15
|
||||||
|
drill_marks: full
|
||||||
|
scaling: 2
|
||||||
|
sketch_plot: true
|
||||||
|
scale_adjust_x: 1.0
|
||||||
|
scale_adjust_y: 1.0
|
||||||
|
width_adjust: 0
|
||||||
|
mirror_plot: false
|
||||||
|
negative_plot: false
|
||||||
|
a4_output: true
|
||||||
|
layers:
|
||||||
|
- layer: F.Cu
|
||||||
|
suffix: F_Cu
|
||||||
|
- layer: F.Fab
|
||||||
|
suffix: F_Fab
|
||||||
Loading…
Reference in New Issue