Added test for gloabl environment vars
This commit is contained in:
parent
3eaf9c025e
commit
35c7286229
File diff suppressed because it is too large
Load Diff
|
|
@ -53,6 +53,20 @@ def test_step_3(test_dir):
|
|||
ctx.clean_up()
|
||||
|
||||
|
||||
def test_step_gl_env(test_dir):
|
||||
prj = 'bom'
|
||||
ctx = context.TestContext(test_dir, prj, 'step_gl_env', STEP_DIR)
|
||||
ctx.run()
|
||||
# Check all outputs are there
|
||||
name = prj+'-3D.step'
|
||||
ctx.expect_out_file_d(name)
|
||||
# Check the R and C 3D models are there
|
||||
ctx.search_in_file_d(name, ['R_0805_2012Metric', 'R_0805_2012Metrico', 'C_0805_2012Metric'])
|
||||
ctx.search_err(['Missing 3D model for R1: `(.*)R_0805_2012Metrico',
|
||||
'Failed to download `(.*)R_0805_2012Metrico'], invert=True)
|
||||
ctx.clean_up()
|
||||
|
||||
|
||||
def test_step_variant_1(test_dir):
|
||||
prj = 'kibom-variant_3'
|
||||
ctx = context.TestContext(test_dir, prj, 'step_variant_1')
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
kiplot:
|
||||
version: 1
|
||||
|
||||
global:
|
||||
environment:
|
||||
symbols: '/test1'
|
||||
footprints: '/test2'
|
||||
models_3d: '${KIPRJMOD}/../../data/metrico'
|
||||
templates: '/test3'
|
||||
user_templates: '/test4'
|
||||
third_party: '/test5'
|
||||
define_old: true
|
||||
|
||||
outputs:
|
||||
- name: Step
|
||||
comment: "Generate 3D model (STEP)"
|
||||
type: step
|
||||
dir: 3D
|
||||
options:
|
||||
metric_units: true
|
||||
origin: drill # "grid" or "drill" o "X,Y" i.e. 3.2,-10
|
||||
#no_virtual: false # exclude 3D models for components with 'virtual' attribute
|
||||
#min_distance: 0.01 # Minimum distance between points to treat them as separate ones (default 0.01 mm)
|
||||
#output: project.step
|
||||
Loading…
Reference in New Issue