Skip to content
Snippets Groups Projects
Commit 0b7bf3c9 authored by Maël Madon's avatar Maël Madon
Browse files

refac: renaming project

parent 11b40863
No related branches found
No related tags found
No related merge requests found
# swf2sessions
# swf2userSessions
Python script to read a workload trace in the [Standard Workload Format](https://www.cs.huji.ac.il/labs/parallel/workload/swf.html) (SWF), decompose it into user sessions, analyse the dependencies between sessions and store the results in the Session Annotated Batsim JSON format (SABjson).
## What is a session?
......@@ -23,10 +23,10 @@ Requirements:
To run the session decomposition on the workload `workloads/example.swf` illustrated above, with "Arrival" delimitation approach and a threshold of 60 minutes:
```terminal
python3 swf2sessions.py -a 60 workloads/example.swf out/
python3 swf2userSessions.py -a 60 workloads/example.swf out/
```
For more documentation, see: `python3 swf2sessions.py -h`
For more documentation, see: `python3 swf2userSessions.py -h`
## Tests
Some integration tests have been written for this script, and are stored in the `test/` folder. To run them on your machine, just type `pytest` at the root of the project.
\ No newline at end of file
......@@ -16,14 +16,14 @@ def test_bad_output():
bad_output_name = "/grumpf"
with pytest.raises(subprocess.CalledProcessError):
subprocess.run([
'python3', 'swf2sessions.py', '-at', '30', KTH_WL.swf_file,
'python3', 'swf2userSessions.py', '-a', '30', KTH_WL.swf_file,
bad_output_name
],
check=True)
def test_kth_delim_last():
"""Launch swf2sessions with 'last' delimitation approach and several threshold values"""
"""Launch swf2userSessions with 'last' delimitation approach and several threshold values"""
for threshold in thresholds:
out_dir, _ = run_script('last', threshold)
......@@ -33,7 +33,7 @@ def test_kth_delim_last():
def test_kth_delim_arrival():
"""Launch swf2sessions with 'arrival' delimitation approach and several threshold values"""
"""Launch swf2userSessions with 'arrival' delimitation approach and several threshold values"""
for threshold in thresholds:
out_dir, _ = run_script('arrival', threshold)
......@@ -43,7 +43,7 @@ def test_kth_delim_arrival():
def test_kth_delim_max():
"""Launch swf2sessions with 'max' delimitation approach and several threshold values"""
"""Launch swf2userSessions with 'max' delimitation approach and several threshold values"""
for threshold in thresholds:
out_dir, _ = run_script('max', threshold)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment