Sha256: 7406a45aabb5119af5f790822b56b744f0307b300470e6978acc6206029223eb

Contents?: true

Size: 1.46 KB

Versions: 16

Compression:

Stored size: 1.46 KB

Contents

# ==========================================
#   Unity Project - A Test Framework for C
#   Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
#   [Released under MIT License. Please refer to license.txt for details]
# ==========================================

UNITY_ROOT = File.expand_path(File.dirname(__FILE__)) + '/'
$verbose = false

require 'rake'
require 'rake/clean'
require UNITY_ROOT + 'rakefile_helper'

TEMP_DIRS = [
	File.join(UNITY_ROOT, 'build')
]

TEMP_DIRS.each do |dir|
  directory(dir)
  CLOBBER.include(dir)
end

task :prepare_for_tests => TEMP_DIRS

include RakefileHelpers

# Load proper GCC as defult configuration
DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'
configure_toolchain(DEFAULT_CONFIG_FILE)

desc "Test unity with its own unit tests"
task :unit => [:prepare_for_tests] do
  run_tests get_unit_test_files
end

desc "Test unity's helper scripts"
task :scripts => [:prepare_for_tests] do
  Dir['tests/test_*.rb'].each do |scriptfile|
    require "./"+scriptfile
  end
end

desc "Generate test summary"
task :summary do
  report_summary
end

desc "Build and test Unity"
task :all => [:clean, :prepare_for_tests, :scripts, :unit, :summary]
task :default => [:clobber, :all]
task :ci => [:no_color, :default]
task :cruise => [:no_color, :default]

desc "Load configuration"
task :config, :config_file do |t, args|
  configure_toolchain(args[:config_file])
end

task :no_color do
  $colour_output = false
end

task :verbose do
  $verbose = true
end

Version data entries

16 entries across 4 versions & 1 rubygems

Version Path
ceedling-0.25.0 vendor/c_exception/vendor/unity/test/rakefile
ceedling-0.25.0 vendor/unity/test/rakefile
ceedling-0.25.0 vendor/cmock/vendor/unity/test/rakefile
ceedling-0.25.0 vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile
ceedling-0.24.0 vendor/c_exception/vendor/unity/test/rakefile
ceedling-0.24.0 vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile
ceedling-0.24.0 vendor/cmock/vendor/unity/test/rakefile
ceedling-0.24.0 vendor/unity/test/rakefile
ceedling-0.22.0 vendor/unity/test/rakefile
ceedling-0.22.0 vendor/c_exception/vendor/unity/test/rakefile
ceedling-0.22.0 vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile
ceedling-0.22.0 vendor/cmock/vendor/unity/test/rakefile
ceedling-0.21.0 vendor/c_exception/vendor/unity/test/rakefile
ceedling-0.21.0 vendor/unity/test/rakefile
ceedling-0.21.0 vendor/cmock/vendor/unity/test/rakefile
ceedling-0.21.0 vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile