Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
60659648
Commit
60659648
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
make test more comprehensive
parent
2605bd7e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/expect/test1.32
+10
-0
10 additions, 0 deletions
testsuite/expect/test1.32
testsuite/expect/test1.32.prog.c
+1
-0
1 addition, 0 deletions
testsuite/expect/test1.32.prog.c
with
11 additions
and
0 deletions
testsuite/expect/test1.32
+
10
−
0
View file @
60659648
...
@@ -38,6 +38,7 @@ set test_id "1.32"
...
@@ -38,6 +38,7 @@ set test_id "1.32"
set exit_code 0
set exit_code 0
set file_prog "test$test_id.prog"
set file_prog "test$test_id.prog"
set matches 0
set matches 0
set fini_cnt 0
set usr1cnt 0
set usr1cnt 0
set usr2cnt 0
set usr2cnt 0
...
@@ -100,6 +101,10 @@ expect {
...
@@ -100,6 +101,10 @@ expect {
send_user "\nDon't worry about the error...\n"
send_user "\nDon't worry about the error...\n"
exp_continue
exp_continue
}
}
-re "FINI" {
incr fini_cnt
exp_continue
}
timeout {
timeout {
send_user "\nFAILURE: srun not responding\n"
send_user "\nFAILURE: srun not responding\n"
slow_kill $srun_pid
slow_kill $srun_pid
...
@@ -122,6 +127,11 @@ if {$usr2cnt != 1} {
...
@@ -122,6 +127,11 @@ if {$usr2cnt != 1} {
send_user "\nFAILURE: $file_prog received $usr2cnt SIGUSR2 (not 1)\n"
send_user "\nFAILURE: $file_prog received $usr2cnt SIGUSR2 (not 1)\n"
set exit_code 1
set exit_code 1
}
}
if {$fini_cnt != 1} {
send_user "\nFAILURE: srun failed to terminate properly\n"
set exit_code 1
}
#
#
# Post-processing
# Post-processing
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test1.32.prog.c
+
1
−
0
View file @
60659648
...
@@ -77,5 +77,6 @@ main (int argc, char **argv)
...
@@ -77,5 +77,6 @@ main (int argc, char **argv)
sleep
(
1
);
sleep
(
1
);
}
}
printf
(
"FINI
\n
"
);
exit
(
0
);
exit
(
0
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment