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
5a37898e
Commit
5a37898e
authored
22 years ago
by
jce
Browse files
Options
Downloads
Patches
Plain Diff
started a really cheesy test for slurmctld and the message passing for job_steps
parent
04d023f9
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/slurm_unit/slurmctld/Makefile.am
+3
-1
3 additions, 1 deletion
testsuite/slurm_unit/slurmctld/Makefile.am
testsuite/slurm_unit/slurmctld/job_step-test.c
+54
-0
54 additions, 0 deletions
testsuite/slurm_unit/slurmctld/job_step-test.c
with
57 additions
and
1 deletion
testsuite/slurm_unit/slurmctld/Makefile.am
+
3
−
1
View file @
5a37898e
AUTOMAKE_OPTIONS
=
foreign
noinst_PROGRAMS
=
job_mgr-test
noinst_PROGRAMS
=
job_mgr-test
job_step-test
INCLUDES
=
-I
$(
top_srcdir
)
/src/common
job_step_test_LDADD
=
$(
top_srcdir
)
/src/common/libcommon.la
LDADD
=
$(
top_srcdir
)
/src/common/libcommon.la
\
$(
top_srcdir
)
/src/slurmctld/job_scheduler.o
\
$(
top_srcdir
)
/src/slurmctld/node_scheduler.o
\
...
...
@@ -13,3 +14,4 @@ LDADD = $(top_srcdir)/src/common/libcommon.la \
$(
top_srcdir
)
/src/slurmctld/parse_spec.o
\
$(
top_srcdir
)
/src/slurmctld/read_config.o
\
$(
top_srcdir
)
/src/api/libslurm.la
This diff is collapsed.
Click to expand it.
testsuite/slurm_unit/slurmctld/job_step-test.c
0 → 100644
+
54
−
0
View file @
5a37898e
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include
<errno.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
<syslog.h>
#include
<sys/socket.h>
#include
<netinet/in.h>
#include
<unistd.h>
#include
<src/common/slurm_protocol_api.h>
#define DEBUG_MODULE
int
main
(
int
argc
,
char
*
argv
[])
{
job_step_create_request_msg_t
request
=
{
5
,
5
,
1
,
"lx[1-10]"
};
slurm_msg_t
request_msg
;
slurm_msg_t
response_msg
;
request_msg
.
msg_type
=
REQUEST_JOB_STEP_CREATE
;
request_msg
.
data
=
&
request
;
slurm_send_recv_controller_msg
(
&
request_msg
,
&
response_msg
);
if
(
response_msg
.
msg_type
!=
RESPONSE_JOB_STEP_CREATE
)
{
printf
(
"DAMN
\n
"
);
}
else
{
job_step_create_response_msg_t
*
msg
=
(
job_step_create_response_msg_t
*
)
response_msg
.
data
;
printf
(
"job_step_id = %u
\n
"
,
msg
->
job_step_id
);
printf
(
"node_list = %s
\n
"
,
msg
->
node_list
);
printf
(
"credentials:
\n\t
job_id = %u
\n\t
user_id = %u
\n\t
node_list = %s
\n\t
experation_time = %u
\n\t
signature = %u
\n\n
"
,
msg
->
credentials
->
job_id
,
msg
->
credentials
->
user_id
,
msg
->
credentials
->
node_list
,
msg
->
credentials
->
experation_time
,
msg
->
credentials
->
signature
);
#ifdef HAVE_LIBELAN3
/* print the elan stuff */
#endif
}
}
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