Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,35 @@

Various scripts used for Crucible

## dtrace
## dtrace directory
A collection of dtrace scripts for use on Crucible. A README.md in that
directory contains more information.

## Notes on tests to be run by the nightly framework.
Tests that run under the nightly collection should respect the meaning of
the following variables, and make use of them.
WORK_ROOT The top level path inside which test logs and result files will be.
ROOT The top level path for the crucible repo.
BINDIR The location from ROOT where we should expect various crucible
binaries to be found.
REGION_SETS The number of downstairs region sets (groups of three downstairs)
that a test will create, if the test supports it.
REGION_ROOT Top level directory where Downstairs regions will be created.

Specific to each test, a test should assign these for themselves:
TEST_ROOT A specific subdirectory inside WORK_ROOT where all the
tests logs and result files will be. This directory will be
re-created on each run and any older directories with the same
name will be destroyed.
MY_REGION_ROOT Specific subdirectory inside REGION_ROOT where this specific
tests region directories will be created. This directory
will be destroyed and re-created on test startup.

Having all these global variables allows a higher level framework to
supply locations for test artifacts as well as clean up or archive results
for tests in the event of failures. Tests themselves should clean out or
handle a previous runs results if they exist when a test starts.

## hammer-loop.sh
A loop test that runs the crucible-hammer test in a loop. It is expected
that you already have downstairs running on port 88[1-3]0.
Expand Down
5 changes: 5 additions & 0 deletions tools/test_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export BINDIR=${BINDIR:-$ROOT/target/release}
echo "Nightly starts at $(date)" | tee "$output_file"
echo "Running on $(git log -1 --no-color | head -20)" | tee -a "$output_file"
echo "" >> "$output_file"
echo "System info:" | tee -a "$output_file"
psrinfo -v | grep "operates at" | head -1 | tee -a "$output_file"
cpu_count=$(psrinfo | wc -l | tr -d ' ')
echo "CPU count: $cpu_count" | tee -a "$output_file"
prtconf | grep Memory | tee -a "$output_file"
echo "Environment settings are (Some may be unset):" | tee -a "$output_file"
echo "BINDIR is: $BINDIR" | tee -a "$output_file"
echo "REGION_ROOT is: $REGION_ROOT" | tee -a "$output_file"
Expand Down