Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
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
Container Registry
Harbor 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
dCache
cta
Commits
bc78a7a7
Commit
bc78a7a7
authored
7 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
Adding xargs to xrdcp in parallel.
parent
e30077f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
continuousintegration/orchestration/tests/client_ar.sh
+6
-4
6 additions, 4 deletions
continuousintegration/orchestration/tests/client_ar.sh
continuousintegration/orchestration/tests/client_helper.sh
+12
-0
12 additions, 0 deletions
continuousintegration/orchestration/tests/client_helper.sh
with
18 additions
and
4 deletions
continuousintegration/orchestration/tests/client_ar.sh
+
6
−
4
View file @
bc78a7a7
...
...
@@ -50,14 +50,16 @@ echo "Creating test dir in eos: ${EOS_DIR}"
# XrdSecPROTOCOL=sss eos -r 0 0 root://${EOSINSTANCE} rm -Fr ${EOS_DIR}
eos root://
${
EOSINSTANCE
}
mkdir
-p
${
EOS_DIR
}
echo
-n
"Copying files to
${
EOS_DIR
}
using
${
NB_PROCS
}
processes..."
for
((
i
=
0
;
i<
${
NB_FILES
}
;
i++
))
;
do
TEST_FILE_NAME
=
${
TEST_FILE_NAME_BASE
}
$(
printf
%.4d
$i
)
xrdcp
--silent
/tmp/testfile root://
${
EOSINSTANCE
}
/
${
EOS_DIR
}
/
${
TEST_FILE_NAME
}
d
one
echo
${
TEST_FILE_NAME_BASE
}
$(
printf
%.4d
$i
)
done
| xargs
--max-procs
=
${
NB_PROCS
}
-iTEST_FILE_NAME
xrdcp
--silent
/tmp/testfile root://
${
EOSINSTANCE
}
/
${
EOS_DIR
}
/TEST_FILE_NAME
echo
D
one
.
eos root://
${
EOSINSTANCE
}
ls
${
EOS_DIR
}
| egrep
"
${
TEST_FILE_NAME_BASE
}
[0-9]+"
|
sed
-e
's/$/ copied/'
>
${
STATUS_FILE
=
}
eos root://
${
EOSINSTANCE
}
ls
${
EOS_DIR
}
| egrep
"
${
TEST_FILE_NAME_BASE
}
[0-9]+"
|
sed
-e
's/$/ copied/'
>
${
STATUS_FILE
=
}
echo
"Waiting for files to be on tape:"
SECONDS_PASSED
=
0
WAIT_FOR_ARCHIVED_FILE_TIMEOUT
=
60
while
test
0
!=
$(
grep
-c
copied
$
${
STATUS_FILE
}
)
;
do
...
...
This diff is collapsed.
Click to expand it.
continuousintegration/orchestration/tests/client_helper.sh
+
12
−
0
View file @
bc78a7a7
###
# Helper functions for tests running on client pod.
#
# to use in your tests symply source this file:
# . /root/client_helper.sh on the client pod
#
# admin_kinit: kinit for CTAADMIN_USER
# admin_klist: klist for CTAADMIN_USER
# admin_kdestroy: kdestroy for CTAADMIN_USER
# admin_cta: runs a cta command as CTAADMIN_USER
CTAADMIN_USER
=
"ctaadmin2"
USER
=
"user1"
...
...
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