This builds on https://github.com/coreos/coreos-assembler/pull/1441 to install our tests rather than running them from the source directory. This model will more cleanly allow us to ship our tests along with a test container or elsewhere, separate from the source directory. Also prep for https://github.com/ostreedev/ostree/pull/2048
14 lines
359 B
Makefile
14 lines
359 B
Makefile
DESTDIR ?=
|
|
|
|
TESTDIRS := $(shell find -mindepth 1 -maxdepth 1 -type d)
|
|
LIBSCRIPTS := $(shell ls *.sh)
|
|
|
|
KOLA_TESTDIR = $(DESTDIR)/usr/lib/coreos-assembler/tests/kola/ostree/
|
|
|
|
all:
|
|
for x in $(LIBSCRIPTS); do bash -n "$${x}"; done
|
|
|
|
install:
|
|
install -D -m 0644 -t $(KOLA_TESTDIR) $(LIBSCRIPTS)
|
|
for x in $(TESTDIRS); do rsync -rlv ./$${x} $(KOLA_TESTDIR)/; done
|