unit-testing pymod with tl, rdb, and db (+plugins) tests

This commit is contained in:
Thomas Ferreira de Lima 2018-10-09 18:00:38 -04:00
parent 80694aaba2
commit c78c2a0228
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
2 changed files with 1 additions and 14 deletions

View File

@ -232,7 +232,7 @@ script:
python setup.py build;
python setup.py bdist_wheel;
python setup.py install;
python test-klayout-db-plugins.py;
python -m unittest testdata/pymod/import_db.py testdata/pymod/import_rdb.py testdata/pymod/import_tl.py;
mkdir -p deploy/dist-pymod;
cp -a dist/* deploy/dist-pymod/;
python -c 'import klayout.db as db; print(dir(db))';

View File

@ -1,13 +0,0 @@
import klayout.db as kdb
layout = kdb.Layout()
layer1 = layout.layer(kdb.LayerInfo('1/0'))
TOP = layout.create_cell("TOP")
box = kdb.DBox(kdb.DPoint(-4500, -4500), kdb.DPoint(4500, 4500))
TOP.shapes(layer1).insert(box)
layout.write('test.gds')