forked from dcmjs-org/dicomweb-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·26 lines (20 loc) · 818 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Clear any previous data from the last test run
rm -rf /tmp/dcm4chee-arc/db
# now start dcm4chee archive and wait for it to startup
echo 'Starting dcm4chee Docker container'
docker-compose -f dcm4chee-docker-compose.yml up -d || { exit 1; }
until curl localhost:8008/dcm4chee-arc/aets; do echo waiting for archive...; sleep 1; done
echo ""
echo ""
echo "Archive started, ready to run tests..."
echo ""
# at this point DICOMweb server is running and ready for testing
echo 'Installing and running tests'
./node_modules/karma/bin/karma start karma.conf.js --browsers Chrome_without_security
# Store the exit code from mochify
exit_code=$?
# now shut down the archive
echo 'Shutting down Docker container'
docker-compose -f dcm4chee-docker-compose.yml down
# Exit with the exit code from Mochify
exit "$exit_code"