Added simple navigate_results test
This commit is contained in:
parent
fb6e2ff2de
commit
0b8c4f1726
|
|
@ -1168,6 +1168,8 @@ def test_quick_start_1(test_dir):
|
||||||
""" Very naive test to see if it doesn't crash """
|
""" Very naive test to see if it doesn't crash """
|
||||||
prj = 'light_control'
|
prj = 'light_control'
|
||||||
dir_o = 'navigate'
|
dir_o = 'navigate'
|
||||||
|
generated = 'kibot_generated.kibot.yaml'
|
||||||
|
# 1) Run the quick-start
|
||||||
ctx = context.TestContext(test_dir, 'test_quick_start_1', prj, 'pre_and_position', dir_o)
|
ctx = context.TestContext(test_dir, 'test_quick_start_1', prj, 'pre_and_position', dir_o)
|
||||||
board_file = os.path.basename(ctx.board_file)
|
board_file = os.path.basename(ctx.board_file)
|
||||||
dest_dir = ctx.get_out_path(dir_o)
|
dest_dir = ctx.get_out_path(dir_o)
|
||||||
|
|
@ -1178,7 +1180,8 @@ def test_quick_start_1(test_dir):
|
||||||
dest_file_sch = os.path.join(dest_dir, sch_file)
|
dest_file_sch = os.path.join(dest_dir, sch_file)
|
||||||
shutil.copy2(ctx.sch_file, dest_file_sch)
|
shutil.copy2(ctx.sch_file, dest_file_sch)
|
||||||
ctx.run(extra=['--quick-start', '--dry', '--start', dest_dir], no_board_file=True, no_yaml_file=True)
|
ctx.run(extra=['--quick-start', '--dry', '--start', dest_dir], no_board_file=True, no_yaml_file=True)
|
||||||
dest_conf = os.path.join(dir_o, 'kibot_generated.kibot.yaml')
|
# 2) List the generated outputs
|
||||||
|
dest_conf = os.path.join(dir_o, generated)
|
||||||
ctx.expect_out_file(dest_conf)
|
ctx.expect_out_file(dest_conf)
|
||||||
dest_conf_f = os.path.join(dest_dir, 'kibot_generated.kibot.yaml')
|
dest_conf_f = os.path.join(dest_dir, 'kibot_generated.kibot.yaml')
|
||||||
ctx.run(extra=['-c', dest_conf_f, '-l'], no_out_dir=True, no_yaml_file=True)
|
ctx.run(extra=['-c', dest_conf_f, '-l'], no_out_dir=True, no_yaml_file=True)
|
||||||
|
|
@ -1188,6 +1191,10 @@ def test_quick_start_1(test_dir):
|
||||||
'bom', 'download_datasheets', 'pdf_sch_print', 'svg_sch_print')
|
'bom', 'download_datasheets', 'pdf_sch_print', 'svg_sch_print')
|
||||||
for o in OUTS:
|
for o in OUTS:
|
||||||
ctx.search_out(r'\['+o+r'\]')
|
ctx.search_out(r'\['+o+r'\]')
|
||||||
|
# 3) Generate the navigate_results stuff
|
||||||
|
ctx.run(extra=['-c', dest_conf_f, 'basic_navigate_results'], no_yaml_file=True)
|
||||||
|
ctx.expect_out_file('index.html')
|
||||||
|
ctx.expect_out_file(os.path.join('Browse', 'light_control-navigate.html'))
|
||||||
|
|
||||||
|
|
||||||
def test_netlist_classic_1(test_dir):
|
def test_netlist_classic_1(test_dir):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue