annotate Start.sh @ 642:6f8443295ca8

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 06 Apr 2024 17:32:05 +0200
parents 4ee2cdbfc602
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
2dbba2e6aa4b reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 #!/bin/bash
2dbba2e6aa4b reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
407
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
3 # Without Docker on Ubuntu 18.04:
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
4 #
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
5 # (1) Compile Orthanc 0.8.6:
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
6 # $ cd $HOME/Releases/
586
Alain Mazy <am@osimis.io>
parents: 439
diff changeset
7 # $ hg clone -u Orthanc-0.8.6 https://orthanc.uclouvain.be/hg/orthanc/ Orthanc-0.8.6
407
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
8 # $ mkdir $HOME/Releases/Orthanc-0.8.6/Build
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
9 # $ cd $HOME/Releases/Orthanc-0.8.6/Build
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
10 # $ cmake .. -DCMAKE_BUILD_TYPE=Release -DSTATIC_BUILD=ON
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
11 # $ make -j4 UnitTests Orthanc
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
12 #
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
13 # (2) Run the integration tests using Orthanc 0.8.6:
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
14 # $ rm -rf /tmp/OrthancStorage ; python ./Tests/Run.py --orthanc=$HOME/Releases/Orthanc-0.8.6/Build/Orthanc --force
ad98466353c6 test_modify_subsequences
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 306
diff changeset
15 #
8
f8d781d1d267 test_changes, test_archive, test_media_archive
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3
diff changeset
16
306
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
17 set -ex
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
18
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
19 sudo docker run --rm -t -i -p 5000:5000 -p 5001:5001 \
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
20 -v `pwd`:/tmp/tests:ro \
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
21 --entrypoint python jodogne/orthanc-tests \
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
22 /tmp/tests/Tests/Run.py --docker $*