Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
585615f9
Commit
585615f9
authored
May 01, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check more stdio counters in regression
parent
76c86577
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
darshan-test/regression/test-cases/stdio-test.sh
darshan-test/regression/test-cases/stdio-test.sh
+24
-2
No files found.
darshan-test/regression/test-cases/stdio-test.sh
View file @
585615f9
...
...
@@ -27,14 +27,36 @@ if [ $? -ne 0 ]; then
exit
1
fi
# 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
# check results
# in this case we want to confirm that the STDIO counters were triggered
# 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
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
# 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
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment