From ec47358d23c5fd3ee41d8081f53c25d5f713bcf8 Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Tue, 7 Apr 2009 16:31:04 +0000 Subject: [PATCH] THRIFT-175. Specs in Ruby library should be run during make check This patch makes 'make check' run 'rake spec' in the appropriate scenarios. There is still another bug that will break the build though. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762838 13f79535-47bb-0310-9956-ffa450edef68 --- configure.ac | 3 +++ lib/rb/Makefile.am | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index f512871f..b4c50b4a 100644 --- a/configure.ac +++ b/configure.ac @@ -95,8 +95,11 @@ AM_CONDITIONAL(WITH_PERL, [test -n "$PERL"]) AX_THRIFT_LIB(ruby, [Ruby], yes) if test "$with_ruby" = "yes"; then AC_PATH_PROG([RUBY], [ruby]) + AC_PATH_PROG([RSPEC], [spec]) fi AM_CONDITIONAL(WITH_RUBY, [test -n "$RUBY"]) +AM_CONDITIONAL(HAVE_RSPEC, [test -n "$RSPEC"]) + AC_C_CONST AC_C_INLINE diff --git a/lib/rb/Makefile.am b/lib/rb/Makefile.am index 5ba608c1..3534e277 100644 --- a/lib/rb/Makefile.am +++ b/lib/rb/Makefile.am @@ -40,3 +40,7 @@ clean-local: $$RUBY setup.rb clean check-local: all +if HAVE_RSPEC + rake spec +endif + -- 2.17.1