THRIFT-175. Specs in Ruby library should be run during make check
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 7 Apr 2009 16:31:04 +0000 (16:31 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 7 Apr 2009 16:31:04 +0000 (16:31 +0000)
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
lib/rb/Makefile.am

index f512871..b4c50b4 100644 (file)
@@ -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
index 5ba608c..3534e27 100644 (file)
@@ -40,3 +40,7 @@ clean-local:
        $$RUBY setup.rb clean
 
 check-local: all
+if HAVE_RSPEC
+       rake spec
+endif
+