build: Add a make vm convenience target
With this one does not need to type the full path to the VM. This is useful to demonstrate how to use other test frameworks than cockpit's test API. Closes #19
This commit is contained in:
parent
099ac621b2
commit
b614b72939
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -55,6 +55,10 @@ rpm: dist-gzip
|
||||||
$(VM_IMAGE): rpm bots
|
$(VM_IMAGE): rpm bots
|
||||||
bots/image-customize -v -r 'rpm -e cockpit-starter-kit || true' -i cockpit -i `pwd`/cockpit-starter-kit-*.noarch.rpm -s $(CURDIR)/test/vm.install $(TEST_OS)
|
bots/image-customize -v -r 'rpm -e cockpit-starter-kit || true' -i cockpit -i `pwd`/cockpit-starter-kit-*.noarch.rpm -s $(CURDIR)/test/vm.install $(TEST_OS)
|
||||||
|
|
||||||
|
# convenience target for the above
|
||||||
|
vm: $(VM_IMAGE)
|
||||||
|
echo $(VM_IMAGE)
|
||||||
|
|
||||||
# run the browser integration tests; skip check for SELinux denials
|
# run the browser integration tests; skip check for SELinux denials
|
||||||
check: node_modules/react-lite $(VM_IMAGE) test/common
|
check: node_modules/react-lite $(VM_IMAGE) test/common
|
||||||
TEST_AUDIT_NO_SELINUX=1 test/check-starter-kit
|
TEST_AUDIT_NO_SELINUX=1 test/check-starter-kit
|
||||||
|
|
@ -76,4 +80,4 @@ test/common:
|
||||||
node_modules/react-lite:
|
node_modules/react-lite:
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
.PHONY: all clean install devel-install dist-gzip srpm rpm check
|
.PHONY: all clean install devel-install dist-gzip srpm rpm check vm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue