Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
9db265e5
"README.md" did not exist on "8a06ce3bcf22b44e94e4b691e5fc07d445d58ae4"
Commit
9db265e5
authored
14 years ago
by
kaloyane
Browse files
Options
Downloads
Patches
Plain Diff
minor: abort with error message when gfind is not the default command line tool
SVN: 20479
parent
377fe6a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
integration-tests/test-archiving.sh
+13
-4
13 additions, 4 deletions
integration-tests/test-archiving.sh
with
13 additions
and
4 deletions
integration-tests/test-archiving.sh
+
13
−
4
View file @
9db265e5
...
@@ -26,7 +26,7 @@ source common.bash
...
@@ -26,7 +26,7 @@ source common.bash
# ----- local constants --------------------
# ----- local constants --------------------
TIME_TO_COMPLETE
=
9
0
# time (in seconds) needed by the whole pipeline to process everything
TIME_TO_COMPLETE
=
6
0
# time (in seconds) needed by the whole pipeline to process everything
TEST_DATA_DIR
=
templates/data-archiving
TEST_DATA_DIR
=
templates/data-archiving
ARCHIVE_DIR
=
/tmp/integration-tests/archiving/rsync-archive
ARCHIVE_DIR
=
/tmp/integration-tests/archiving/rsync-archive
ARCHIVE_DATASET
=
ARCHIVE_DATASET
ARCHIVE_DATASET
=
ARCHIVE_DATASET
...
@@ -59,7 +59,7 @@ function prepare_step2 {
...
@@ -59,7 +59,7 @@ function prepare_step2 {
function
damage_archive
{
function
damage_archive
{
echo
"Inserting invalid content in the archived dataset copy..."
echo
"Inserting invalid content in the archived dataset copy..."
echo
"INVALID CONTENT AT THE END OF ARCHIVE"
>>
$ARCHIVED_DATASET_DIR
/archive-me.txt
echo
"INVALID CONTENT AT THE END OF ARCHIVE"
>>
$ARCHIVED_DATASET_DIR
/archive-me.txt
}
}
function
reconfigure_datastore_server
{
function
reconfigure_datastore_server
{
...
@@ -206,13 +206,21 @@ function integration_test {
...
@@ -206,13 +206,21 @@ function integration_test {
build_and_install
$@
build_and_install
$@
test_step1
test_step1
# TODO KE: remove this comment when we implement filesize check in the RSyncArchiver
test_step2
#test_step2
shutdown_openbis_server
$OPENBIS_SERVER
shutdown_openbis_server
$OPENBIS_SERVER
exit_if_assertion_failed
exit_if_assertion_failed
}
}
function
ensureGNUFind
{
local
gnuFind
=
`
find
-printf
2>&1 |
grep
"missing argument"
`
if
[
"
$gnuFind
"
=
""
]
;
then
report_error
"This test requires gfind (GNU Find) to be the default 'find' command line tool. Aborting..."
exit
1
fi
}
#
#
# -- MAIN (copied from)------------
# -- MAIN (copied from)------------
#
#
...
@@ -220,6 +228,7 @@ function integration_test {
...
@@ -220,6 +228,7 @@ function integration_test {
if
[
"
$1
"
=
"--clean"
]
;
then
if
[
"
$1
"
=
"--clean"
]
;
then
clean_after_tests
clean_after_tests
else
else
ensureGNUFind
parse_cli_args
$@
parse_cli_args
$@
integration_test
$install_dss
$install_dmv
$install_openbis
$use_local_source
$reinstall_all
integration_test
$install_dss
$install_dmv
$install_openbis
$use_local_source
$reinstall_all
fi
fi
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