Skip to content

Commit

Permalink
Only run the memcached tests when enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Jan 7, 2016
1 parent 8dbf369 commit ec3d0b4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Expand Up @@ -102,7 +102,7 @@ perf: ccache$(EXEEXT)
.PHONY: test
test: ccache$(EXEEXT) test/main$(EXEEXT)
test/main$(EXEEXT)
CC='$(CC)' $(srcdir)/test.sh
CC='$(CC)' @ccache_memcached@$(srcdir)/test.sh

.PHONY: quicktest
quicktest: test/main$(EXEEXT)
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -19,6 +19,7 @@ esac
AC_SUBST(extra_libs)
AC_SUBST(include_dev_mk)
AC_SUBST(test_suites)
AC_SUBST(ccache_memcached)

dnl Checks for programs.
AC_PROG_CC
Expand Down Expand Up @@ -104,6 +105,7 @@ if test x${enable_memcached} != x; then
echo ' please install libmemcached>1.0 with development files'
exit 1
])
ccache_memcached='CCACHE_MEMCACHED=1 '
fi

dnl Check for zlib
Expand Down
11 changes: 8 additions & 3 deletions test.sh
Expand Up @@ -2594,11 +2594,16 @@ cleanup
pch
upgrade
prefix
memcached
memcached_only
memcached_socket !win32
"

if [ ! -z $CCACHE_MEMCACHED ]; then
all_suites="$all_suites
memcached
memcached_only
memcached_socket !win32
"
fi

case $host_os in
*MINGW*|*mingw*)
export CCACHE_DETECT_SHEBANG
Expand Down

0 comments on commit ec3d0b4

Please sign in to comment.