Rearrange tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
examples/
|
||||
src/
|
||||
node-modules/
|
||||
tests/
|
||||
test/
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"coffee-script": "1.x.x",
|
||||
"gulp": "3.x.x",
|
||||
"rm-r": "1.x.x"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
8
test/connector.coffee
Normal file
8
test/connector.coffee
Normal file
@@ -0,0 +1,8 @@
|
||||
Qeda = require '../src/qeda'
|
||||
|
||||
process.chdir __dirname
|
||||
|
||||
lib = new Qeda.Library
|
||||
lib.add 'Kyocera/145602070001829S+'
|
||||
lib.add 'Kyocera/245602670001829H+'
|
||||
lib.generate 'qeda_connector'
|
||||
14
test/custom.coffee
Normal file
14
test/custom.coffee
Normal file
@@ -0,0 +1,14 @@
|
||||
fs = require 'fs'
|
||||
mkdirp = require 'mkdirp'
|
||||
Qeda = require '../src/qeda'
|
||||
|
||||
process.chdir __dirname
|
||||
|
||||
mkdirp 'library'
|
||||
|
||||
dummy = fs.readFileSync '../examples/custom/library/dummy.yaml'
|
||||
fs.writeFileSync 'library/dummy.yaml', dummy
|
||||
|
||||
lib = new Qeda.Library
|
||||
lib.add 'Dummy'
|
||||
lib.generate 'qeda_custom'
|
||||
@@ -8,5 +8,4 @@ lib.add 'Analog/AD9393'
|
||||
lib.add 'ST/L3GD20H'
|
||||
lib.add 'TI/ISO721'
|
||||
lib.add 'TI/ISO722'
|
||||
lib.add 'Dummy'
|
||||
lib.generate 'mylib'
|
||||
lib.generate 'qeda_ic'
|
||||
14
test/ic_gost.coffee
Normal file
14
test/ic_gost.coffee
Normal file
@@ -0,0 +1,14 @@
|
||||
Qeda = require '../src/qeda'
|
||||
|
||||
process.chdir __dirname
|
||||
|
||||
lib = new Qeda.Library
|
||||
symbol:
|
||||
style: 'GOST'
|
||||
|
||||
lib.add 'Altera/5M1270ZT144'
|
||||
lib.add 'Analog/AD9393'
|
||||
lib.add 'ST/L3GD20H'
|
||||
lib.add 'TI/ISO721'
|
||||
lib.add 'TI/ISO722'
|
||||
lib.generate 'qeda_gost'
|
||||
@@ -1,29 +0,0 @@
|
||||
name: Dummy
|
||||
|
||||
pinout:
|
||||
DIN: 1
|
||||
~DOUT: 2
|
||||
Vcc: 3
|
||||
GND: 4, 5
|
||||
NC: 6-8
|
||||
|
||||
properties:
|
||||
power: Vcc
|
||||
ground: GND
|
||||
in: DIN
|
||||
out: ~DOUT
|
||||
nc: NC
|
||||
inverted: ~DOUT
|
||||
|
||||
schematic:
|
||||
symbol: IC
|
||||
showPinNumbers: true
|
||||
showPinNames: true
|
||||
left: DIN, NC
|
||||
right: ~DOUT, NC
|
||||
top: Vcc
|
||||
bottom: GND
|
||||
|
||||
housing:
|
||||
pattern: SOIC
|
||||
outline: JEDEC MS-012 AA
|
||||
Reference in New Issue
Block a user