Added simple navigate_results test

This commit is contained in:
Salvador E. Tropea 2022-06-09 10:36:39 -03:00
parent fb6e2ff2de
commit 0b8c4f1726
1 changed files with 8 additions and 1 deletions

View File

@ -1168,6 +1168,8 @@ def test_quick_start_1(test_dir):
""" Very naive test to see if it doesn't crash """
prj = 'light_control'
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)
board_file = os.path.basename(ctx.board_file)
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)
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)
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)
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)
@ -1188,6 +1191,10 @@ 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'\]')
# 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):