forked from TrueCloudLab/frostfs-testcases
Vladimir Domnich
5f53e80f93
Few small fixes were made: - Fix path to binaries on storage node in cloud env. - Add logic to prepend ssh command with sudo. - Make re-encoding of homomorphic hash conditional. - Increase ssh timeout. Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
#!/usr/bin/make -f
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
SHELL = bash
|
|
|
|
OUTPUT_DIR = artifacts/
|
|
KEYWORDS_REPO = git@github.com:nspcc-dev/neofs-keywords.git
|
|
VENVS = $(shell ls -1d venv/*/ | sort -u | xargs basename -a)
|
|
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
DEV_IMAGE_PY ?= registry.spb.yadro.com/tools/pytest-neofs-x86_64:7
|
|
SETUP_DIR ?= $(CURDIR)/.setup
|
|
DEV_ENV_DEPLOY_DIR ?= /opt/dev-env
|
|
|
|
DOCKER_NETWORK = --network host
|
|
ifeq ($(shell uname -s),Darwin)
|
|
DOCKER_NETWORK = --network bridge -p 389:389 -p 636:636
|
|
endif
|
|
|
|
|
|
.PHONY: all
|
|
all: venvs
|
|
|
|
include venv_template.mk
|
|
|
|
run: venvs
|
|
@echo "⇒ Test Run"
|
|
@robot --timestampoutputs --outputdir $(OUTPUT_DIR) robot/testsuites/integration/
|
|
|
|
.PHONY: venvs
|
|
venvs:
|
|
$(foreach venv,$(VENVS),venv.$(venv))
|
|
|
|
$(foreach venv,$(VENVS),$(eval $(call VENV_template,$(venv))))
|
|
|
|
submodules:
|
|
@git submodule init
|
|
@git submodule update --recursive --remote
|
|
|
|
clean:
|
|
rm -rf venv.*
|
|
|
|
pytest-local:
|
|
@echo "⇒ Run Pytest"
|
|
export PYTHONPATH=$(ROOT_DIR)/neofs-keywords/lib:$(ROOT_DIR)/neofs-keywords/robot:$(ROOT_DIR)/robot/resources/lib:$(ROOT_DIR)/robot/resources/lib/python_keywords:$(ROOT_DIR)/robot/variables && \
|
|
python -m pytest pytest_tests/testsuites/
|
|
|
|
help:
|
|
@echo "⇒ run Run testcases ${R}"
|