Commit 98109673 authored by Millian Poquet's avatar Millian Poquet
Browse files

[test] new tests: dynamic submit, no_redis

parent 3bc7b398
......@@ -248,6 +248,18 @@ add_test(same_submit_time
-bod /tmp/batsim_tests/same_submit_time
-bwd ${CMAKE_SOURCE_DIR})
add_test(no_redis
${CMAKE_SOURCE_DIR}/tools/experiments/execute_instances.py
${CMAKE_SOURCE_DIR}/test/test_no_redis.yaml
-bod /tmp/batsim_tests/no_redis
-bwd ${CMAKE_SOURCE_DIR})
add_test(dynamic_submit
${CMAKE_SOURCE_DIR}/tools/experiments/execute_instances.py
${CMAKE_SOURCE_DIR}/test/test_dynamic_submit.yaml
-bod /tmp/batsim_tests/dynamic_submit
-bwd ${CMAKE_SOURCE_DIR})
add_test(pybatsim_tests
${CMAKE_SOURCE_DIR}/tools/experiments/execute_instances.py
${CMAKE_SOURCE_DIR}/test/pybatsim_tests.yaml
......
base_output_directory: /tmp/batsim_tests/dynamic_submit
base_variables:
batsim_dir: ${base_working_directory}
implicit_instances:
# Algorithms without parameters
noparam:
sweep:
platform :
- {"name":"homo128", "filename":"${batsim_dir}/platforms/energy_platform_homogeneous_no_net_128.xml"}
workload :
- {"name":"hello", "filename":"${batsim_dir}/workload_profiles/test_workload_profile.json"}
- {"name":"medium_late", "filename":"${batsim_dir}/workload_profiles/batsim_paper_workload_example_late_job.json"}
algo:
- {"name":"submitter", "sched_name":"submitter"}
redis_enabled: ["false"]
dynamic_submit_ack: ["true"]
generic_instance:
timeout: 3600
working_directory: ${base_working_directory}
output_directory: ${base_output_directory}/results/${instance_id}
batsim_command: batsim -p ${platform[filename]} -w ${workload[filename]} -E -e ${output_directory}/out --mmax-workload --config-file ${output_directory}/batsim.conf -vnetwork-only
sched_command: batsched -v ${algo[sched_name]}
commands_before_execution:
# Generate Batsim config file
- |
#!/bin/bash
cat > ${output_directory}/batsim.conf << EOF
{
"redis": {
"enabled": ${redis_enabled}
},
"job_submission": {
"forward_profiles": true,
"from_scheduler":{
"enabled": true,
"acknowledge": ${dynamic_submit_ack}
}
}
}
EOF
commands_before_instances:
- ${batsim_dir}/test/is_batsim_dir.py ${base_working_directory}
- ${batsim_dir}/test/clean_output_dir.py ${base_output_directory}
base_output_directory: /tmp/batsim_tests/no_redis
base_variables:
batsim_dir: ${base_working_directory}
implicit_instances:
# Algorithms without parameters
noparam:
sweep:
platform :
- {"name":"homo128", "filename":"${batsim_dir}/platforms/energy_platform_homogeneous_no_net_128.xml"}
workload :
- {"name":"hello", "filename":"${batsim_dir}/workload_profiles/test_workload_profile.json"}
- {"name":"medium_late", "filename":"${batsim_dir}/workload_profiles/batsim_paper_workload_example_late_job.json"}
algo:
- {"name":"easy_bf", "sched_name":"easy_bf"}
- {"name":"filler", "sched_name":"filler"}
- {"name":"conservative_bf", "sched_name":"conservative_bf"}
- {"name":"killer", "sched_name":"killer"}
redis_enabled: ["false"]
generic_instance:
timeout: 3600
working_directory: ${base_working_directory}
output_directory: ${base_output_directory}/results/${instance_id}
batsim_command: batsim -p ${platform[filename]} -w ${workload[filename]} -E -e ${output_directory}/out --mmax-workload --config-file ${output_directory}/batsim.conf -vdebug
sched_command: batsched -v ${algo[sched_name]}
commands_before_execution:
# Generate Batsim config file
- |
#!/bin/bash
cat > ${output_directory}/batsim.conf << EOF
{
"redis": {
"enabled": ${redis_enabled}
},
"job_submission": {
"forward_profiles": true
}
}
EOF
commands_before_instances:
- ${batsim_dir}/test/is_batsim_dir.py ${base_working_directory}
- ${batsim_dir}/test/clean_output_dir.py ${base_output_directory}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment