<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
</head>
<body>
<style type="text/css">
img {
max-width: 100%; height: auto;
}
</style>
<div class="content">
<h3>
Philip Carns pushed to branch dev-stdio
at <a href="https://xgitlab.cels.anl.gov/darshan/darshan">darshan / darshan</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/585615f9b570759487c2b80f9b1c4311cdf740b2">585615f9</a></strong>
<div>
<span>by Phil Carns</span>
<i>at 2016-05-01T08:30:30-04:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap">check more stdio counters in regression</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#620f2ecad2bb6f74b2fcd0134963a841" style="text-decoration: none">
darshan-test/regression/test-cases/stdio-test.sh
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="620f2ecad2bb6f74b2fcd0134963a841">
<a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/585615f9b570759487c2b80f9b1c4311cdf740b2#diff-0">
<strong>
darshan-test/regression/test-cases/stdio-test.sh
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="background: #ffdddd; color: #000000">--- a/darshan-test/regression/test-cases/stdio-test.sh
</span><span style="background: #ddffdd; color: #000000">+++ b/darshan-test/regression/test-cases/stdio-test.sh
</span><span style="color: #aaaaaa">@@ -27,14 +27,36 @@ if [ $? -ne 0 ]; then
</span> exit 1
fi
<span style="background: #ddffdd; color: #000000">+# TODO: look for "tail" commands in all of these test cases and remove them
+# later. Right now they are needed to make sure we only check 1 out of 4
+# possible records because reduction is not implemented yet
+
</span> # check results
<span style="background: #ddffdd; color: #000000">+
</span> # in this case we want to confirm that the STDIO counters were triggered
<span style="background: #ffdddd; color: #000000">-# TODO: change this to check aggregate counters; for now we tail -n 1 to get
-# one counter because there is no reduction operator for the stdio module yet
</span> STDIO_OPENS=`grep STDIO_FOPENS $DARSHAN_TMP/${PROG}.darshan.txt |tail -n 1 |cut -f 5`
if [ ! "$STDIO_OPENS" -gt 0 ]; then
echo "Error: STDIO open count of $STDIO_FOPENS is incorrect" 1>&2
exit 1
fi
<span style="background: #ddffdd; color: #000000">+# make sure that some of the floating point counters are valid
+# use bc for floating point comparison
+STDIO_F_OPEN_START_TIMESTAMP=`grep STDIO_F_OPEN_START_TIMESTAMP $DARSHAN_TMP/${PROG}.darshan.txt |tail -n 1 |cut -f 5`
+if [ ! $(echo "$STDIO_F_OPEN_START_TIMESTAMP > 0" | bc -l) ]; then
+ echo "Error: counter is incorrect" 1>&2
+ exit 1
+fi
+STDIO_F_OPEN_END_TIMESTAMP=`grep STDIO_F_OPEN_END_TIMESTAMP $DARSHAN_TMP/${PROG}.darshan.txt |tail -n 1 |cut -f 5`
+if [ ! $(echo "$STDIO_F_OPEN_END_TIMESTAMP > 0" | bc -l) ]; then
+ echo "Error: counter is incorrect" 1>&2
+ exit 1
+fi
+STDIO_F_META_TIME=`grep STDIO_F_META_TIME $DARSHAN_TMP/${PROG}.darshan.txt |tail -n 1 |cut -f 5`
+if [ ! $(echo "$STDIO_F_META_TIME > 0" | bc -l) ]; then
+ echo "Error: counter is incorrect" 1>&2
+ exit 1
+fi
+
+
</span> exit 0
</code></pre>
<br>
</li>
</div>
<div class="footer" style="margin-top: 10px">
<p style="color: #777; font-size: small">
—
<br>
<a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/585615f9b570759487c2b80f9b1c4311cdf740b2">View it on GitLab</a>.
<br>
You're receiving this email because of your account on xgitlab.cels.anl.gov.
If you'd like to receive fewer emails, you can
adjust your notification settings.
</p>
</div>
</body>
</html>