Skip to content
Snippets Groups Projects
Commit 99fb4242 authored by Millian Poquet's avatar Millian Poquet
Browse files

[test] remove batsim conf (batsim-3.0.0)

parent e6a2e1af
Branches
No related tags found
No related merge requests found
...@@ -47,9 +47,8 @@ def run_robin(filename): ...@@ -47,9 +47,8 @@ def run_robin(filename):
def init_instance(test_name): def init_instance(test_name):
output_dir = os.path.abspath(f'test-out/{test_name}') output_dir = os.path.abspath(f'test-out/{test_name}')
robin_filename = os.path.abspath(f'test-instances/{test_name}.yaml') robin_filename = os.path.abspath(f'test-instances/{test_name}.yaml')
batconf_filename = f'{output_dir}/batconf.json'
schedconf_filename = f'{output_dir}/schedconf.json' schedconf_filename = f'{output_dir}/schedconf.json'
create_dir_rec_if_needed(output_dir) create_dir_rec_if_needed(output_dir)
return (output_dir, robin_filename, batconf_filename, schedconf_filename) return (output_dir, robin_filename, schedconf_filename)
...@@ -24,7 +24,7 @@ def energy_model_instance(): ...@@ -24,7 +24,7 @@ def energy_model_instance():
# sedate_idle_on_classical_events): # sedate_idle_on_classical_events):
# algo = 'energy_bf_monitoring_inertial' # algo = 'energy_bf_monitoring_inertial'
# test_name = f'{algo}-{platform.name}-{workload.name}-{inertial_function}-{idle_time_to_sedate}-{sedate_idle_on_classical_events}' # test_name = f'{algo}-{platform.name}-{workload.name}-{inertial_function}-{idle_time_to_sedate}-{sedate_idle_on_classical_events}'
# output_dir, robin_filename, _, schedconf_filename = init_instance(test_name) # output_dir, robin_filename, schedconf_filename = init_instance(test_name)
# batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir, "--energy") # batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir, "--energy")
...@@ -55,7 +55,7 @@ def energy_model_instance(): ...@@ -55,7 +55,7 @@ def energy_model_instance():
def test_sleeper(platform, workload): def test_sleeper(platform, workload):
algo = 'sleeper' algo = 'sleeper'
test_name = f'{algo}-{platform.name}-{workload.name}' test_name = f'{algo}-{platform.name}-{workload.name}'
output_dir, robin_filename, _, schedconf_filename = init_instance(test_name) output_dir, robin_filename, schedconf_filename = init_instance(test_name)
batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir, "--energy") batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir, "--energy")
......
...@@ -8,7 +8,7 @@ from helper import * ...@@ -8,7 +8,7 @@ from helper import *
def test_basic_algo_no_param(platform, workload, basic_algo_no_param): def test_basic_algo_no_param(platform, workload, basic_algo_no_param):
test_name = f'{basic_algo_no_param}-{platform.name}-{workload.name}' test_name = f'{basic_algo_no_param}-{platform.name}-{workload.name}'
output_dir, robin_filename, _, _ = init_instance(test_name) output_dir, robin_filename, _ = init_instance(test_name)
batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir, "") batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir, "")
instance = RobinInstance(output_dir=output_dir, instance = RobinInstance(output_dir=output_dir,
...@@ -25,7 +25,7 @@ def test_basic_algo_no_param(platform, workload, basic_algo_no_param): ...@@ -25,7 +25,7 @@ def test_basic_algo_no_param(platform, workload, basic_algo_no_param):
def test_easy_bf_plot_llh(platform, workload): def test_easy_bf_plot_llh(platform, workload):
algo = 'easy_bf_plot_liquid_load_horizon' algo = 'easy_bf_plot_liquid_load_horizon'
test_name = f'{algo}-{platform.name}-{workload.name}' test_name = f'{algo}-{platform.name}-{workload.name}'
output_dir, robin_filename, _, schedconf_filename = init_instance(test_name) output_dir, robin_filename, schedconf_filename = init_instance(test_name)
batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir, "--energy") batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir, "--energy")
...@@ -47,17 +47,14 @@ def test_easy_bf_plot_llh(platform, workload): ...@@ -47,17 +47,14 @@ def test_easy_bf_plot_llh(platform, workload):
def test_redis(platform, workload, one_basic_algo, redis_enabled): def test_redis(platform, workload, one_basic_algo, redis_enabled):
test_name = f'{one_basic_algo}-{platform.name}-{workload.name}-{redis_enabled}' test_name = f'{one_basic_algo}-{platform.name}-{workload.name}-{redis_enabled}'
output_dir, robin_filename, batconf_filename, _ = init_instance(test_name) output_dir, robin_filename, _ = init_instance(test_name)
batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir, batsim_extra_flags = ""
f"--config-file '{batconf_filename}'") if redis_enabled:
batsim_extra_flags = "--enable-redis"
batconf_content = { batcmd = gen_batsim_cmd(platform.filename, workload.filename, output_dir,
"redis": { batsim_extra_flags)
"enabled": redis_enabled
}
}
write_file(batconf_filename, json.dumps(batconf_content))
instance = RobinInstance(output_dir=output_dir, instance = RobinInstance(output_dir=output_dir,
batcmd=batcmd, batcmd=batcmd,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment