diff options
| author | Tom Black <[email protected]> | 2017-03-08 00:07:47 -0500 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2017-03-08 00:07:47 -0500 |
| commit | c335134054955f0f948f3ccad7edee349c1aecf2 (patch) | |
| tree | 175c1c20e13a67b7239228146063bb4076862688 | |
| parent | 95a9f3b838b47a3507926408f4abe552b6ef8574 (diff) | |
| download | ruby2d-c335134054955f0f948f3ccad7edee349c1aecf2.tar.gz ruby2d-c335134054955f0f948f3ccad7edee349c1aecf2.zip | |
Rakefile cleanup
| -rw-r--r-- | Rakefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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" |
