From f7a15141315e67a99c55a405ae1c002c50535732 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 7 Mar 2022 11:26:17 +0100 Subject: [PATCH] test: update with info on running a single/few tests Signed-off-by: Joachim Wiberg --- test/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/README.md b/test/README.md index 22440fa4..65bd632d 100644 --- a/test/README.md +++ b/test/README.md @@ -1,5 +1,5 @@ -Tests -===== +Finit Test Suite +================ Finit comes with a set of tests and a small framework for running them. Contributors are encouraged to write new tests when implementing features, or @@ -17,7 +17,7 @@ Running tests To run the test suite, first [build](../doc/build.md) Finit, e.g: ./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var - make -j9 clean all + make -j9 clean all Then run (parallel does not work atm): @@ -31,3 +31,7 @@ test. To execute an individual test, simply invoke the script containing it: ./test/name-of-the-test.sh +Another way to run a single (or more) test(s) is to define the `TESTS` +environment variable: + + TESTS="start-kill-service" make check