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

test: started an structure for integration tests

parent 7c145ddc
No related branches found
No related tags found
No related merge requests found
...@@ -4,3 +4,5 @@ out/* ...@@ -4,3 +4,5 @@ out/*
workloads/* workloads/*
!workloads/KTH-SP2-1996-2.1-cln.swf !workloads/KTH-SP2-1996-2.1-cln.swf
test-out
\ No newline at end of file
import os
from main import main
KTH_WL = "workloads/KTH-SP2-1996-2.1-cln.swf"
def create_dir_rec_if_needed(dirname):
if not os.path.exists(dirname):
os.makedirs(dirname)
def run_test(delim, threshold, input_swf=KTH_WL, dyn_red=True, graph=False):
test_name = f"KTH_{delim}_t{threshold}"
out_folder = "test-out/" + test_name
create_dir_rec_if_needed(out_folder)
main(input_swf, out_folder, delim, threshold, dyn_red, graph, True)
def test_delim_approaches():
"""Launch TODO(name of the parser) with different delimitation approaches"""
delims = ['last', 'max', 'arrival']
thresholds = [0, 30, 1440]
for delim in delims:
for threshold in thresholds:
run_test(delim, threshold)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment