Added test for errors in component labels.

This commit is contained in:
SET 2020-08-14 16:53:50 -03:00
parent a8b92f41c9
commit 844b678ace
4 changed files with 65 additions and 1 deletions

View File

@ -0,0 +1,28 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L Connector:Conn_01x06_Male J1
U 1 1 5F170FD6
P 2950 2150
F 0 "J1" H 3058 2531 50 0000 C
F 1 "Bizarre Bus" H 3058 2440 50 0000 C CNN
F 2 "Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical" H 2950 2150 50 0001 C CNN
F 3 "~" H 2950 2150 50 0001 C CNN
F 4 "1x6" H 2950 2150 50 0001 C CNN "Description"
1 2950 2150
1 0 0 -1
$EndComp
$EndSCHEMATC

View File

@ -0,0 +1,28 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L Connector:Conn_01x06_Male J1
U 1 1 5F170FD6
P 2950 2150
F 0 "J1" H 3058 2531 50 0000 C CNN
F 1 "Bizarre Bus" H 3058 2440 50 0000 C CNN
F 2 "Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical" H 2950 2150 50 0001 C CNN
F 3 "~" H 2950 2150 50 0001 C CNN
F 4 "1x6" H 2950 2150 50 0001 C CNN
1 2950 2150
1 0 0 -1
$EndComp
$EndSCHEMATC

View File

@ -15,7 +15,7 @@ $ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1
ENDDRAW
ENDDEF
#

View File

@ -83,3 +83,11 @@ def test_sch_errors_l8():
def test_sch_errors_l9():
setup_ctx('l9', 'error_l9', 'Missing DCM signature')
def test_sch_errors_field():
setup_ctx('field', 'error_field', 'Malformed component field')
def test_sch_errors_field_name():
setup_ctx('field_name', 'error_field_name', 'Missing component field name')