-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile.in
61 lines (52 loc) · 1.52 KB
/
Rakefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Rakefile for RushCheck
# Do NOT edit Rakefile but edit Rakefile.in!
#
require 'rubygems'
require 'rake'
require 'rake/gempackagetask'
RUSHCHECK_VERSION="@VERSION@"
task :default => ["dist", "gem"]
task :dist do
system "darcs push -a"
system "darcs dist -d rushcheck-#{RUSHCHECK_VERSION}"
system "mv rushcheck-#{RUSHCHECK_VERSION}.tar.gz pkg/"
end
spec = Gem::Specification.new do |s|
s.name = 'rushcheck'
s.summary = "A lightweight random testing tool"
s.version = RUSHCHECK_VERSION
s.author = 'Daisuke IKEGAMI'
s.email = 'ikegami@madscientist.jp'
s.homepage = 'http://rushcheck.rubyforge.org'
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
# s.test_file =
s.require_path = 'lib'
s.autorequire = 'rushcheck'
s.bindir = 'bin'
# s.executable =
# s.extra_rdoc_files =
s.files = FileList['lib/**/*', 'data/**/**/*',
'[A-Z]*', 'copying.txt'].to_a
s.description = <<-EOF
RushCheck is a random testing tool which is one of implementations
of QuichCheck in Haskell.
EOF
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
task :rdoc do
Dir.chdir('./lib') do
system ['rdoc', '-o', '../data/rushcheck/rdoc'].join(' ')
end
end
task :test_all => Dir.glob("test/spec_*.rb") do |t|
Dir.chdir('./test') do
specs = t.prerequisites.map {|f| File.basename f}
specs.each do |spec|
raise RuntimeError, "a test is failed" unless system ['spec', spec, '-f', 's', '-c', '-b'].join(' ')
end
end
end