aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/doit/schematics/ee/kicad-footprint.csv45
-rw-r--r--test/doit/schematics/schematic-1.kicad_pcb298
-rw-r--r--test/doit/schematics/schematic-1.pro7
-rw-r--r--test/doit/schematics/schematic-1.sch94
-rw-r--r--test/doit/test_doit.py54
5 files changed, 0 insertions, 498 deletions
diff --git a/test/doit/schematics/ee/kicad-footprint.csv b/test/doit/schematics/ee/kicad-footprint.csv
deleted file mode 100644
index fa5cd5f..0000000
--- a/test/doit/schematics/ee/kicad-footprint.csv
+++ /dev/null
@@ -1,45 +0,0 @@
-kicad,common
-Capacitors_SMD:C_0402,0402
-Capacitors_SMD:C_0402_NoSilk,0402
-Capacitors_SMD:C_0603,0603
-Capacitors_SMD:C_0603_NoSilk,0603
-Capacitors_SMD:C_0805,0805
-Capacitors_SMD:C_0805_NoSilk,0805
-Diodes_SMD:D_SMA_Handsoldering,SMA
-Diodes_SMD:D_SMA,SMA
-Resistors_SMD:R_0402,0402
-Resistors_SMD:R_0402_NoSilk,0402
-Resistors_SMD:R_0805,0805
-TO_SOT_Packages_SMD:SOT-223,TO-261-4
-TO_SOT_Packages_SMD:SOT-23-6_Handsoldering,SOT-23-6
-TO_SOT_Packages_SMD:SOT-23,SOT-23
-Package_TO_SOT_SMD:SOT-23,SOT-23
-Bitraf:SOT-563,SOT-563
-
-Diode_SMD:D_SOD-323,SOD-323
-
-IPC7351-Nominal:CAPC1005X55,0402
-IPC7351-Nominal:CAPC1608X55,0603
-IPC7351-Nominal:CAPC2012X70,0805
-IPC7351-Nominal:CAPC3216X70,1206
-IPC7351-Nominal:CAPC3225X88,1210
-IPC7351-Nominal:CAPC4532X102,1812
-IPC7351-Nominal:CAPC4564X203,1825
-
-IPC7351-Nominal:LEDC1005X110,0402
-IPC7351-Nominal:LEDC1310X110,0504
-IPC7351-Nominal:LEDC1608X110,0603
-IPC7351-Nominal:LEDC2012X110,0805
-IPC7351-Nominal:LEDC3216X110,1206
-IPC7351-Nominal:LEDC3225X110,1210
-IPC7351-Nominal:LEDC4532X110,1812
-IPC7351-Nominal:LEDC4564X110,1825
-
-IPC7351-Nominal:RESC1005X38,0402
-IPC7351-Nominal:RESC1310X51,0504
-IPC7351-Nominal:RESC1608X63,0603
-IPC7351-Nominal:RESC2012X50,0805
-IPC7351-Nominal:RESC3216X60,1206
-IPC7351-Nominal:RESC3225X60,1210
-IPC7351-Nominal:RESC4532X70,1812
-IPC7351-Nominal:RESC4564X110,1825
diff --git a/test/doit/schematics/schematic-1.kicad_pcb b/test/doit/schematics/schematic-1.kicad_pcb
deleted file mode 100644
index fcb69aa..0000000
--- a/test/doit/schematics/schematic-1.kicad_pcb
+++ /dev/null
@@ -1,298 +0,0 @@
-(kicad_pcb (version 20171130) (host pcbnew 5.0.0-rc3+dfsg1-2)
-
- (general
- (thickness 1.6)
- (drawings 0)
- (tracks 10)
- (zones 0)
- (modules 4)
- (nets 5)
- )
-
- (page A4)
- (layers
- (0 F.Cu signal)
- (31 B.Cu signal)
- (32 B.Adhes user)
- (33 F.Adhes user)
- (34 B.Paste user)
- (35 F.Paste user)
- (36 B.SilkS user)
- (37 F.SilkS user)
- (38 B.Mask user)
- (39 F.Mask user)
- (40 Dwgs.User user)
- (41 Cmts.User user)
- (42 Eco1.User user)
- (43 Eco2.User user)
- (44 Edge.Cuts user)
- (45 Margin user)
- (46 B.CrtYd user)
- (47 F.CrtYd user)
- (48 B.Fab user)
- (49 F.Fab user)
- )
-
- (setup
- (last_trace_width 0.25)
- (trace_clearance 0.2)
- (zone_clearance 0.508)
- (zone_45_only no)
- (trace_min 0.2)
- (segment_width 0.2)
- (edge_width 0.15)
- (via_size 0.8)
- (via_drill 0.4)
- (via_min_size 0.4)
- (via_min_drill 0.3)
- (uvia_size 0.3)
- (uvia_drill 0.1)
- (uvias_allowed no)
- (uvia_min_size 0.2)
- (uvia_min_drill 0.1)
- (pcb_text_width 0.3)
- (pcb_text_size 1.5 1.5)
- (mod_edge_width 0.15)
- (mod_text_size 1 1)
- (mod_text_width 0.15)
- (pad_size 1.524 1.524)
- (pad_drill 0.762)
- (pad_to_mask_clearance 0.2)
- (aux_axis_origin 0 0)
- (visible_elements FFFFFF7F)
- (pcbplotparams
- (layerselection 0x010fc_ffffffff)
- (usegerberextensions false)
- (usegerberattributes false)
- (usegerberadvancedattributes false)
- (creategerberjobfile false)
- (excludeedgelayer true)
- (linewidth 0.100000)
- (plotframeref false)
- (viasonmask false)
- (mode 1)
- (useauxorigin false)
- (hpglpennumber 1)
- (hpglpenspeed 20)
- (hpglpendiameter 15.000000)
- (psnegative false)
- (psa4output false)
- (plotreference true)
- (plotvalue true)
- (plotinvisibletext false)
- (padsonsilk false)
- (subtractmaskfromsilk false)
- (outputformat 1)
- (mirror false)
- (drillshape 1)
- (scaleselection 1)
- (outputdirectory ""))
- )
-
- (net 0 "")
- (net 1 "Net-(BT1-Pad1)")
- (net 2 GND)
- (net 3 "Net-(C1-Pad1)")
- (net 4 "Net-(R1-Pad1)")
-
- (net_class Default "This is the default net class."
- (clearance 0.2)
- (trace_width 0.25)
- (via_dia 0.8)
- (via_drill 0.4)
- (uvia_dia 0.3)
- (uvia_drill 0.1)
- (add_net GND)
- (add_net "Net-(BT1-Pad1)")
- (add_net "Net-(C1-Pad1)")
- (add_net "Net-(R1-Pad1)")
- )
-
- (module Battery:BatteryHolder_MPD_BC2AAPC_2xAA (layer F.Cu) (tedit 5AC8F8F7) (tstamp 5B5BC36D)
- (at 71.75 60.5)
- (descr "2xAA cell battery holder, Memory Protection Devices P/N BC2AAPC, http://www.memoryprotectiondevices.com/datasheets/BC2AAPC-datasheet.pdf")
- (tags "AA battery cell holder")
- (path /5B431438)
- (fp_text reference BT1 (at 26.16 -10.11) (layer F.SilkS)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (fp_text value 9V (at 26.16 23.39) (layer F.Fab)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (fp_line (start -2.84 -8.61) (end -2.84 21.89) (layer F.Fab) (width 0.1))
- (fp_line (start -2.84 21.89) (end 55.16 21.89) (layer F.Fab) (width 0.1))
- (fp_line (start 55.16 21.89) (end 55.16 -8.61) (layer F.Fab) (width 0.1))
- (fp_line (start 55.16 -8.61) (end -2.84 -8.61) (layer F.Fab) (width 0.1))
- (fp_line (start -2.94 -8.71) (end -2.94 21.99) (layer F.SilkS) (width 0.12))
- (fp_line (start -2.94 21.99) (end 55.26 21.99) (layer F.SilkS) (width 0.12))
- (fp_line (start 55.26 21.99) (end 55.26 -8.71) (layer F.SilkS) (width 0.12))
- (fp_line (start 55.26 -8.71) (end -2.94 -8.71) (layer F.SilkS) (width 0.12))
- (fp_line (start -3.34 -9.11) (end -3.34 22.39) (layer F.CrtYd) (width 0.05))
- (fp_line (start -3.34 22.39) (end 55.66 22.39) (layer F.CrtYd) (width 0.05))
- (fp_line (start 55.66 22.39) (end 55.66 -9.11) (layer F.CrtYd) (width 0.05))
- (fp_line (start 55.66 -9.11) (end -3.34 -9.11) (layer F.CrtYd) (width 0.05))
- (fp_line (start 35.685 2.54) (end 17.905 2.54) (layer F.SilkS) (width 0.12))
- (fp_line (start 17.905 2.54) (end 17.905 1.27) (layer F.SilkS) (width 0.12))
- (fp_line (start 17.905 1.27) (end 16.635 1.27) (layer F.SilkS) (width 0.12))
- (fp_line (start 16.635 1.27) (end 16.635 -1.27) (layer F.SilkS) (width 0.12))
- (fp_line (start 16.635 -1.27) (end 17.905 -1.27) (layer F.SilkS) (width 0.12))
- (fp_line (start 17.905 -1.27) (end 17.905 -2.54) (layer F.SilkS) (width 0.12))
- (fp_line (start 17.905 -2.54) (end 35.685 -2.54) (layer F.SilkS) (width 0.12))
- (fp_line (start 35.685 -2.54) (end 35.685 2.54) (layer F.SilkS) (width 0.12))
- (fp_line (start 16.635 16.13) (end 34.415 16.13) (layer F.SilkS) (width 0.12))
- (fp_line (start 34.415 16.13) (end 34.415 14.86) (layer F.SilkS) (width 0.12))
- (fp_line (start 34.415 14.86) (end 35.685 14.86) (layer F.SilkS) (width 0.12))
- (fp_line (start 35.685 14.86) (end 35.685 12.32) (layer F.SilkS) (width 0.12))
- (fp_line (start 35.685 12.32) (end 34.415 12.32) (layer F.SilkS) (width 0.12))
- (fp_line (start 34.415 12.32) (end 34.415 11.05) (layer F.SilkS) (width 0.12))
- (fp_line (start 34.415 11.05) (end 16.635 11.05) (layer F.SilkS) (width 0.12))
- (fp_line (start 16.635 11.05) (end 16.635 16.13) (layer F.SilkS) (width 0.12))
- (fp_text user %R (at 26.16 6.63) (layer F.Fab)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (fp_text user - (at 36.955 0) (layer F.SilkS)
- (effects (font (size 1.5 1.5) (thickness 0.15)))
- )
- (fp_text user + (at 15.365 0) (layer F.SilkS)
- (effects (font (size 1.5 1.5) (thickness 0.15)))
- )
- (fp_text user - (at 15.365 13.59) (layer F.SilkS)
- (effects (font (size 1.5 1.5) (thickness 0.15)))
- )
- (fp_text user + (at 36.955 13.59) (layer F.SilkS)
- (effects (font (size 1.5 1.5) (thickness 0.15)))
- )
- (fp_text user + (at -4.34 0) (layer F.SilkS)
- (effects (font (size 1.5 1.5) (thickness 0.15)))
- )
- (fp_text user - (at -4.34 13.59) (layer F.SilkS)
- (effects (font (size 1.5 1.5) (thickness 0.15)))
- )
- (pad 1 thru_hole rect (at 0 0) (size 2.17 2.17) (drill 1.17) (layers *.Cu *.Mask)
- (net 1 "Net-(BT1-Pad1)"))
- (pad 2 thru_hole circle (at 0 13.59) (size 2.17 2.17) (drill 1.17) (layers *.Cu *.Mask)
- (net 2 GND))
- (pad "" np_thru_hole circle (at 26.16 6.63) (size 3.65 3.65) (drill 3.65) (layers *.Cu *.Mask))
- (model ${KISYS3DMOD}/Battery.3dshapes/BatteryHolder_MPD_BC2AAPC_2xAA.wrl
- (at (xyz 0 0 0))
- (scale (xyz 1 1 1))
- (rotate (xyz 0 0 0))
- )
- )
-
- (module Resistor_SMD:R_1206_3216Metric (layer F.Cu) (tedit 5B20DC38) (tstamp 5B5BC1DF)
- (at 60 61.4 90)
- (descr "Resistor SMD 1206 (3216 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: http://www.tortai-tech.com/upload/download/2011102023233369053.pdf), generated with kicad-footprint-generator")
- (tags resistor)
- (path /5B431328)
- (attr smd)
- (fp_text reference R1 (at 0 -1.82 90) (layer F.SilkS)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (fp_text value 10k (at 0 1.82 90) (layer F.Fab)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (fp_line (start -1.6 0.8) (end -1.6 -0.8) (layer F.Fab) (width 0.1))
- (fp_line (start -1.6 -0.8) (end 1.6 -0.8) (layer F.Fab) (width 0.1))
- (fp_line (start 1.6 -0.8) (end 1.6 0.8) (layer F.Fab) (width 0.1))
- (fp_line (start 1.6 0.8) (end -1.6 0.8) (layer F.Fab) (width 0.1))
- (fp_line (start -0.602064 -0.91) (end 0.602064 -0.91) (layer F.SilkS) (width 0.12))
- (fp_line (start -0.602064 0.91) (end 0.602064 0.91) (layer F.SilkS) (width 0.12))
- (fp_line (start -2.28 1.12) (end -2.28 -1.12) (layer F.CrtYd) (width 0.05))
- (fp_line (start -2.28 -1.12) (end 2.28 -1.12) (layer F.CrtYd) (width 0.05))
- (fp_line (start 2.28 -1.12) (end 2.28 1.12) (layer F.CrtYd) (width 0.05))
- (fp_line (start 2.28 1.12) (end -2.28 1.12) (layer F.CrtYd) (width 0.05))
- (fp_text user %R (at 0 0 90) (layer F.Fab)
- (effects (font (size 0.8 0.8) (thickness 0.12)))
- )
- (pad 1 smd roundrect (at -1.4 0 90) (size 1.25 1.75) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.2)
- (net 4 "Net-(R1-Pad1)"))
- (pad 2 smd roundrect (at 1.4 0 90) (size 1.25 1.75) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.2)
- (net 1 "Net-(BT1-Pad1)"))
- (model ${KISYS3DMOD}/Resistor_SMD.3dshapes/R_1206_3216Metric.wrl
- (at (xyz 0 0 0))
- (scale (xyz 1 1 1))
- (rotate (xyz 0 0 0))
- )
- )
-
- (module Capacitor_THT:CP_Radial_Tantal_D10.5mm_P5.00mm (layer F.Cu) (tedit 5AE50EF0) (tstamp 5B5D0FE8)
- (at 51.25 76)
- (descr "CP, Radial_Tantal series, Radial, pin pitch=5.00mm, , diameter=10.5mm, Tantal Electrolytic Capacitor, http://cdn-reichelt.de/documents/datenblatt/B300/TANTAL-TB-Serie%23.pdf")
- (tags "CP Radial_Tantal series Radial pin pitch 5.00mm diameter 10.5mm Tantal Electrolytic Capacitor")
- (path /5B4314AB)
- (fp_text reference C1 (at 2.5 -6.5) (layer F.SilkS)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (fp_text value 1u (at 2.5 6.5) (layer F.Fab)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (fp_circle (center 2.5 0) (end 7.75 0) (layer F.Fab) (width 0.1))
- (fp_circle (center 2.5 0) (end 7.87 0) (layer F.SilkS) (width 0.12))
- (fp_circle (center 2.5 0) (end 8 0) (layer F.CrtYd) (width 0.05))
- (fp_line (start -2.004387 -2.2975) (end -0.954387 -2.2975) (layer F.Fab) (width 0.1))
- (fp_line (start -1.479387 -2.8225) (end -1.479387 -1.7725) (layer F.Fab) (width 0.1))
- (fp_line (start -3.247133 -3.015) (end -2.197133 -3.015) (layer F.SilkS) (width 0.12))
- (fp_line (start -2.722133 -3.54) (end -2.722133 -2.49) (layer F.SilkS) (width 0.12))
- (fp_text user %R (at 2.5 0) (layer F.Fab)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (pad 1 thru_hole rect (at 0 0) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
- (net 3 "Net-(C1-Pad1)"))
- (pad 2 thru_hole circle (at 5 0) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
- (net 2 GND))
- (model ${KISYS3DMOD}/Capacitor_THT.3dshapes/CP_Radial_Tantal_D10.5mm_P5.00mm.wrl
- (at (xyz 0 0 0))
- (scale (xyz 1 1 1))
- (rotate (xyz 0 0 0))
- )
- )
-
- (module Resistor_SMD:R_1206_3216Metric (layer F.Cu) (tedit 5B20DC38) (tstamp 5B5D10B5)
- (at 58.75 66.5)
- (descr "Resistor SMD 1206 (3216 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: http://www.tortai-tech.com/upload/download/2011102023233369053.pdf), generated with kicad-footprint-generator")
- (tags resistor)
- (path /5B5CC4D4)
- (attr smd)
- (fp_text reference R2 (at 0 -1.82) (layer F.SilkS)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (fp_text value 10k (at 0 1.82) (layer F.Fab)
- (effects (font (size 1 1) (thickness 0.15)))
- )
- (fp_line (start -1.6 0.8) (end -1.6 -0.8) (layer F.Fab) (width 0.1))
- (fp_line (start -1.6 -0.8) (end 1.6 -0.8) (layer F.Fab) (width 0.1))
- (fp_line (start 1.6 -0.8) (end 1.6 0.8) (layer F.Fab) (width 0.1))
- (fp_line (start 1.6 0.8) (end -1.6 0.8) (layer F.Fab) (width 0.1))
- (fp_line (start -0.602064 -0.91) (end 0.602064 -0.91) (layer F.SilkS) (width 0.12))
- (fp_line (start -0.602064 0.91) (end 0.602064 0.91) (layer F.SilkS) (width 0.12))
- (fp_line (start -2.28 1.12) (end -2.28 -1.12) (layer F.CrtYd) (width 0.05))
- (fp_line (start -2.28 -1.12) (end 2.28 -1.12) (layer F.CrtYd) (width 0.05))
- (fp_line (start 2.28 -1.12) (end 2.28 1.12) (layer F.CrtYd) (width 0.05))
- (fp_line (start 2.28 1.12) (end -2.28 1.12) (layer F.CrtYd) (width 0.05))
- (fp_text user %R (at 0 0) (layer F.Fab)
- (effects (font (size 0.8 0.8) (thickness 0.12)))
- )
- (pad 1 smd roundrect (at -1.4 0) (size 1.25 1.75) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.2)
- (net 3 "Net-(C1-Pad1)"))
- (pad 2 smd roundrect (at 1.4 0) (size 1.25 1.75) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.2)
- (net 4 "Net-(R1-Pad1)"))
- (model ${KISYS3DMOD}/Resistor_SMD.3dshapes/R_1206_3216Metric.wrl
- (at (xyz 0 0 0))
- (scale (xyz 1 1 1))
- (rotate (xyz 0 0 0))
- )
- )
-
- (segment (start 71.25 60) (end 71.75 60.5) (width 0.25) (layer F.Cu) (net 1))
- (segment (start 60 60) (end 71.25 60) (width 0.25) (layer F.Cu) (net 1))
- (segment (start 62.91 74.09) (end 61 76) (width 0.25) (layer B.Cu) (net 2))
- (segment (start 71.75 74.09) (end 62.91 74.09) (width 0.25) (layer B.Cu) (net 2))
- (segment (start 56.25 76) (end 61 76) (width 0.25) (layer B.Cu) (net 2))
- (segment (start 53.25 66.5) (end 51.25 68.5) (width 0.25) (layer F.Cu) (net 3))
- (segment (start 57.35 66.5) (end 53.25 66.5) (width 0.25) (layer F.Cu) (net 3))
- (segment (start 51.25 76) (end 51.25 68.5) (width 0.25) (layer F.Cu) (net 3))
- (segment (start 60 66.35) (end 60.15 66.5) (width 0.25) (layer F.Cu) (net 4))
- (segment (start 60 62.8) (end 60 66.35) (width 0.25) (layer F.Cu) (net 4))
-
-)
diff --git a/test/doit/schematics/schematic-1.pro b/test/doit/schematics/schematic-1.pro
deleted file mode 100644
index dd201c7..0000000
--- a/test/doit/schematics/schematic-1.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-update=22/05/2015 07:44:53
-version=1
-last_client=kicad
-[general]
-version=1
-RootSch=
-BoardNm=
diff --git a/test/doit/schematics/schematic-1.sch b/test/doit/schematics/schematic-1.sch
deleted file mode 100644
index a0175f3..0000000
--- a/test/doit/schematics/schematic-1.sch
+++ /dev/null
@@ -1,94 +0,0 @@
-EESchema Schematic File Version 4
-EELAYER 26 0
-EELAYER END
-$Descr A4 11693 8268
-encoding utf-8
-Sheet 1 1
-Title ""
-Date ""
-Rev ""
-Comp ""
-Comment1 ""
-Comment2 ""
-Comment3 ""
-Comment4 ""
-$EndDescr
-$Comp
-L Device:R R1
-U 1 1 5B431328
-P 4150 2600
-F 0 "R1" V 3943 2600 50 0000 C CNN
-F 1 "10k" V 4034 2600 50 0000 C CNN
-F 2 "Resistor_SMD:R_1206_3216Metric" V 4080 2600 50 0001 C CNN
-F 3 "~" H 4150 2600 50 0001 C CNN
-F 4 "RMCF1206JT10K0" V 4150 2600 50 0001 C CNN "mpn"
- 1 4150 2600
- 0 1 1 0
-$EndComp
-$Comp
-L Device:Battery_Cell BT1
-U 1 1 5B431438
-P 3700 2900
-F 0 "BT1" H 3818 2996 50 0000 L CNN
-F 1 "9V" H 3818 2905 50 0000 L CNN
-F 2 "Battery:BatteryHolder_MPD_BC2AAPC_2xAA" V 3700 2960 50 0001 C CNN
-F 3 "~" V 3700 2960 50 0001 C CNN
-F 4 "BC2AAPC" H 3700 2900 50 0001 C CNN "mpn"
- 1 3700 2900
- 1 0 0 -1
-$EndComp
-$Comp
-L Device:C C1
-U 1 1 5B4314AB
-P 5100 2850
-F 0 "C1" H 5215 2896 50 0000 L CNN
-F 1 "1u" H 5215 2805 50 0000 L CNN
-F 2 "Capacitor_THT:CP_Radial_Tantal_D10.5mm_P5.00mm" H 5138 2700 50 0001 C CNN
-F 3 "~" H 5100 2850 50 0001 C CNN
-F 4 "UCA2G100MPD1TD" H 5100 2850 50 0001 C CNN "mpn"
- 1 5100 2850
- 1 0 0 -1
-$EndComp
-Wire Wire Line
- 3700 3000 3700 3100
-Wire Wire Line
- 5100 3100 5100 3000
-$Comp
-L power:GND #PWR0101
-U 1 1 5B4315FE
-P 3700 3200
-F 0 "#PWR0101" H 3700 2950 50 0001 C CNN
-F 1 "GND" H 3705 3027 50 0000 C CNN
-F 2 "" H 3700 3200 50 0001 C CNN
-F 3 "" H 3700 3200 50 0001 C CNN
- 1 3700 3200
- 1 0 0 -1
-$EndComp
-Wire Wire Line
- 3700 3200 3700 3100
-Connection ~ 3700 3100
-Wire Wire Line
- 3700 2700 3700 2600
-Wire Wire Line
- 5100 2600 5100 2700
-Wire Wire Line
- 3700 2600 4000 2600
-Wire Wire Line
- 3700 3100 5100 3100
-Wire Wire Line
- 4300 2600 4500 2600
-$Comp
-L Device:R R2
-U 1 1 5B5CC4D4
-P 4650 2600
-F 0 "R2" V 4443 2600 50 0000 C CNN
-F 1 "10k" V 4534 2600 50 0000 C CNN
-F 2 "Resistor_SMD:R_1206_3216Metric" V 4580 2600 50 0001 C CNN
-F 3 "~" H 4650 2600 50 0001 C CNN
-F 4 "RMCF1206JT10K0" V 4650 2600 50 0001 C CNN "mpn"
- 1 4650 2600
- 0 1 1 0
-$EndComp
-Wire Wire Line
- 4800 2600 5100 2600
-$EndSCHEMATC
diff --git a/test/doit/test_doit.py b/test/doit/test_doit.py
deleted file mode 100644
index fc13192..0000000
--- a/test/doit/test_doit.py
+++ /dev/null
@@ -1,54 +0,0 @@
-import inspect
-import os
-import pathlib
-from inspect import Parameter
-
-import ee.digikey.doit
-import ee.kicad.doit
-from ee.digikey.doit import *
-from ee.ds import DataSetManager
-from ee.kicad.doit import *
-
-logger = logging.getLogger(__name__)
-
-file_dir = pathlib.Path(__file__).parent
-schematics_dir = file_dir / "schematics"
-
-
-def exec_task(task):
- targets = task["targets"]
- for a in task["actions"]:
- if isinstance(a, str):
- cmd = a % dict(targets=" ".join(targets))
- ret = os.system(cmd)
- assert (ret == 0)
- else:
- parameters = {}
- for p in inspect.signature(a).parameters.values():
- if p.kind == Parameter.POSITIONAL_OR_KEYWORD and p.name == "targets":
- parameters["targets"] = targets
-
- a(**parameters)
-
-
-# noinspection SpellCheckingInspection
-def test_doit(tmpdir, caplog):
- dsm = DataSetManager(pathlib.Path(tmpdir) / "ee")
-
- dsm.register_ds("csv", "kicad-footprint", "kicad-footprint-mapping",
- path=schematics_dir / "ee" / "kicad-footprint.csv")
-
- ee.kicad.doit.doit_config.configure(data_set_manager=dsm)
- ee.kicad.doit.doit_config.change_data_sets_for_task(task_kicad_create_component_data_set,
- lambda ds: ds + ["kicad-footprint"])
-
- ee.kicad.doit.init(sch=schematics_dir / "schematic-1.sch",
- kicad_pcb=schematics_dir / "schematic-1.kicad_pcb", )
-
- ee.digikey.doit.doit_config.configure(data_set_manager=dsm)
-
- exec_task(task_kicad_sch_to_data_set())
- exec_task(task_kicad_pcb_to_data_set())
- exec_task(task_kicad_create_component_data_set())
- exec_task(task_digikey_resolve_schematic_components())
- exec_task(task_digikey_fetch_full_part_facts())