Skip to content
Snippets Groups Projects
Commit 8b002a30 authored by Morris Jette's avatar Morris Jette
Browse files

Improvement in sbcast test

parent 5af94772
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,8 @@ source ./globals
set test_id "14.4"
set file_in "test$test_id.input"
set file_in1 "test$test_id.input1"
set file_in2 "test$test_id.input2"
set file_out "test$test_id.output"
set file_err "test$test_id.error"
......@@ -67,15 +69,17 @@ set pid [pid]
set file1 "/tmp/test.$pid.1.$test_id"
set file2 "/tmp/test.$pid.2.$test_id"
exec $bin_rm -f $file_out $file_err
make_bash_script $file_in1 "$bin_echo dummy >$file1"
make_bash_script $file_in2 "$bin_echo dummy >$file2"
make_bash_script $file_in "
$srun rm -f $file1
$srun $bin_echo dummy >$file1
$srun ./$file_in1
$sbcast $sbcast $file1
$srun $bin_cmp $sbcast $file1
$srun $bin_rm -f $file1
$srun rm -f $file2
$srun $bin_echo dummy >$file2
$srun ./$file_in2
$sbcast $sbcast --force $file2
$srun $bin_cmp $sbcast $file2
$srun $bin_rm -f $file2
......@@ -139,7 +143,7 @@ if {$differ_found == 0} {
}
if {$exit_code == 0} {
exec $bin_rm -f $file_in $file_out $file_err
exec $bin_rm -f $file_in $file_in1 $file_in2 $file_out $file_err
send_user "\nSUCCESS\n"
}
exit $exit_code
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment