Makefile: export env vars and add BATS_OPTS
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
parent
5f249c84e8
commit
03cdb6f9a5
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -1,6 +1,7 @@
|
|||
SRC := ./BuildSourceImage.sh
|
||||
CTR_IMAGE := localhost/containers/buildsourceimage
|
||||
CTR_ENGINE ?= podman
|
||||
BATS_OPTS ?=
|
||||
cleanfiles =
|
||||
# these are packages whose src.rpms are very small
|
||||
srpm_urls = \
|
||||
|
@ -9,6 +10,9 @@ srpm_urls = \
|
|||
https://archive.kernel.org/centos-vault/7.0.1406/os/Source/SPackages/centos-bookmarks-7-1.el7.src.rpm
|
||||
srpms = $(addprefix ./.testprep/srpms/,$(notdir $(rpms)))
|
||||
|
||||
export CTR_IMAGE
|
||||
export CTR_ENGINE
|
||||
|
||||
all: validate
|
||||
|
||||
validate: .validate
|
||||
|
@ -35,7 +39,7 @@ cleanfiles += .testprep $(srpms)
|
|||
test-integration: .build-container .testprep
|
||||
@echo
|
||||
@echo "==> Running integration tests"
|
||||
CTR_IMAGE=$(CTR_IMAGE) CTR_ENGINE=$(CTR_ENGINE) TMPDIR=$(shell realpath .testprep/tmp) bats test/
|
||||
TMPDIR=$(shell realpath .testprep/tmp) bats $(BATS_OPTS) test/
|
||||
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Reference in a new issue