Sha256: 5e75bf716b3ee076bee0d481c4e6aba648b94e0e0b9e46836de7d7e75df8ad36

Contents?: true

Size: 1.25 KB

Versions: 8

Compression:

Stored size: 1.25 KB

Contents

#!/usr/bin/env ruby
#
# Copyright (C) 2016  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

require "rbconfig"

unless system(RbConfig.ruby, "test/unit/run-test.rb", *ARGV)
  exit(false)
end

Dir.glob("#{__dir__}/apps/*") do |test_application|
  env = {
    "BUNDLE_GEMFILE" => "#{test_application}/Gemfile",
  }
  command_line = [
    "bundle",
    "exec",
    RbConfig.ruby,
    "bin/rake",
    "test",
    "TESTOPTS=#{ARGV.join(' ')}",
  ]
  options = {
    :chdir => test_application,
  }
  unless system(env, *command_line, options)
    exit(false)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
groonga-client-rails-0.9.7 test/run-test.rb
groonga-client-rails-0.9.6 test/run-test.rb
groonga-client-rails-0.9.5 test/run-test.rb
groonga-client-rails-0.9.4 test/run-test.rb
groonga-client-rails-0.9.3 test/run-test.rb
groonga-client-rails-0.9.2 test/run-test.rb
groonga-client-rails-0.9.1 test/run-test.rb
groonga-client-rails-0.9.0 test/run-test.rb