Sha256: f5f5e780d2f6c6212cce4a81eacbae7ddb5310b26fe871310b922f958b2e6a6a

Contents?: true

Size: 1.27 KB

Versions: 7

Compression:

Stored size: 1.27 KB

Contents

require_relative '../tools/freebasic'

# global options shared by all the project in this Rakefile
options = {
  :debug => false,
  :profile => false,
  :errorchecking => :ex,
  :mt => true,
  :pedantic => true
}

options[:debug] = true          if ENV['DEBUG']
options[:profile] = true        if ENV['PROFILE']
options[:errorchecking] = :exx  if ENV['EXX']
options[:pedantic] = false      if ENV['NOPEDANTIC']

project_task :mock_process do
  executable  :mock_process
  build_to    'tests'

  main        'tests/fixtures/mock_process.bas'

  option      options
end 

task "all_tests:build" => ["lib:build"]

project_task :all_tests do
  executable  :all_tests
  build_to    'tests'

  search_path 'src/mongrel_service'
  lib_path    'builds'

  main        'tests/all_tests.bas'

  # this temporally fix the inverse namespace ctors of FB
  source      Dir.glob("tests/test_*.bas").reverse

  library     'testly'

  source      'src/mongrel_service/console_process.bas'

  option      options
end

desc "Run all the internal tests for the library"
task "all_tests:run" => ["mock_process:build", "all_tests:build"] do
  Dir.chdir('tests') do
    sh %{all_tests}
  end
end

desc "Run all the test for this project"
task :test => "all_tests:run"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thin_service-0.0.7 tasks/tests.rake
thin_service-0.0.6 tasks/tests.rake
thin_service-0.0.5 tasks/tests.rake
thin_service-0.0.4 tasks/tests.rake
thin_service-0.0.3 tasks/tests.rake
thin_service-0.0.2 tasks/tests.rake
thin_service-0.0.1 tasks/tests.rake