From 80b8949192f88550e5236d2a213b3a02f87e0508 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 17 Mar 2022 07:13:02 +0100 Subject: [PATCH] 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. --- Makefile | 6 +++++- README.md | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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