diff options
Diffstat (limited to 'Library/Homebrew/test/Rakefile')
| -rw-r--r-- | Library/Homebrew/test/Rakefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Homebrew/test/Rakefile b/Library/Homebrew/test/Rakefile new file mode 100644 index 000000000..cf3000b9b --- /dev/null +++ b/Library/Homebrew/test/Rakefile @@ -0,0 +1,23 @@ +require 'rake' +require 'rake/testtask' + +Dir.chdir File.expand_path(File.dirname(__FILE__)) + +TEST_FILES = FileList['test_*.rb'] + +task :default => :test + +Rake::TestTask.new :test do |t| + t.libs << Dir.pwd + t.test_files = TEST_FILES +end + +namespace :test do + TEST_FILES.each do |file| + task = /test_(.+)\.rb/.match(file) + Rake::TestTask.new(task[1]) do |t| + t.libs << Dir.pwd + t.pattern = task[0] + end + end +end |
