Makefile: allow setup of integration tests w/o running them
Add a convenience target in Makefile to perform all the setup targets for integration tests without actually running them.
This commit is contained in:
parent
3dc7c804a0
commit
80b8949192
2 changed files with 9 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -138,9 +138,13 @@ $(VM_IMAGE): $(TARFILE) $(NODE_CACHE) bots
|
||||||
vm: $(VM_IMAGE)
|
vm: $(VM_IMAGE)
|
||||||
echo $(VM_IMAGE)
|
echo $(VM_IMAGE)
|
||||||
|
|
||||||
|
# convenience target to setup all the bits needed for the integration tests
|
||||||
|
# without actually running them
|
||||||
|
prepare-check: $(NODE_MODULES_TEST) $(VM_IMAGE) test/common
|
||||||
|
|
||||||
# run the browser integration tests; skip check for SELinux denials
|
# run the browser integration tests; skip check for SELinux denials
|
||||||
# this will run all tests/check-* and format them as TAP
|
# this will run all tests/check-* and format them as TAP
|
||||||
check: $(NODE_MODULES_TEST) $(VM_IMAGE) test/common
|
check: prepare-check
|
||||||
TEST_AUDIT_NO_SELINUX=1 test/common/run-tests
|
TEST_AUDIT_NO_SELINUX=1 test/common/run-tests
|
||||||
|
|
||||||
# checkout Cockpit's bots for standard test VM images and API to launch them
|
# checkout Cockpit's bots for standard test VM images and API to launch them
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,10 @@ the VM, possibly with extra options for tracing and halting on test failures
|
||||||
|
|
||||||
TEST_OS=centos-8-stream test/check-application -tvs
|
TEST_OS=centos-8-stream test/check-application -tvs
|
||||||
|
|
||||||
|
It is possible to setup the test environment without running the tests:
|
||||||
|
|
||||||
|
TEST_OS=centos-8-stream make prepare-check
|
||||||
|
|
||||||
You can also run the test against a different Cockpit image, for example:
|
You can also run the test against a different Cockpit image, for example:
|
||||||
|
|
||||||
TEST_OS=fedora-34 make check
|
TEST_OS=fedora-34 make check
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue