Skip to content

Commit 62dc6e3

Browse files
author
Shane Snyder
committed
updated pytest
1 parent 4011855 commit 62dc6e3

7 files changed

+20
-20
lines changed

darshan-util/pydarshan/darshan/tests/test_plot_exp_common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"log_path, mod, func, expected_xticklabels",
1515
[
1616
(
17-
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
17+
"snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan",
1818
"DFS",
1919
plot_access_histogram,
2020
["0-100", "101-1K", "1K-10K", "10K-100K", "100K-1M",
2121
"1M-4M", "4M-10M", "10M-100M", "100M-1G", "1G+"]
2222
),
2323
(
24-
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
24+
"snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan",
2525
"DAOS",
2626
plot_access_histogram,
2727
["0-100", "101-1K", "1K-10K", "10K-100K", "100K-1M",
@@ -79,13 +79,13 @@
7979
"1M-4M", "4M-10M", "10M-100M", "100M-1G", "1G+"],
8080
),
8181
(
82-
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
82+
"snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan",
8383
"DFS",
8484
plot_opcounts,
8585
['Read', 'Readx', 'Write', 'Writex', 'Open', 'GlobalOpen', 'Lookup', 'Get Size', 'Punch', 'Remove', 'Stat'],
8686
),
8787
(
88-
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
88+
"snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan",
8989
"DAOS",
9090
plot_opcounts,
9191
['ObjFetch', 'ObjUpdate', 'ObjOpen', 'ObjPunch', 'ObjDkeyPunch', 'ObjAkeyPunch', 'ObjDkeyList', 'ObjAkeyList', 'ObjRecxList',

darshan-util/pydarshan/darshan/tests/test_plot_io_cost.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
),
5858
),
5959
(
60-
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
60+
"snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan",
6161
pd.DataFrame(
6262
np.array([
63-
[0.0, 0.0, 1.490116119e-08, 0.0],
64-
[0.0, 4.872679710e-06, 0.0, 0.0],
65-
[0.001452714, 0.001865715, 0.007635623, 0.0],
66-
[0.001490027, 0.001865178, 0.007622942, 0.0],
63+
[0.0, 0.0, 0.0, 0.0],
64+
[0.0, 5.93066216e-06, 0.0, 0.0],
65+
[0.002395875, 0.011805813, 0.008395875, 0.0],
66+
[0.002437813, 0.012004437, 0.00816075, 0.0],
6767
]),
6868
["POSIX", "STDIO", "DFS", "DAOS"],
6969
["Read", "Write", "Meta", "Wait"],
@@ -101,8 +101,8 @@ def test_get_io_cost_df(logname, expected_df):
101101
[0.0, 1111.0],
102102
),
103103
(
104-
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
105-
[0.0, 0.75089884],
104+
"snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan",
105+
[0.0, 0.61345315],
106106
),
107107
],
108108
)
@@ -134,9 +134,9 @@ def test_plot_io_cost_ylims(logname, expected_ylims):
134134
['0', '156', '312', '468', '624', '780'],
135135
),
136136
(
137-
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
138-
[0.0 , 0.15017977, 0.30035954, 0.4505393 , 0.60071907, 0.75089884],
139-
['0.0000', '0.1502', '0.3004', '0.4505', '0.6007', '0.7509'],
137+
"snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan",
138+
[0.0 , 0.12269063, 0.24538126, 0.36807189, 0.49076252, 0.61345315],
139+
['0.0000', '0.1227', '0.2454', '0.3681', '0.4908', '0.6135'],
140140
),
141141
],
142142
)

darshan-util/pydarshan/darshan/tests/test_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_dfs_daos_posix_match():
9090
# backend should produce matching counters where
9191
# comparable data fields exist
9292
posix_ior_report = darshan.DarshanReport(get_log_path("snyder_ior-POSIX_id1057716-202103_11-8-64415-6936117869459351096_1.darshan"))
93-
dfs_ior_report = darshan.DarshanReport(get_log_path("snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan"))
93+
dfs_ior_report = darshan.DarshanReport(get_log_path("snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan"))
9494
posix_ior_report.mod_read_all_records("POSIX")
9595
dfs_ior_report.mod_read_all_records("DFS")
9696
dfs_ior_report.mod_read_all_records("DAOS")

darshan-util/pydarshan/darshan/tests/test_summary.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ def test_main_all_logs_repo_files(tmpdir, log_filepath):
263263
if ("e3sm_io_heatmap_only" in log_filepath or
264264
"shane_ior-HDF5" in log_filepath or
265265
"shane_ior-PNETCDF" in log_filepath or
266+
"snyder_ior-DFS" in log_filepath or
266267
(match and int(darshan_log_version[2]) >= 4)):
267268
assert actual_runtime_heatmap_titles == 3
268269
elif ("runtime_and_dxt_heatmaps_diagonal_write_only" in log_filepath or
269270
"treddy_runtime_heatmap_inactive_ranks" in log_filepath or
270-
"h5d_no_h5f" in log_filepath or
271-
"snyder_ior-DFS" in log_filepath):
271+
"h5d_no_h5f" in log_filepath):
272272
assert actual_runtime_heatmap_titles == 1
273273
elif "snyder_ior-POSIX" in log_filepath:
274274
assert actual_runtime_heatmap_titles == 2
@@ -499,7 +499,7 @@ def test_metadata_table(self, log_path, expected_df):
499499
2,
500500
),
501501
(
502-
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
502+
"snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan",
503503
pd.DataFrame(
504504
index=[
505505
"Log Filename", "Runtime Library Version", "Log Format Version",
@@ -508,8 +508,8 @@ def test_metadata_table(self, log_path, expected_df):
508508
"DFS (ver=1)", "DAOS (ver=1)"
509509
],
510510
data=[
511-
["snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan"], ["3.4.7"], ["3.41"],
512-
["0.08 KiB"], ["0.07 KiB"], ["1.09 KiB"],
511+
["snyder_ior-DFS_id4681120-53379_5-8-15060-3270540599978592154_1.darshan"], ["3.4.7"], ["3.41"],
512+
["0.07 KiB"], ["0.07 KiB"], ["1.09 KiB"],
513513
["0.17 KiB"], ["0.40 KiB"],
514514
],
515515
),

0 commit comments

Comments
 (0)