Mercurial > hg > orthanc-tests
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 |
rev | line source |
---|---|
3 | 1 #!/bin/bash |
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 | 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 | 17 set -ex |
18 | |
19 sudo docker run --rm -t -i -p 5000:5000 -p 5001:5001 \ | |
20 -v `pwd`:/tmp/tests:ro \ | |
21 --entrypoint python jodogne/orthanc-tests \ | |
22 /tmp/tests/Tests/Run.py --docker $* |