Commit e33f2502 authored by Shane Snyder's avatar Shane Snyder
Browse files

update pytest tests for new API changes

parent 6d938263
......@@ -22,7 +22,7 @@ def test_counters():
log = backend.log_open("tests/input/sample.darshan")
rec = backend.log_get_mpiio_record(log)
rec = backend.log_get_record(log, "MPI-IO")
assert rec['counters'][1] == 2048
......@@ -31,8 +31,8 @@ def test_fcounters():
log = backend.log_open("tests/input/sample.darshan")
rec = backend.log_get_mpiio_record(log)
assert rec['fcounters'][1] == 2.04800000e+03
rec = backend.log_get_record(log, "MPI-IO")
assert rec['fcounters'][0] == 3.912783145904541
def test_repeated_access():
......@@ -40,8 +40,8 @@ def test_repeated_access():
log = backend.log_open("tests/input/sample.darshan")
rec = backend.log_get_mpiio_record(log)
rec = backend.log_get_mpiio_record(log) # fetch next
rec = backend.log_get_record(log, "MPI-IO")
rec = backend.log_get_record(log, "MPI-IO") # fetch next
assert rec is None
......
......@@ -22,7 +22,7 @@ def test_counters():
log = backend.log_open("tests/input/sample.darshan")
rec = backend.log_get_posix_record(log)
rec = backend.log_get_record(log, "POSIX")
assert rec['counters'][0] == 2049
......@@ -31,8 +31,8 @@ def test_fcounters():
log = backend.log_open("tests/input/sample.darshan")
rec = backend.log_get_posix_record(log)
assert rec['fcounters'][0] == 2.04900000e+03
rec = backend.log_get_record(log, "POSIX")
assert rec['fcounters'][0] == 3.9191410541534424
def test_repeated_access():
......@@ -40,8 +40,8 @@ def test_repeated_access():
log = backend.log_open("tests/input/sample.darshan")
rec = backend.log_get_posix_record(log)
rec = backend.log_get_posix_record(log) # fetch next
rec = backend.log_get_record(log, "POSIX")
rec = backend.log_get_record(log, "POSIX") # fetch next
assert rec is None
......
......@@ -23,8 +23,8 @@ def test_counters():
log = backend.log_open("tests/input/sample.darshan")
rec = backend.log_get_stdio_record(log)
assert rec['counters'][1] == 18446744073709551615
rec = backend.log_get_record(log, "STDIO")
assert rec['counters'][6] == 280
def test_fcounters():
......@@ -32,8 +32,8 @@ def test_fcounters():
log = backend.log_open("tests/input/sample.darshan")
rec = backend.log_get_stdio_record(log)
assert rec['fcounters'][3] == 6.
rec = backend.log_get_record(log, "STDIO")
assert rec['fcounters'][3] == 0.0
......@@ -42,8 +42,8 @@ def test_repeated_access():
log = backend.log_open("tests/input/sample.darshan")
rec = backend.log_get_stdio_record(log)
rec = backend.log_get_stdio_record(log) # fetch next
rec = backend.log_get_record(log, "STDIO")
rec = backend.log_get_record(log, "STDIO") # fetch next
assert rec['counters'][3] == 68
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment