Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scord
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eu
ADMIRE
scord
Commits
e129ec40
Verified
Commit
e129ec40
authored
2 years ago
by
ANA MANZANO RODRIGUEZ
Committed by
Alberto Miranda
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ADM_set_dataset_information.c test created
parent
0185b640
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
Resolve "Execute RPCs tests in CI"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/c/ADM_set_dataset_information.c
+37
-0
37 additions, 0 deletions
examples/c/ADM_set_dataset_information.c
examples/c/CMakeLists.txt
+6
-2
6 additions, 2 deletions
examples/c/CMakeLists.txt
with
43 additions
and
2 deletions
examples/c/ADM_set_dataset_information.c
0 → 100644
+
37
−
0
View file @
e129ec40
#include
<stdlib.h>
#include
<stdio.h>
#include
<admire.h>
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
!=
5
)
{
fprintf
(
stderr
,
"ERROR: no location provided
\n
"
);
fprintf
(
stderr
,
"Usage: ADM_set_dataset_information <REMOTE_IP> <RESOURCE_ID> <INFO> <JOB_ID>
\n
"
);
exit
(
EXIT_FAILURE
);
}
int
exit_status
=
EXIT_SUCCESS
;
ADM_server_t
server
=
ADM_server_create
(
"tcp"
,
argv
[
1
]);
ADM_job_t
job
;
ADM_dataset_t
target
;
ADM_dataset_info_t
info
;
ADM_return_t
ret
=
ADM_set_dataset_information
(
server
,
job
,
target
,
info
);
if
(
ret
!=
ADM_SUCCESS
)
{
fprintf
(
stdout
,
"ADM_set_dataset_information() remote procedure not completed "
"successfully
\n
"
);
exit_status
=
EXIT_FAILURE
;
goto
cleanup
;
}
fprintf
(
stdout
,
"ADM_set_dataset_information() remote procedure completed "
"successfully
\n
"
);
cleanup:
ADM_server_destroy
(
server
);
exit
(
exit_status
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
examples/c/CMakeLists.txt
+
6
−
2
View file @
e129ec40
...
...
@@ -25,7 +25,7 @@
list
(
APPEND examples_c ADM_register_job ADM_cancel_transfer ADM_connect_data_operation ADM_define_data_operation
ADM_deploy_adhoc_storage ADM_finalize_data_operation ADM_get_pending_transfers ADM_get_qos_constraints
ADM_get_statistics ADM_get_transfer_priority
#ADM_link_transfer_to_data_operation
ADM_register_adhoc_storage ADM_remove_adhoc_storage ADM_remove_job
)
ADM_register_adhoc_storage ADM_remove_adhoc_storage ADM_remove_job
ADM_set_dataset_information
)
# ADM_in_situ_ops ADM_in_transit_ops not implemented
...
...
@@ -66,4 +66,8 @@ add_test(ADM_register_adhoc_storage_test ADM_register_adhoc_storage ofi+tcp://12
add_test
(
ADM_remove_adhoc_storage_test ADM_remove_adhoc_storage ofi+tcp://127.0.0.1:52000 42
)
add_test
(
ADM_remove_job_test ADM_remove_job ofi+tcp://127.0.0.1:52000 42
)
\ No newline at end of file
add_test
(
ADM_remove_job_test ADM_remove_job ofi+tcp://127.0.0.1:52000 42
)
#ADM_remove_pfs_storage (missing, not working in cpp. Will be created when they work in cpp)
add_test
(
ADM_set_dataset_information_test ADM_set_dataset_information ofi+tcp://127.0.0.1:52000 5 info 42
)
\ No newline at end of file
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