Changeset 4

Show
Ignore:
Timestamp:
01/01/08 22:32:37 (16 years ago)
Author:
ujihisa
Message:

test/test.rb: import
test/Rakefile: fix

Location:
test
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • test/Rakefile

    r3 r4  
    1 task :default do 
    2   sh 'gosh test.scm' 
    3   sh 'runghc test.hs' 
     1task :default => :run_all 
     2 
     3desc '' 
     4task :run_all do 
     5  { 
     6    'hs'  => 'runghc', 
     7    'scm' => 'gosh', 
     8    'rb'  => 'ruby', 
     9    'pl'  => 'perl' 
     10  }.each do |ext, command| 
     11    FileList["*.#{ext}"].each do |f| 
     12      sh "/usr/bin/env #{command} #{f}" 
     13      puts 
     14    end 
     15  end 
    416end