summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorTom Black <[email protected]>2017-03-08 00:07:47 -0500
committerTom Black <[email protected]>2017-03-08 00:07:47 -0500
commitc335134054955f0f948f3ccad7edee349c1aecf2 (patch)
tree175c1c20e13a67b7239228146063bb4076862688 /Rakefile
parent95a9f3b838b47a3507926408f4abe552b6ef8574 (diff)
downloadruby2d-c335134054955f0f948f3ccad7edee349c1aecf2.tar.gz
ruby2d-c335134054955f0f948f3ccad7edee349c1aecf2.zip
Rakefile cleanup
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Rakefile b/Rakefile
index 8cdb143..58e48c8 100644
--- a/Rakefile
+++ b/Rakefile
@@ -30,20 +30,19 @@ def run_cmd(cmd)
system cmd
end
-def run_test(file)
- print_task "Running test/#{file}.rb"
+def run_mri_test(file)
+ print_task "Running MRI test: #{file}.rb"
system "( cd test/ ; ruby #{file}.rb )"
end
def run_native_test(file)
print_task "Running native test: #{file}.rb"
run_cmd "ruby2d build --native test/#{file}.rb --debug"
- print_task "Running native test/#{file}.rb"
system "( cd test/ ; ../build/app )"
end
def run_web_test(file)
- print_task "Running web build test"
+ print_task "Running web test: #{file}.rb"
run_cmd "ruby2d build --web test/#{file}.rb --debug"
open_cmd = 'open'
if RUBY_PLATFORM =~ /linux/ then open_cmd = "xdg-#{open_cmd}" end
@@ -79,10 +78,10 @@ RSpec::Core::RakeTask.new do |t|
end
namespace :test do
- desc "Run test"
+ desc "Run MRI test"
task :mri do
get_args
- run_test ARGV[1]
+ run_mri_test ARGV[1]
end
desc "Run native test"