[Tests] Added very naive Blender test
This commit is contained in:
parent
25cd54c24c
commit
96daf7e4a8
|
|
@ -395,7 +395,7 @@ To pretend this is the system level Blender I have:
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export USER_ID=$(id -u)
|
export USER_ID=$(id -u)
|
||||||
export GROUP_ID=$(id -g)
|
export GROUP_ID=$(id -g)
|
||||||
docker run -it --rm \
|
docker run --rm \
|
||||||
--user $USER_ID:$GROUP_ID \
|
--user $USER_ID:$GROUP_ID \
|
||||||
--env DISPLAY=$DISPLAY \
|
--env DISPLAY=$DISPLAY \
|
||||||
--env NO_AT_BRIDGE=1 \
|
--env NO_AT_BRIDGE=1 \
|
||||||
|
|
|
||||||
|
|
@ -139,3 +139,20 @@ def test_render_3d_variant_1(test_dir):
|
||||||
ctx.expect_out_file(name)
|
ctx.expect_out_file(name)
|
||||||
ctx.compare_image(name, fuzz='7%', tol=1000)
|
ctx.compare_image(name, fuzz='7%', tol=1000)
|
||||||
ctx.clean_up(keep_project=True)
|
ctx.clean_up(keep_project=True)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.slow
|
||||||
|
@pytest.mark.pcbnew
|
||||||
|
@pytest.mark.skipif(context.ki5(), reason="uses pcb2blender")
|
||||||
|
def test_blender_export_1(test_dir):
|
||||||
|
prj = 'light_control'
|
||||||
|
yaml = 'blender_export_1'
|
||||||
|
ctx = context.TestContext(test_dir, prj, yaml)
|
||||||
|
ctx.run(extra_debug=True)
|
||||||
|
# Check all outputs are there
|
||||||
|
name = prj+'-3D_blender.blend'
|
||||||
|
ctx.expect_out_file(name, sub=True)
|
||||||
|
name = prj+'.pcb3d'
|
||||||
|
ctx.expect_out_file(name, sub=True)
|
||||||
|
# ctx.compare_image(name, fuzz='7%', tol=1000)
|
||||||
|
ctx.clean_up(keep_project=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue