Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
batmen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
mael
batmen
Commits
99fb4242
Commit
99fb4242
authored
6 years ago
by
Millian Poquet
Browse files
Options
Downloads
Patches
Plain Diff
[test] remove batsim conf (batsim-3.0.0)
parent
e6a2e1af
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/helper.py
+1
-2
1 addition, 2 deletions
test/helper.py
test/test_energy.py
+2
-2
2 additions, 2 deletions
test/test_energy.py
test/test_runner.py
+8
-11
8 additions, 11 deletions
test/test_runner.py
with
11 additions
and
15 deletions
test/helper.py
+
1
−
2
View file @
99fb4242
...
@@ -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
)
This diff is collapsed.
Click to expand it.
test/test_energy.py
+
2
−
2
View file @
99fb4242
...
@@ -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
"
)
...
...
This diff is collapsed.
Click to expand it.
test/test_runner.py
+
8
−
11
View file @
99fb4242
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment