-
Notifications
You must be signed in to change notification settings - Fork 10
/
Rakefile
45 lines (37 loc) · 896 Bytes
/
Rakefile
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
require "rubygems"
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rbconfig'
include RbConfig
CLEAN.include('**/*.gem', '**/*.rbc', '**/*.log')
namespace :example do
desc 'Run the fork + wait example'
task :fork_wait do
sh "ruby -Ilib examples/example_fork_wait.rb"
end
desc 'Run the fork + waitpid example'
task :fork_waitpid do
sh "ruby -Ilib examples/example_fork_waitpid.rb"
end
desc 'Run the kill example'
task :kill do
sh "ruby -Ilib examples/example_kill.rb"
end
desc 'Run the create example'
task :create do
sh "ruby -Ilib examples/example_create.rb"
end
end
namespace :test do
Rake::TestTask.new(:kill) do |t|
t.verbose = true
t.warning = true
t.test_files = FileList['test/test_win32_process_kill.rb']
end
end
Rake::TestTask.new do |t|
t.verbose = true
t.warning = true
end
task :default => :test