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
60fc9053
Commit
60fc9053
authored
22 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Removed redundant QA tests slurm_protocol_stream_client.c and
slurm_protocol_stream_server.c. see equivalents in testsuite/stream*
parent
fd6ec348
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/test/Makefile.am
+1
-1
1 addition, 1 deletion
src/test/Makefile.am
src/test/slurm_protocol_stream_client.c
+0
-35
0 additions, 35 deletions
src/test/slurm_protocol_stream_client.c
src/test/slurm_protocol_stream_server.c
+0
-43
0 additions, 43 deletions
src/test/slurm_protocol_stream_server.c
with
1 addition
and
79 deletions
src/test/Makefile.am
+
1
−
1
View file @
60fc9053
...
@@ -6,6 +6,6 @@ else
...
@@ -6,6 +6,6 @@ else
elan_testprogs
=
elan_testprogs
=
endif
endif
noinst_PROGRAMS
=
$(
elan_testprogs
)
slurm_protocol_stream_client slurm_protocol_stream_server
noinst_PROGRAMS
=
$(
elan_testprogs
)
LDADD
=
$(
top_srcdir
)
/src/common/libcommon.la
LDADD
=
$(
top_srcdir
)
/src/common/libcommon.la
This diff is collapsed.
Click to expand it.
src/test/slurm_protocol_stream_client.c
deleted
100644 → 0
+
0
−
35
View file @
fd6ec348
#include
<src/common/slurm_protocol_api.h>
#include
<stdlib.h>
#include
<stdio.h>
#include
<string.h>
int
main
(
int
argc
,
char
*
argv
[]
)
{
/* declare file descriptors */
slurm_fd
worker_socket
;
/* declare address structures */
slurm_addr
worker_address
;
unsigned
int
buffer_len
=
1024
;
char
buf_temp
[
buffer_len
]
;
char
*
buffer
=
buf_temp
;
char
*
test_send
=
"This is a test of simple socket communication"
;
unsigned
int
test_send_len
=
strlen
(
test_send
)
;
unsigned
int
length_io
;
/* init address sturctures */
slurm_set_addr_uint
(
&
worker_address
,
7000
,
SLURM_INADDR_ANY
)
;
/* connect socket */
worker_socket
=
slurm_open_stream
(
&
worker_address
)
;
length_io
=
slurm_read_stream
(
worker_socket
,
buffer
,
buffer_len
)
;
printf
(
"Bytes Recieved %i
\n
"
,
length_io
)
;
length_io
=
slurm_write_stream
(
worker_socket
,
test_send
,
test_send_len
)
;
printf
(
"Bytes Sent %i
\n
"
,
length_io
)
;
slurm_close_stream
(
worker_socket
)
;
return
0
;
}
This diff is collapsed.
Click to expand it.
src/test/slurm_protocol_stream_server.c
deleted
100644 → 0
+
0
−
43
View file @
fd6ec348
#include
<netinet/in.h>
#include
<src/common/slurm_protocol_api.h>
#include
<stdlib.h>
#include
<stdio.h>
#include
<string.h>
int
main
(
int
argc
,
char
*
argv
[]
)
{
/* declare file descriptors */
slurm_fd
listen_socket
;
slurm_fd
worker_socket
;
/* declare address structures */
slurm_addr
listen_address
;
slurm_addr
worker_address
;
unsigned
int
buffer_len
=
1024
;
char
buf_temp
[
buffer_len
]
;
char
*
buffer
=
buf_temp
;
char
*
test_send
=
"This is a test of simple socket communication"
;
unsigned
int
test_send_len
=
strlen
(
test_send
)
;
unsigned
int
length_io
;
/* init address sturctures */
slurm_set_addr_uint
(
&
listen_address
,
7000
,
SLURM_INADDR_ANY
)
;
/* open and listen on socket */
listen_socket
=
slurm_listen_stream
(
&
listen_address
)
;
/* accept socket */
while
(
true
)
{
worker_socket
=
slurm_accept_stream
(
listen_socket
,
&
worker_address
)
;
length_io
=
slurm_write_stream
(
worker_socket
,
test_send
,
test_send_len
)
;
printf
(
"Bytes Sent %i
\n
"
,
length_io
)
;
length_io
=
slurm_read_stream
(
worker_socket
,
buffer
,
buffer_len
)
;
printf
(
"Bytes Recieved %i
\n
"
,
length_io
)
;
}
slurm_close_stream
(
worker_socket
)
;
slurm_close_stream
(
listen_socket
)
;
return
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