From: Bryan Duxbury Date: Tue, 7 Apr 2009 16:31:04 +0000 (+0000) Subject: THRIFT-175. Specs in Ruby library should be run during make check X-Git-Tag: 0.2.0~157 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=ec47358d23c5fd3ee41d8081f53c25d5f713bcf8;p=common%2Fthrift.git 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 --- 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 +