Skip to content

Commit

Permalink
Improve test to test for controller
Browse files Browse the repository at this point in the history
  • Loading branch information
markusweigelt committed Mar 12, 2024
1 parent a9f0912 commit a63a8c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ endif
ifndef CONTROLLER_CONFIG
CONTROLLER_CONFIG != source .env && echo $$CONTROLLER_CONFIG # ./ocrd/controller/config
endif
ifndef CONTROLLER_PORT_SSH
CONTROLLER_PORT_SSH != source .env && echo $$CONTROLLER_PORT_SSH # ./ocrd/controller/config
endif


# removes (default) files and directories of prepare target
clean: clean-testdata
Expand Down Expand Up @@ -180,6 +184,7 @@ test-kitodo: $(APP_DATA)/metadata/testdata-kitodo
# remove ocr directory if exist
rm -rf $(APP_DATA)/metadata/testdata-kitodo/ocr
# wait until Kitodo.Production directory structure is initialized
docker exec -t $(APP_CONTAINER) bash -c "/wait-for-it.sh -t 0 ocrd-controller:$$CONTROLLER_PORT_SSH"
docker exec -t $(APP_CONTAINER) bash -c "/wait-for-it.sh -t 0 kitodo-app:$$APP_PORT"
docker exec -t $(APP_CONTAINER) bash -c "/wait-for-it.sh -t 0 ocrd-database:27017"
# run asynchronous ocr processing, which should return within 5 seconds with exit status 1
Expand Down

0 comments on commit a63a8c8

Please sign in to comment.