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
4831753d
Commit
4831753d
authored
Feb 03, 2015
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test basic counters
parent
feb1fe1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
3 deletions
+46
-3
darshan-test/regression/run-all.sh
darshan-test/regression/run-all.sh
+9
-1
darshan-test/regression/test-cases/mpi-io-test.sh
darshan-test/regression/test-cases/mpi-io-test.sh
+37
-2
No files found.
darshan-test/regression/run-all.sh
View file @
4831753d
...
...
@@ -10,6 +10,8 @@ fi
export
DARSHAN_PATH
=
$1
export
DARSHAN_TMP
=
$2
export
DARSHAN_PLATFORM
=
$3
# number of procs that most test jobs will use
export
DARSHAN_DEFAULT_NPROCS
=
4
# check darshan path
if
[
!
-x
$DARSHAN_PATH
/bin/darshan-parser
]
;
then
...
...
@@ -42,9 +44,15 @@ DARSHAN_CC=`$DARSHAN_PLATFORM/setup-cc.sh`
if
[
$?
!=
0
]
;
then
exit
1
fi
export
DARSHAN_CC
# set up job execution wrapper for this platform
DARSHAN_RUNJOB
=
`
$DARSHAN_PLATFORM
/setup-runjob.sh
`
if
[
$?
!=
0
]
;
then
exit
1
fi
export
DARSHAN_RUNJOB
for
i
in
`
ls
test-cases/
*
.sh
`
;
do
$i
if
[
$?
!=
0
]
;
then
...
...
darshan-test/regression/test-cases/mpi-io-test.sh
View file @
4831753d
#!/bin/bash
$DARSHAN_CC
test-cases/src/mpi-io-test.c
-o
$DARSHAN_TMP
/mpi-io-test
PROG
=
mpi-io-test
# set log file path; remove previous log if present
export
DARSHAN_LOGFILE
=
$DARSHAN_TMP
/
${
PROG
}
.darshan.gz
rm
-f
${
DARSHAN_LOGFILE
}
# compile
$DARSHAN_CC
test-cases/src/
${
PROG
}
.c
-o
$DARSHAN_TMP
/
${
PROG
}
if
[
$?
!=
0
]
;
then
echo
"Error: failed to compile
${
PROG
}
"
1>&2
exit
1
fi
# execute
$DARSHAN_RUNJOB
$DARSHAN_TMP
/
${
PROG
}
-f
$DARSHAN_TMP
/
${
PROG
}
.tmp.dat
if
[
$?
!=
0
]
;
then
echo
"Error: failed to execute
${
PROG
}
"
1>&2
exit
1
fi
# parse log
$DARSHAN_PATH
/bin/darshan-parser
$DARSHAN_LOGFILE
>
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt
if
[
$?
!=
0
]
;
then
echo
"Error: failed to compile mpi-io-test"
1>&2
echo
"Error: failed to parse
${
DARSHAN_LOGFILE
}
"
1>&2
exit
1
fi
# check results
# in this case we want to confirm that both the MPI and POSIX open counters were triggered
MPI_OPENS
=
`
grep
CP_INDEP_OPENS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |cut
-f
4
`
if
[
!
$MPI_OPENS
>
0
]
;
then
echo
"Error: MPI open count of
$MPI_OPENS
is incorrect"
1>&2
exit
1
fi
POSIX_OPENS
=
`
grep
CP_POSIX_OPENS
$DARSHAN_TMP
/
${
PROG
}
.darshan.txt |cut
-f
4
`
if
[
!
$POSIX_OPENS
>
0
]
;
then
echo
"Error: POSIX open count of
$POSIX_OPENS
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