Footprint sideloading tests
This commit is contained in:
parent
24466eb01d
commit
0d73c59538
15 changed files with 315 additions and 14 deletions
BIN
test/fixtures/bundle.zip
vendored
Normal file
BIN
test/fixtures/bundle.zip
vendored
Normal file
Binary file not shown.
13
test/fixtures/bundle/config.yaml
vendored
Normal file
13
test/fixtures/bundle/config.yaml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
points.zones.matrix:
|
||||
outlines:
|
||||
box:
|
||||
- what: rectangle
|
||||
where: true
|
||||
size: 18
|
||||
pcbs:
|
||||
pcb:
|
||||
outlines.edge.outline: box
|
||||
footprints:
|
||||
injected:
|
||||
type: injected
|
||||
anchor: matrix
|
13
test/fixtures/bundle/footprints/injected.js
vendored
Normal file
13
test/fixtures/bundle/footprints/injected.js
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
module.exports = {
|
||||
params: {
|
||||
class: 'I'
|
||||
},
|
||||
body: p => `
|
||||
(module injected_test_footprint (layer F.Cu) (tedit 5E1ADAC2)
|
||||
${p.at /* parametric position */}
|
||||
|
||||
${'' /* footprint reference */}
|
||||
(fp_text reference "${p.ref}" (at 0 0) (layer F.SilkS) ${p.ref_hide} (effects (font (size 1.27 1.27) (thickness 0.15))))
|
||||
)
|
||||
`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue