Also rewrite the test task to properly abort Rake if it fails
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668984
13f79535-47bb-0310-9956-
ffa450edef68
end
task :test do
- fork do
- exec 'make', '-C', File.dirname(__FILE__) + "/../../test/rb"
- end
- Process.wait
+ sh 'make', '-C', File.dirname(__FILE__) + "/../../test/rb"
+end
+
+task :'gen-rb' do
+ thrift = '../../compiler/cpp/thrift'
+ dir = File.dirname(__FILE__) + '/spec'
+ sh thrift, '--gen', 'rb', '-o', dir, "#{dir}/ThriftSpec.thrift"
end