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:
Emmanuele Bassi 2010-01-29 09:26:47 +00:00
parent 7a1ebcbced
commit 5f5f6d825f
2 changed files with 33 additions and 6 deletions

View File

@ -696,6 +696,18 @@ AS_CASE([$enable_cogl_debug],
AC_SUBST(COGL_DEBUG_CFLAGS) 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]) m4_define([profile_default], [no])
AC_ARG_ENABLE(profile, AC_ARG_ENABLE(profile,
AC_HELP_STRING([--enable-profile=@<:@no/yes@:>@], AC_HELP_STRING([--enable-profile=@<:@no/yes@:>@],
@ -953,7 +965,7 @@ echo " Build Additional Documentation: ${enable_docs} (Generate PDF: ${en
echo "" echo ""
echo " • Extra:" echo " • Extra:"
echo " Build introspection data: ${enable_introspection}" 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 if test "x$have_json" = "xyes"; then
echo " JSON-GLib: system" echo " JSON-GLib: system"

View File

@ -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 EXTRA_DIST = README
.PHONY: test conform if BUILD_TESTS
test conform: test conform:
$(MAKE) -C ./conform test ( cd ./conform && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$?
.PHONY: test-report full-report
test-report full-report: 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 # run make test as part of make check
check-local: test check-local: test