Commit adf8d4e9 authored by Kevin Atkinson's avatar Kevin Atkinson

Correct a few errors/omissions in README.

Tweak log output.
parent 8e106f7c
......@@ -74,7 +74,7 @@ sub test ($$&) {
return 0;
}
print "<--- starting test: $name\n";
print "<=== Starting Test: $name\n";
my $res;
eval {$res = &$test(%parms)};
......@@ -82,7 +82,7 @@ sub test ($$&) {
if ($res) {
$tally{passed}++;
$dependencies{$name} = 1;
print ">--- \"$name\" succeeded\n";
print ">=== \"$name\" succeeded\n";
return true;
} elsif ($@) {
$tally{failed}++;
......@@ -101,9 +101,9 @@ sub test ($$&) {
#
#
sub sys (@) {
print "<-- executing: ", join(' ', @_), "\n";
print "<- Executing: ", join(' ', @_), "\n";
system @_;
print ">-- done\n";
print ">- Done\n";
return $? >> 8 == 0;
}
......@@ -121,17 +121,17 @@ sub test_cmd ($$$;&) {
} else {
local $/ = undef;
my $F = new IO::File;
print "<-- executing: $cmd\n";
print "<- Executing: $cmd\n";
open $F, "$cmd |" or return false;
local $_ = <$F>;
close $F;
print ">-- done\n";
print ">- Done\n";
return 0 unless ($? >> 8 == 0);
open $F, ">$resultsdir/$name.out";
print $F $_;
close $F;
my $res = &$output_test;
print "*** output of \"$cmd\" did not match expected output\n" unless $res;
print "*** Output of \"$cmd\" did not match expected output\n" unless $res;
return $res;
}
};
......
......@@ -14,6 +14,7 @@ You might want to also change the variable $eid_prefix at the start of
"image-test" to something different, your username might be a good
choice.
BASIC USAGE
From the base directory run:
......@@ -104,6 +105,7 @@ Or to just run the tests on a already swapped in experiment use:
./image-test -s t ...
TESTING FRAMEWORK
Each individual experiment is expected to be the directory "tests/EXP".
......@@ -143,15 +145,19 @@ For every experiment a number of standard tests will be run.
For each node in the experiment the following tests will be run:
ssh-NODE: try to ssh into the node
ssh-NODE: try to ssh into the node, this also makes sure that the
users home directory is mounted, otherwise public-key authorization
will fail
sudo-NODE: make sure sudo is working correctly
hostname-NODE: make sure host name is what it is expected to be
login_prompt-NODE: make sure that the login prompt appears
in the console
proj_mount-NODE: make sure that the approicate/proj directory is mounted
and readable
For experiments with more than one node:
linktest: run linktest
linktest?: run linktest levels 1 - 4
Additional standard tests will be added over time.
......@@ -160,9 +166,9 @@ NOTE ON SIGNAL HANDLING
image-test works by forking and having the child do the real work.
All the parent does is monitor the log file and pass the signals
SIGINT and SIGTERM to the parent. The calls setsid() so that it does
not have a controlling terminal. This unfortunately also means that it
is in a separate process group.
SIGINT and SIGTERM to the parent. The child calls setsid() so that it
does not have a controlling terminal. This unfortunately also means
that it is in a separate process group.
In addition each experiment runs in a separate process. The PID of
this process is in the file "pid" in the experiment results directory.
......@@ -171,7 +177,7 @@ Sending a SIGINT or a SIGTERM to the parent (or child) will terminate
all experiments ASAP. Sending the SIGINT or a SIGTERM to an experiment
process will terminate only that experiment.
Sending a SIGHUP to the the parent will only terminate the parents.
The test will proceed normally in the background. Similarly, sending a
SIGTSTP will only suspend the parent.
Sending a SIGHUP to the the parent will only terminate the parent.
The test will proceed normally in the background. Similarly, sending
a SIGTSTP will only suspend the parent.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment