Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into overlayfs-store
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Jul 19, 2023
2 parents 21b9e15 + 453c4be commit 4107adc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ makefiles += \
src/libstore/tests/local.mk \
src/libexpr/tests/local.mk \
tests/local.mk \
tests/overlay-local-store/local.mk \
tests/ca/local.mk \
tests/dyn-drv/local.mk \
tests/overlay-local-store/local.mk \
tests/test-libstoreconsumer/local.mk \
tests/plugins/local.mk
else
Expand Down
5 changes: 3 additions & 2 deletions doc/manual/src/contributing/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ ran test tests/bar.sh... [PASS]
### Grouping tests

Sometimes it is useful to group related tests so they can be easily run together without running the entire test suite.
For example, `tests/ca/local.mk` defines a "ca" test group for tests relating to content-addressed derivation outputs.
Each test group is in a subdirectory of `tests`.
For example, `tests/ca/local.mk` defines a `ca` test group for content-addressed derivation outputs.

That test group can be run like this:

Expand All @@ -39,7 +40,7 @@ ran test tests/ca/import-derivation.sh... [PASS]
...
```

The testgroup is defined in Make like this:
The test group is defined in Make like this:
```makefile
$(test-group-name)-tests := \
$(d)/test0.sh \
Expand Down
8 changes: 8 additions & 0 deletions mk/lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ ifdef libs-list
@echo "The following libraries can be built:"
@echo ""
@for i in $(libs-list); do echo " $$i"; done
endif
ifdef install-tests-groups
@echo ""
@echo "The following groups of functional tests can be run:"
@echo ""
@for i in $(install-tests-groups); do echo " $$i.test-group"; done
@echo ""
@echo "(installcheck includes tests in test groups too.)"
endif
@echo ""
@echo "The following variables control the build:"
Expand Down

0 comments on commit 4107adc

Please sign in to comment.