Skip to content

Commit

Permalink
updating values to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseSantosAMD committed Jul 10, 2023
1 parent 900bccb commit 786884e
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions source/python/gui/source/tests/test_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,15 @@ def test_parse_files_valid_directory():
)["count"].to_numpy()

_samples_df_expected_locations = [
"main",
"/home/jose/omnitrace/examples/causal/causal.cpp:103",
"/home/jose/omnitrace/examples/causal/causal.cpp:110",
"/usr/include/c++/9/bits/stl_vector.h:1140",
"/home/jose/omnitrace/examples/causal/causal.cpp:112",
"/usr/include/c++/9/bits/stl_vector.h:125",
"/usr/include/c++/9/bits/stl_vector.h:128",
"/usr/include/c++/9/ext/string_conversions.h:82",
"/usr/include/c++/9/bits/stl_vector.h:285",
"/usr/include/c++/9/ext/string_conversions.h:83",
"/usr/include/c++/9/ext/string_conversions.h:84",
"/usr/include/c++/9/ext/string_conversions.h:85",
]
_samples_df_expected_counts = [
152,
Expand Down Expand Up @@ -634,17 +634,7 @@ def test_parse_files_valid_speedup():
"/usr/include/c++/9/ext/string_conversions.h:83",
"/usr/include/c++/9/ext/string_conversions.h:84",
]
_samples_df_expected_counts = [
152,
304,
152,
152,
152,
152,
3648,
456,
760,
]
_samples_df_expected_counts = [169, 152, 304, 304, 152, 152, 760, 3648, 456]

# test given valid speedup
results_df, samples_df, file_names_run = parse_files(
Expand Down Expand Up @@ -1474,14 +1464,6 @@ def test_compute_sorts():
]

expected_point_count = [
4.0,
4.0,
4.0,
4.0,
4.0,
4.0,
4.0,
4.0,
4.0,
4.0,
4.0,
Expand All @@ -1505,6 +1487,14 @@ def test_compute_sorts():
6.0,
2.0,
2.0,
4.0,
4.0,
4.0,
4.0,
4.0,
4.0,
4.0,
4.0,
]

assert results_df["max speedup"].to_list() == expected_speedup
Expand All @@ -1515,15 +1505,15 @@ def test_compute_sorts():
def test_parse_uploaded_file():
file_name = os.path.join(workload_dir, "experiments.json")
_samples_df_expected_locations = [
"main",
"/home/jose/omnitrace/examples/causal/causal.cpp:103",
"/home/jose/omnitrace/examples/causal/causal.cpp:110",
"/usr/include/c++/9/bits/stl_vector.h:1140",
"/home/jose/omnitrace/examples/causal/causal.cpp:112",
"/usr/include/c++/9/bits/stl_vector.h:125",
"/usr/include/c++/9/bits/stl_vector.h:128",
"/usr/include/c++/9/ext/string_conversions.h:82",
"/usr/include/c++/9/bits/stl_vector.h:285",
"/usr/include/c++/9/ext/string_conversions.h:83",
"/usr/include/c++/9/ext/string_conversions.h:84",
"/usr/include/c++/9/ext/string_conversions.h:85",
]
_samples_df_expected_counts = [
152,
Expand Down

0 comments on commit 786884e

Please sign in to comment.