Skip to content

Commit

Permalink
Init testserver
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikl committed Nov 21, 2017
1 parent 90a8252 commit f4143e9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docker/init_testserver.sh
@@ -0,0 +1,29 @@
#!/bin/bash

# Set up the data structure needed for the tests
# (see setup.csv)

cd $OMERO_HOME/bin

./omero login root@localhost -w omero
./omero obj new Dataset name=TestDataset
./omero obj new Project name=TestProject
./omero obj new ProjectDatasetLink parent=Project:1 child=Dataset:1
touch "8bit-unsigned&pixelType=uint8&sizeZ=3&sizeC=5&sizeT=7&sizeX=512&sizeY=512.fake"
./omero import "8bit-unsigned&pixelType=uint8&sizeZ=3&sizeC=5&sizeT=7&sizeX=512&sizeY=512.fake" -T Dataset:id:1

./omero obj new CommentAnnotation textValue=BlaBla
./omero obj new ImageAnnotationLink parent=Image:1 child=CommentAnnotation:1
touch test.csv
./omero upload test.csv
./omero obj new FileAnnotation file=OriginalFile:47
./omero obj new ImageAnnotationLink parent=Image:1 child=FileAnnotation:2

./omero obj new Screen name=TestScreen
touch "SPW&plates=1&plateRows=8&plateCols=8&fields=4&plateAcqs=1.fake"
./omero import "SPW&plates=1&plateRows=8&plateCols=8&fields=4&plateAcqs=1.fake" -T Screen:id:1

./omero obj new MapAnnotation
./omero obj map-set MapAnnotation:3 mapValue testkey testvalue
./omero obj new ScreenAnnotationLink parent=Screen:1 child=MapAnnotation:3

3 changes: 3 additions & 0 deletions docker/runtest
@@ -1,4 +1,7 @@
#!/usr/bin/env bash

source init_testserver.sh

cat <<EOF | R --no-save
library(devtools)
library(romero.gateway)
Expand Down

0 comments on commit f4143e9

Please sign in to comment.