diff --git a/Makefile b/Makefile index 78770d5..baf00b5 100644 --- a/Makefile +++ b/Makefile @@ -138,9 +138,13 @@ $(VM_IMAGE): $(TARFILE) $(NODE_CACHE) bots vm: $(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 # 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 # checkout Cockpit's bots for standard test VM images and API to launch them diff --git a/README.md b/README.md index 488b781..a2cb534 100644 --- a/README.md +++ b/README.md @@ -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 +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: TEST_OS=fedora-34 make check