From baad162199f1cc094e54c92f85848ad615a53df8 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 8 Jun 2022 13:48:34 -0300 Subject: [PATCH] Added simple tests for netlist output (classic and IPC) --- tests/test_plot/test_misc.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index 3aaed870..170457ef 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -1188,3 +1188,19 @@ def test_quick_start_1(test_dir): 'bom', 'download_datasheets', 'pdf_sch_print', 'svg_sch_print') for o in OUTS: ctx.search_out(r'\['+o+r'\]') + + +def test_netlist_classic_1(test_dir): + prj = 'light_control' + dir_o = 'Export' + ctx = context.TestContext(test_dir, 'test_netlist_classic_1', prj, 'netlist_classic_1', dir_o) + ctx.run() + ctx.expect_out_file(os.path.join(dir_o, prj+'-netlist.net')) + + +def test_netlist_ipc_1(test_dir): + prj = 'light_control' + dir_o = 'Export' + ctx = context.TestContext(test_dir, 'test_netlist_ipc_1', prj, 'netlist_ipc_1', dir_o) + ctx.run() + ctx.expect_out_file(os.path.join(dir_o, prj+'-IPC-D-356.d356'))