diff --git a/README.md b/README.md index c66b0b4515c5255f4af20f9073163940bc5639ae..f087a6cb192ae67347fbb5418aa2b026c5e1ac61 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 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 diff --git a/test/test_integration.py b/test/test_integration.py index 6bd6108f77ea467034efcbf04be0d5545327f8eb..efbac778b01af16d2eb6cda0929d1f78faaba157 100644 --- a/test/test_integration.py +++ b/test/test_integration.py @@ -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)