Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cristian Simarro
darshan
Commits
edfe5fab
Commit
edfe5fab
authored
Jan 28, 2015
by
Philip Carns
Browse files
stub master script for regression testing
parent
c768c10e
Changes
2
Hide whitespace changes
Inline
Side-by-side
darshan-test/regression/README.txt
0 → 100644
View file @
edfe5fab
This directory contains regression tests for both the runtime and util components of Darshan,
assuming that Darshan is already compiled and installed in a known path.
The master script must be executed with three arguments:
1) path to darshan installation
2) path to temporary directory (for building executables, collecting logs, etc. during test)
3) platform type; options include:
- ws (for a standard workstation)
The platform type should map to a subdirectory containing scripts that describe how to
perform platform-specific tasks (like loading or generating darshan wrappers and executing
jobs).
TODO:
---------
- tie this in with the "automated" directory in the tree, which already performs automated
build tests (but no runtime tests) in Jenkins
darshan-test/regression/run-all.sh
0 → 100755
View file @
edfe5fab
#!/bin/bash
if
[
"$#"
-ne
3
]
;
then
echo
"Usage: run-all.sh <darshan_install_path> <tmp_path> <platform>"
echo
"Example: ./run-all.sh ~/darshan-install /tmp/test ws"
exit
1
fi
# set variables for use by other sub-scripts
export
DARSHAN_PATH
=
$1
export
DARSHAN_TMP
=
$2
export
DARSHAN_PLATFORM
=
$3
# check darshan path
if
[
!
-x
$DARSHAN_PATH
/bin/darshan-parser
]
;
then
echo
"Error:
$DARSHAN_PATH
doesn't contain a valid Darshan install."
exit
1
fi
# check and/or create tmp path
if
[
!
-d
$DARSHAN_TMP
]
;
then
mkdir
-p
$DARSHAN_TMP
fi
if
[
!
-d
$DARSHAN_TMP
]
;
then
echo
"Error: unable to find or create
$DARSHAN_TMP
"
exit
1
fi
if
[
!
-w
$DARSHAN_TMP
]
;
then
echo
"Error: unable to write to
$DARSHAN_TMP
"
exit
1
fi
# make sure that we have sub-scripts for the specified platform
if
[
!
-d
$DARSHAN_PLATFORM
]
;
then
echo
"Error: unable to find scripts for platform
$DARSHAN_PLATFORM
"
exit
1
fi
exit
0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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