Added DRC test

This commit is contained in:
Salvador E. Tropea 2020-05-20 10:53:25 -03:00
parent d8e45554f4
commit 128906a13d
2 changed files with 18 additions and 2 deletions

View File

@ -3,6 +3,7 @@ Tests for the preflight options
We test:
- ERC
- DRC
For debug information use:
pytest-3 --log-cli-level debug
@ -24,6 +25,13 @@ def test_erc():
ctx.run()
# Check all outputs are there
ctx.expect_out_file(prj+'.erc')
# We don't have a project, and we don't want one
os.remove(os.path.join(ctx.get_board_dir(), prj+'.pro'))
ctx.clean_up()
def test_drc():
prj = 'bom'
ctx = context.TestContext('DRC', prj, 'drc', '')
ctx.run()
# Check all outputs are there
ctx.expect_out_file('drc_result.rpt')
ctx.clean_up()

View File

@ -0,0 +1,8 @@
# Example KiPlot config file
kiplot:
version: 1
preflight:
run_drc: true