1 2 3 4 5 6 7 8 9 10 11 12
require 'rake/testtask' # TEST TASK test_task_name = HAVE_EXT ? :test_ext : :test Rake::TestTask.new( test_task_name ) do |t| t.libs = REQUIRE_PATHS t.test_files = TEST_FILES t.verbose = false end task :test_ext => :make_ext if HAVE_EXT