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
0ed720e8
Commit
0ed720e8
authored
Aug 24, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter stderr/stdin/stdout for regression tests
parent
173d3d49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
darshan-test/regression/test-cases/fprintf-fscanf-test.sh
darshan-test/regression/test-cases/fprintf-fscanf-test.sh
+3
-3
darshan-test/regression/test-cases/stdio-test.sh
darshan-test/regression/test-cases/stdio-test.sh
+10
-10
No files found.
darshan-test/regression/test-cases/fprintf-fscanf-test.sh
View file @
0ed720e8
...
...
@@ -29,21 +29,21 @@ fi
# check results
STDIO_OPENS
=
`
grep
STDIO_OPENS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_OPENS
=
`
grep
STDIO_OPENS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
"
$STDIO_OPENS
"
-eq
4
]
;
then
echo
"Error: STDIO open count of
$STDIO_OPENS
is incorrect"
1>&2
exit
1
fi
# this will check fprintf counting
STDIO_BYTES_WRITTEN
=
`
grep
STDIO_BYTES_WRITTEN
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_BYTES_WRITTEN
=
`
grep
STDIO_BYTES_WRITTEN
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
"
$STDIO_BYTES_WRITTEN
"
-eq
15
]
;
then
echo
"Error: STDIO bytes written count of
$STDIO_BYTES_WRITTEN
is incorrect"
1>&2
exit
1
fi
# this will check fscanf counting
STDIO_BYTES_READ
=
`
grep
STDIO_BYTES_READ
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_BYTES_READ
=
`
grep
STDIO_BYTES_READ
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
"
$STDIO_BYTES_READ
"
-eq
15
]
;
then
echo
"Error: STDIO bytes read count of
$STDIO_BYTES_READ
is incorrect"
1>&2
exit
1
...
...
darshan-test/regression/test-cases/stdio-test.sh
View file @
0ed720e8
...
...
@@ -31,22 +31,22 @@ fi
# check at least one counter from each general open/read/write/seek category
STDIO_OPENS
=
`
grep
STDIO_OPENS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_OPENS
=
`
grep
STDIO_OPENS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
"
$STDIO_OPENS
"
-gt
0
]
;
then
echo
"Error: STDIO open count of
$STDIO_OPENS
is incorrect"
1>&2
exit
1
fi
STDIO_SEEKS
=
`
grep
STDIO_SEEKS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_SEEKS
=
`
grep
STDIO_SEEKS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
"
$STDIO_SEEKS
"
-gt
0
]
;
then
echo
"Error: STDIO open count of
$STDIO_SEEKS
is incorrect"
1>&2
exit
1
fi
STDIO_BYTES_WRITTEN
=
`
grep
STDIO_BYTES_WRITTEN
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_BYTES_WRITTEN
=
`
grep
STDIO_BYTES_WRITTEN
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
"
$STDIO_BYTES_WRITTEN
"
-eq
6
]
;
then
echo
"Error: STDIO open count of
$STDIO_BYTES_WRITTEN
is incorrect"
1>&2
exit
1
fi
STDIO_BYTES_READ
=
`
grep
STDIO_BYTES_READ
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_BYTES_READ
=
`
grep
STDIO_BYTES_READ
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
"
$STDIO_BYTES_READ
"
-eq
6
]
;
then
echo
"Error: STDIO open count of
$STDIO_BYTES_READ
is incorrect"
1>&2
exit
1
...
...
@@ -55,32 +55,32 @@ 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 |
cut
-f
5
`
STDIO_F_OPEN_START_TIMESTAMP
=
`
grep
STDIO_F_OPEN_START_TIMESTAMP
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
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 |
cut
-f
5
`
STDIO_F_OPEN_END_TIMESTAMP
=
`
grep
STDIO_F_OPEN_END_TIMESTAMP
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
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 |
cut
-f
5
`
STDIO_F_META_TIME
=
`
grep
STDIO_F_META_TIME
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
$(
echo
"
$STDIO_F_META_TIME
> 0"
| bc
-l
)
]
;
then
echo
"Error: counter is incorrect"
1>&2
exit
1
fi
STDIO_F_WRITE_TIME
=
`
grep
STDIO_F_WRITE_TIME
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_F_WRITE_TIME
=
`
grep
STDIO_F_WRITE_TIME
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
$(
echo
"
$STDIO_F_WRITE_TIME
> 0"
| bc
-l
)
]
;
then
echo
"Error: counter is incorrect"
1>&2
exit
1
fi
STDIO_F_CLOSE_START_TIMESTAMP
=
`
grep
STDIO_F_CLOSE_START_TIMESTAMP
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_F_CLOSE_START_TIMESTAMP
=
`
grep
STDIO_F_CLOSE_START_TIMESTAMP
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
$(
echo
"
$STDIO_F_CLOSE_START_TIMESTAMP
> 0"
| bc
-l
)
]
;
then
echo
"Error: counter is incorrect"
1>&2
exit
1
fi
STDIO_F_CLOSE_END_TIMESTAMP
=
`
grep
STDIO_F_CLOSE_END_TIMESTAMP
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
cut
-f
5
`
STDIO_F_CLOSE_END_TIMESTAMP
=
`
grep
STDIO_F_CLOSE_END_TIMESTAMP
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |
grep
-vE
"STDIN|STDOUT|STDERR"
|
cut
-f
5
`
if
[
!
$(
echo
"
$STDIO_F_CLOSE_END_TIMESTAMP
> 0"
| bc
-l
)
]
;
then
echo
"Error: counter is incorrect"
1>&2
exit
1
...
...
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