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
f1b284aa
Commit
f1b284aa
authored
14 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1610 check log and images after example client had been executed on Screening API
SVN: 17862
parent
5d57b9f5
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
integration-tests/resource/eclipse/Launch local integration tests for screening.launch
+23
-0
23 additions, 0 deletions
...lipse/Launch local integration tests for screening.launch
integration-tests/test-screening.sh
+16
-1
16 additions, 1 deletion
integration-tests/test-screening.sh
with
39 additions
and
1 deletion
integration-tests/resource/eclipse/Launch local integration tests for screening.launch
0 → 100644
+
23
−
0
View file @
f1b284aa
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration
type=
"org.eclipse.ant.AntLaunchConfigurationType"
>
<booleanAttribute
key=
"org.eclipse.ant.ui.DEFAULT_VM_INSTALL"
value=
"true"
/>
<listAttribute
key=
"org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"
>
<listEntry
value=
"/integration-tests/build/build.xml"
/>
</listAttribute>
<listAttribute
key=
"org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"
>
<listEntry
value=
"1"
/>
</listAttribute>
<booleanAttribute
key=
"org.eclipse.debug.core.appendEnvironmentVariables"
value=
"true"
/>
<listAttribute
key=
"org.eclipse.debug.ui.favoriteGroups"
>
<listEntry
value=
"org.eclipse.ui.externaltools.launchGroup"
/>
</listAttribute>
<stringAttribute
key=
"org.eclipse.jdt.launching.CLASSPATH_PROVIDER"
value=
"org.eclipse.ant.ui.AntClasspathProvider"
/>
<stringAttribute
key=
"org.eclipse.jdt.launching.MAIN_TYPE"
value=
"org.eclipse.ant.internal.ui.antsupport.InternalAntRunner"
/>
<stringAttribute
key=
"org.eclipse.jdt.launching.PROJECT_ATTR"
value=
"integration-tests"
/>
<stringAttribute
key=
"org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value=
"org.eclipse.ant.ui.AntClasspathProvider"
/>
<stringAttribute
key=
"org.eclipse.jdt.launching.VM_INSTALL_NAME"
value=
"JVM 1.5.0 (MacOS X Default)"
/>
<stringAttribute
key=
"org.eclipse.jdt.launching.VM_INSTALL_TYPE_ID"
value=
"org.eclipse.jdt.internal.launching.macosx.MacOSXType"
/>
<stringAttribute
key=
"org.eclipse.ui.externaltools.ATTR_ANT_TARGETS"
value=
"screening-integration-tests,"
/>
<stringAttribute
key=
"org.eclipse.ui.externaltools.ATTR_LOCATION"
value=
"${workspace_loc:/integration-tests/build/build.xml}"
/>
<stringAttribute
key=
"process_factory_id"
value=
"org.eclipse.ant.ui.remoteAntProcessFactory"
/>
</launchConfiguration>
This diff is collapsed.
Click to expand it.
integration-tests/test-screening.sh
+
16
−
1
View file @
f1b284aa
...
...
@@ -112,12 +112,27 @@ function install_screening {
function
test_screening_api
{
cd
$API_HCS
.
./run.sh admin password https://localhost:8443
>
std
.txt
.
./run.sh admin password https://localhost:8443
>
api-client-log
.txt
if
[
$?
-ne
0
]
;
then
report_error Running screening API has failed
else
echo
[
OK] Screening API runs without exceptions.
fi
assert_pattern_present api-client-log.txt 1
"Experiments:
\[
/DEMO/DEMO_PROJECT/DEMO_EXPERIMENT
\[
20100623121102843-1
\]\]
"
assert_pattern_present api-client-log.txt 1
"Plates:
\[
/DEMO/PLATE1
\[
20100624113752213-5
\]
"
assert_pattern_present api-client-log.txt 1
"Image datasets:
\[
[0-9]*-9"
assert_pattern_present api-client-log.txt 1
"Feature vector datasets:
\[
[0-9]*-11 (plate: /DEMO/PLATE2
\[
20100624113756254-6
\]
"
assert_pattern_present api-client-log.txt 1
"Feature codes:
\[
CELLNUMBER, FEATRUE1, FEATRUE10, FEATRUE11, FEATRUE12, FEATRUE13, FEATRUE14, FEATRUE15, FEATRUE16, FEATRUE2, FEATRUE3, FEATRUE4, FEATRUE5, FEATRUE6, FEATRUE7, FEATRUE8, FEATRUE9, FRET, HITRATE, RFU645, RFU730, STD1, STD10, STD11, STD12, STD13, STD14, STD15, STD16, STD2, STD3, STD4, STD5, STD6, STD7, STD8, STD9
\]
"
assert_pattern_present api-client-log.txt 1
"Loaded feature datasets: 2"
assert_pattern_present api-client-log.txt 1
"Features of the first dataset: datasetCode: 20100916114711847-11"
assert_pattern_present api-client-log.txt 1
"wellPosition:
\[
1, 2
\]
, values:
\[
1911000.0, 4915000.0, 8203000.0
\]
"
assert_pattern_present api-client-log.txt 1
"Image metadata:
\[
Dataset [0-9]*-9 (plate: /DEMO/PLATE3
\[
20100624113759640-7
\]
) has
\[\[
DAPI, GFP
\]\]
channels, 9 tiles
\.
Images resolution: 720x468"
for
imgFile
in
`
find
.
-name
*
.png
`
;
do
assert_pattern_present
$imgFile
1 PNG
done
numberOfImages
=
`
find
.
-name
*
.png|wc|awk
'{print $1}'
`
assert_equals
"number of images"
36
$numberOfImages
# return to the original directory
cd
../../..
}
...
...
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