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
04277095
Commit
04277095
authored
15 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
SE-133 YeastX: fix integration tests
SVN: 12719
parent
a89e650c
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
integration-tests/common.bash
+0
-7
0 additions, 7 deletions
integration-tests/common.bash
integration-tests/test-3v.sh
+30
-18
30 additions, 18 deletions
integration-tests/test-3v.sh
integration-tests/test-yeastx.sh
+11
-5
11 additions, 5 deletions
integration-tests/test-yeastx.sh
with
41 additions
and
30 deletions
integration-tests/common.bash
+
0
−
7
View file @
04277095
...
...
@@ -568,13 +568,6 @@ function build_and_install {
# NOTE: Comment this line if you want to use different libraries.
build_zips
$install_dss
$install_dmv
$install_openbis
$use_local_source
# Prepare empty incoming data
DATA
=
$WORK
/data
rm
-fr
$DATA
mkdir
-p
$DATA
cp
-R
$TEMPLATE
/data
$WORK
clean_svn
$DATA
install
$install_dss
$install_dmv
$install_openbis
$reinstall_all
}
...
...
This diff is collapsed.
Click to expand it.
integration-tests/test-3v.sh
+
30
−
18
View file @
04277095
...
...
@@ -85,7 +85,7 @@ function switch_processing_pipeline {
}
function
launch_tests
_3v
{
function
launch_tests
{
switch_processing_pipeline
"on"
sleep
4
...
...
@@ -225,7 +225,7 @@ function assert_correct_content_of_unidentified_plate_in_store {
assert_same_content
$TEST_DATA
/
$cell_plate
$unidentified_dir
/DataSetType_HCS_IMAGE_ANALYSIS_DATA/microX_200801011213_
$cell_plate
}
function
assert_correct_content
_3v
{
function
assert_correct_content
{
assert_dss_registration datastore_server1
assert_dss_registration datastore_server2
assert_empty_in_out_folders
...
...
@@ -233,23 +233,23 @@ function assert_correct_content_3v {
assert_pattern_present
$DATA
/out-raw/.faulty_paths 1
".*data/out-raw/.MARKER_is_finished_microX_200801011213_3VCP1"
assert_pattern_present
$WORK
/datamover-raw/data-completed-info.txt 4
"Data complete.*3VCP[0-9]"
assert_correct_content_of_plate_3VCP1_in_store
assert_correct_content_of_image_analysis_data 3VCP1
".*-
19
.*3VCP1$"
assert_correct_content_of_image_analysis_data 3VCP3
".*-2
1
.*3VCP3$"
assert_correct_content_of_image_analysis_data 3VCP1
".*-
22
.*3VCP1$"
assert_correct_content_of_image_analysis_data 3VCP3
".*-2
4
.*3VCP3$"
assert_correct_content_of_unidentified_plate_in_store UnknownPlate
local
file
=
`
find_dataset_dir
".*-2
4
$"
`
/original/nemo.exp1_MICROX-3VCP1.MICROX-3VCP3.txt
local
file
=
`
find_dataset_dir
".*-2
7
$"
`
/original/nemo.exp1_MICROX-3VCP1.MICROX-3VCP3.txt
assert_equals_as_in_file
"hello world"
$file
# result set columns are
# id;experiment_code;data_store_code;code;is_placeholder;data_id_parent;is_complete;data_producer_code;production_timestamp
assert_correct_dataset_content_in_database 2
"2;EXP1;DSS1;MICROX-3VCP1;f;;F;microX;2008-01-01.*"
assert_correct_dataset_content_in_database 3
"3;EXP1;DSS1;20[0-9]*-
19
;f;;U;;"
assert_correct_dataset_content_in_database 4
"4;EXP1;DSS1;20[0-9]*-2
0
;f;;U;;"
assert_correct_dataset_content_in_database 5
"5;EXP1;DSS1;20[0-9]*-2
1
;f;;U;;"
assert_correct_dataset_content_in_database 3
"3;EXP1;DSS1;20[0-9]*-
22
;f;;U;;"
assert_correct_dataset_content_in_database 4
"4;EXP1;DSS1;20[0-9]*-2
3
;f;;U;;"
assert_correct_dataset_content_in_database 5
"5;EXP1;DSS1;20[0-9]*-2
4
;f;;U;;"
assert_correct_dataset_content_in_database 6
"6;EXP1;DSS1;MICROX-3VCP3;f;;F;microX;2008-01-01.*"
assert_correct_dataset_content_in_database 7
"7;EXP1;DSS1;20[0-9]*-2
3
;f;;U;;"
assert_correct_dataset_content_in_database 8
".*8;EXP1;DSS2;20[0-9]*-2
4
;f;2;U;;.*"
assert_correct_dataset_content_in_database 8
".*8;EXP1;DSS2;20[0-9]*-2
4
;f;6;U;;.*"
assert_equals
"Content of file in drop box1"
"hello world"
"
`
cat
$DATA
/drop-box1/nemo.exp1_MICROX-3VCP1.MICROX-3VCP3
*
-2
4
.txt
`
"
assert_equals
"Content of file in drop box2"
"hello world"
"
`
cat
$DATA
/drop-box2/nemo.exp1_MICROX-3VCP1.MICROX-3VCP3
*
-2
4
.txt
`
"
assert_correct_dataset_content_in_database 7
"7;EXP1;DSS1;20[0-9]*-2
6
;f;;U;;"
assert_correct_dataset_content_in_database 8
".*8;EXP1;DSS2;20[0-9]*-2
7
;f;2;U;;.*"
assert_correct_dataset_content_in_database 8
".*8;EXP1;DSS2;20[0-9]*-2
7
;f;6;U;;.*"
assert_equals
"Content of file in drop box1"
"hello world"
"
`
cat
$DATA
/drop-box1/nemo.exp1_MICROX-3VCP1.MICROX-3VCP3
*
-2
7
.txt
`
"
assert_equals
"Content of file in drop box2"
"hello world"
"
`
cat
$DATA
/drop-box2/nemo.exp1_MICROX-3VCP1.MICROX-3VCP3
*
-2
7
.txt
`
"
}
function
print_help
{
...
...
@@ -271,12 +271,24 @@ function print_help {
echo
"
$0
--dss"
}
function
integration_tests_3v
{
# Prepare template incoming data and some destination data structures
function
prepare_data
{
DATA
=
$WORK
/data
rm
-fr
$DATA
mkdir
-p
$DATA
cp
-R
$TEMPLATE
/data
$WORK
clean_svn
$DATA
rm
$WORK
/datamover-raw/data-completed-info.txt
}
function
integration_tests
{
prepare_data
build_and_install
$@
launch_tests
_3v
launch_tests
assert_correct_content
_3v
assert_correct_content
shutdown_openbis_server
exit_if_assertion_failed
...
...
@@ -319,7 +331,7 @@ else
exit
0
;;
'--assert-content'
)
assert_correct_content
_3v
assert_correct_content
exit
0
;;
*
)
...
...
@@ -330,5 +342,5 @@ else
esac
shift
done
integration_tests
_3v
$install_dss
$install_dmv
$install_openbis
$use_local_source
$reinstall_all
integration_tests
$install_dss
$install_dmv
$install_openbis
$use_local_source
$reinstall_all
fi
This diff is collapsed.
Click to expand it.
integration-tests/test-yeastx.sh
+
11
−
5
View file @
04277095
...
...
@@ -15,6 +15,16 @@ METABOL_DB=metabol_dev
# --------------------
# Prepare template incoming data and some destination data structures
function
prepare_data
{
# Prepare empty incoming data
rm
-fr
$MY_DATA
mkdir
-p
$MY_DATA
cp
-R
$TEMPLATE
/data-yeastx/
*
$MY_DATA
/
clean_svn
$MY_DATA
}
function
build_and_install_yeastx
{
local
use_local_source
=
$1
...
...
@@ -29,11 +39,7 @@ function build_and_install_yeastx {
cp
$INSTALL
/datastore_server-plugins.jar
$WORK
/datastore_server_yeastx/lib/
chmod_exec
$WORK
/datastore_server_yeastx/takeCifsOwnershipRecursive.sh
# Prepare empty incoming data
rm
-fr
$MY_DATA
mkdir
-p
$MY_DATA
cp
-R
$TEMPLATE
/data-yeastx/
*
$MY_DATA
/
clean_svn
$MY_DATA
prepare_data
echo
Dropping metabolomics database
psql_cmd
=
`
run_psql
`
...
...
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