FRDM K64F Metronome

Committer:
ram54288
Date:
Sun May 14 18:37:05 2017 +0000
Revision:
0:dbad57390bd1
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ram54288 0:dbad57390bd1 1 HERE = File.expand_path(File.dirname(__FILE__)) + '/'
ram54288 0:dbad57390bd1 2 UNITY_ROOT = File.expand_path(File.dirname(__FILE__)) + '/../..'
ram54288 0:dbad57390bd1 3
ram54288 0:dbad57390bd1 4 require 'rake'
ram54288 0:dbad57390bd1 5 require 'rake/clean'
ram54288 0:dbad57390bd1 6 require HERE+'rakefile_helper'
ram54288 0:dbad57390bd1 7
ram54288 0:dbad57390bd1 8 TEMP_DIRS = [
ram54288 0:dbad57390bd1 9 File.join(HERE, 'build')
ram54288 0:dbad57390bd1 10 ]
ram54288 0:dbad57390bd1 11
ram54288 0:dbad57390bd1 12 TEMP_DIRS.each do |dir|
ram54288 0:dbad57390bd1 13 directory(dir)
ram54288 0:dbad57390bd1 14 CLOBBER.include(dir)
ram54288 0:dbad57390bd1 15 end
ram54288 0:dbad57390bd1 16
ram54288 0:dbad57390bd1 17 task :prepare_for_tests => TEMP_DIRS
ram54288 0:dbad57390bd1 18
ram54288 0:dbad57390bd1 19 include RakefileHelpers
ram54288 0:dbad57390bd1 20
ram54288 0:dbad57390bd1 21 # Load default configuration, for now
ram54288 0:dbad57390bd1 22 DEFAULT_CONFIG_FILE = 'target_gcc_32.yml'
ram54288 0:dbad57390bd1 23 configure_toolchain(DEFAULT_CONFIG_FILE)
ram54288 0:dbad57390bd1 24
ram54288 0:dbad57390bd1 25 task :unit => [:prepare_for_tests] do
ram54288 0:dbad57390bd1 26 run_tests get_unit_test_files
ram54288 0:dbad57390bd1 27 end
ram54288 0:dbad57390bd1 28
ram54288 0:dbad57390bd1 29 desc "Generate test summary"
ram54288 0:dbad57390bd1 30 task :summary do
ram54288 0:dbad57390bd1 31 report_summary
ram54288 0:dbad57390bd1 32 end
ram54288 0:dbad57390bd1 33
ram54288 0:dbad57390bd1 34 desc "Build and test Unity"
ram54288 0:dbad57390bd1 35 task :all => [:clean, :unit, :summary]
ram54288 0:dbad57390bd1 36 task :default => [:clobber, :all]
ram54288 0:dbad57390bd1 37 task :ci => [:default]
ram54288 0:dbad57390bd1 38 task :cruise => [:default]
ram54288 0:dbad57390bd1 39
ram54288 0:dbad57390bd1 40 desc "Load configuration"
ram54288 0:dbad57390bd1 41 task :config, :config_file do |t, args|
ram54288 0:dbad57390bd1 42 configure_toolchain(args[:config_file])
ram54288 0:dbad57390bd1 43 end