Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
batsim
batsim
Commits
c9542e1c
Commit
c9542e1c
authored
Jan 11, 2017
by
Millian Poquet
Browse files
[test] pybatsim dedicated test
parent
4b5810bf
Changes
4
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
c9542e1c
...
@@ -237,8 +237,8 @@ add_test(same_submit_time
...
@@ -237,8 +237,8 @@ add_test(same_submit_time
-bod /tmp/batsim_tests/same_submit_time
-bod /tmp/batsim_tests/same_submit_time
-bwd
${
CMAKE_SOURCE_DIR
}
)
-bwd
${
CMAKE_SOURCE_DIR
}
)
add_test
(
pybatsim_tests
${
CMAKE_SOURCE_DIR
}
/tools/experiments/execute_instances.py
${
CMAKE_SOURCE_DIR
}
/test/pybatsim_tests.yaml
-bod /tmp/pybatsim_tests
-bwd
${
CMAKE_SOURCE_DIR
}
)
test/pybatsim_tests.yaml
0 → 100644
View file @
c9542e1c
base_output_directory
:
/tmp/pybatsim_tests/
base_variables
:
batsim_dir
:
${base_working_directory}
implicit_instances
:
implicit
:
sweep
:
platform
:
-
{
"
name"
:
"
homo128"
,
"
filename"
:
"
${batsim_dir}/platforms/energy_platform_homogeneous_no_net_128.xml"
}
workload
:
-
{
"
name"
:
"
tiny"
,
"
filename"
:
"
${batsim_dir}/workload_profiles/test_workload_profile.json"
}
-
{
"
name"
:
"
medium"
,
"
filename"
:
"
${batsim_dir}/workload_profiles/batsim_paper_workload_example.json"
}
pybatsim_algo
:
-
{
"
name"
:
"
filler"
,
"
algo_name"
:
"
fillerSched"
}
-
{
"
name"
:
"
easy"
,
"
algo_name"
:
"
easyBackfill"
}
-
{
"
name"
:
"
easy_no_topo"
,
"
algo_name"
:
"
easyBackfillNotopo"
}
energy_string
:
[
'
'
,
'
-E'
]
generic_instance
:
timeout
:
10
working_directory
:
${base_working_directory}
output_directory
:
${base_output_directory}/results/${instance_id}
batsim_command
:
batsim -p ${platform[filename]} -w ${workload[filename]} -e ${output_directory}/out -s ${output_directory}/socket --mmax-workload ${energy_string}
sched_command
:
python2 ${batsim_dir}/schedulers/pybatsim/launcher.py ${pybatsim_algo[algo_name]} -s ${output_directory}/socket
commands_before_instances
:
-
${batsim_dir}/test/is_batsim_dir.py ${base_working_directory}
-
${batsim_dir}/test/clean_output_dir.py ${base_output_directory}
test/test_energy.yaml
View file @
c9542e1c
...
@@ -19,7 +19,6 @@ implicit_instances:
...
@@ -19,7 +19,6 @@ implicit_instances:
-
{
"
name"
:
"
medium"
,
"
filename"
:
"
${batsim_dir}/workload_profiles/batsim_paper_workload_example.json"
}
-
{
"
name"
:
"
medium"
,
"
filename"
:
"
${batsim_dir}/workload_profiles/batsim_paper_workload_example.json"
}
pybatsim_algo
:
pybatsim_algo
:
-
{
"
name"
:
"
filler"
,
"
algo_name"
:
"
fillerSched"
}
-
{
"
name"
:
"
filler"
,
"
algo_name"
:
"
fillerSched"
}
-
{
"
name"
:
"
easy"
,
"
algo_name"
:
"
easyBackfillNotopo"
}
generic_instance
:
generic_instance
:
timeout
:
10
timeout
:
10
working_directory
:
${base_working_directory}
working_directory
:
${base_working_directory}
...
...
test/test_no_energy.yaml
View file @
c9542e1c
...
@@ -19,7 +19,6 @@ implicit_instances:
...
@@ -19,7 +19,6 @@ implicit_instances:
-
{
"
name"
:
"
medium"
,
"
filename"
:
"
${batsim_dir}/workload_profiles/batsim_paper_workload_example.json"
}
-
{
"
name"
:
"
medium"
,
"
filename"
:
"
${batsim_dir}/workload_profiles/batsim_paper_workload_example.json"
}
pybatsim_algo
:
pybatsim_algo
:
-
{
"
name"
:
"
filler"
,
"
algo_name"
:
"
fillerSched"
}
-
{
"
name"
:
"
filler"
,
"
algo_name"
:
"
fillerSched"
}
-
{
"
name"
:
"
easy"
,
"
algo_name"
:
"
easyBackfillNotopo"
}
generic_instance
:
generic_instance
:
timeout
:
10
timeout
:
10
working_directory
:
${base_working_directory}
working_directory
:
${base_working_directory}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment