build: Allow disabling the conformance test suite
When building Clutter for packaging on headless boxes it's pointless to allow building the conformance test to be built (and run on 'make check').
This commit is contained in:
parent
7a1ebcbced
commit
5f5f6d825f
14
configure.ac
14
configure.ac
@ -696,6 +696,18 @@ AS_CASE([$enable_cogl_debug],
|
||||
|
||||
AC_SUBST(COGL_DEBUG_CFLAGS)
|
||||
|
||||
dnl === Conformance test suite ================================================
|
||||
|
||||
AC_ARG_ENABLE([conformance],
|
||||
[AC_HELP_STRING([--enable-conformance=@<:@no/yes@:>@],
|
||||
[Build conformance test suite @<:@default=yes@:>@])],
|
||||
[],
|
||||
[enable_conformance=yes])
|
||||
|
||||
AM_CONDITIONAL([BUILD_TESTS], [test "x$enable_conformance" = "xyes"])
|
||||
|
||||
dnl === Profiling =============================================================
|
||||
|
||||
m4_define([profile_default], [no])
|
||||
AC_ARG_ENABLE(profile,
|
||||
AC_HELP_STRING([--enable-profile=@<:@no/yes@:>@],
|
||||
@ -953,7 +965,7 @@ echo " Build Additional Documentation: ${enable_docs} (Generate PDF: ${en
|
||||
echo ""
|
||||
echo " • Extra:"
|
||||
echo " Build introspection data: ${enable_introspection}"
|
||||
echo " Build test suite: ${enable_glibtest}"
|
||||
echo " Build conformance test suite: ${enable_conformance}"
|
||||
|
||||
if test "x$have_json" = "xyes"; then
|
||||
echo " JSON-GLib: system"
|
||||
|
@ -1,13 +1,28 @@
|
||||
SUBDIRS = data conform interactive micro-bench tools
|
||||
SUBDIRS = data interactive micro-bench tools
|
||||
|
||||
if BUILD_TESTS
|
||||
SUBDIRS += conform
|
||||
endif
|
||||
|
||||
DIST_SUBDIRS = data conform interactive micro-bench tools
|
||||
|
||||
EXTRA_DIST = README
|
||||
|
||||
.PHONY: test conform
|
||||
if BUILD_TESTS
|
||||
test conform:
|
||||
$(MAKE) -C ./conform test
|
||||
.PHONY: test-report full-report
|
||||
( cd ./conform && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$?
|
||||
|
||||
test-report full-report:
|
||||
$(MAKE) -C ./conform $(@)
|
||||
( cd ./conform && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$?
|
||||
else
|
||||
test conform:
|
||||
@true
|
||||
|
||||
test-report full-report:
|
||||
@true
|
||||
endif # BUILD_TESTS
|
||||
|
||||
.PHONY: test conform test-report full-report
|
||||
|
||||
# run make test as part of make check
|
||||
check-local: test
|
||||
|
Loading…
Reference in New Issue
Block a user