Added regression test for #164

This commit is contained in:
Salvador E. Tropea 2022-03-17 18:40:25 -03:00
parent 0367d9be82
commit 688d637f6c
8 changed files with 4811 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,2 @@
${bb_w_mm}x${bb_h_mm}

View File

@ -0,0 +1,2 @@
59.23x26.55

View File

@ -0,0 +1 @@
../5_1_6/comp_edge-report.txt

View File

@ -0,0 +1 @@
../5_1_6/comp_edge-report.txt

View File

@ -1017,6 +1017,16 @@ def test_report_simple_2(test_dir):
ctx.clean_up(keep_project=True)
def test_report_edge_1(test_dir):
""" Meassures the PCB size when using a component that contains the real PCB edges #164 """
prj = 'comp_edge'
ctx = context.TestContext(test_dir, 'test_report_edge_1', prj, 'report_edge_1', POS_DIR)
ctx.run()
ctx.expect_out_file(prj+'-report.txt')
ctx.compare_txt(prj+'-report.txt')
ctx.clean_up()
def test_board_view_1(test_dir):
prj = 'glasgow'
ctx = context.TestContext(test_dir, 'test_board_view_1', prj, 'boardview', POS_DIR)

View File

@ -0,0 +1,10 @@
# Example KiBot config file
kibot:
version: 1
outputs:
- name: 'report_edge'
comment: "Just the PCB size"
type: report
options:
template: tests/data/report_size.txt