summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
-rw-r--r--INSTALL.md2
-rw-r--r--test/CMakeLists.txt3
3 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e850f9928..435407fea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -196,6 +196,9 @@ endif()
# Never build unit tests as static binaries, otherwise we'll end up with
# ~300MB per unit test.
if(ENABLE_UNIT_TESTING)
+ if(NOT ENABLE_SHARED)
+ message(WARNING "Disabling static build since unit testing is enabled.")
+ endif()
set(ENABLE_SHARED ON)
endif()
diff --git a/INSTALL.md b/INSTALL.md
index 2f0c7a051..9e0c9dfc4 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -306,7 +306,7 @@ All custom test targets build and run a preconfigured set of tests.
Build and run all unit tests.
- `make regress [-jN] [ARGS=-jN]`
- Build and run all regression tests.
+ Build and run regression tests from levels 0 and 1.
- `make runexamples [-jN] [ARGS=-jN]`
Build and run all examples.
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index f601e5247..b2f138572 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -5,6 +5,9 @@
# > system tests
add_custom_target(build-tests)
+# Since examples are also built and run for testing, we have to add examples
+# to the build test dependencies.
+add_dependencies(build-tests examples)
# Note: Do not add custom targets for running tests (regress, systemtests,
# units) as dependencies to other run targets. This will result in executing
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback