From 14adc6a1d769e22958496d570b7f25b68cc86969 Mon Sep 17 00:00:00 2001 From: benj Date: Fri, 16 Jun 2017 01:20:02 -0700 Subject: add unity testing fmwk and simple hash fn demonstration --- external/Unity/extras/fixture/rakefile.rb | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 external/Unity/extras/fixture/rakefile.rb (limited to 'external/Unity/extras/fixture/rakefile.rb') diff --git a/external/Unity/extras/fixture/rakefile.rb b/external/Unity/extras/fixture/rakefile.rb new file mode 100644 index 0000000..7603e57 --- /dev/null +++ b/external/Unity/extras/fixture/rakefile.rb @@ -0,0 +1,48 @@ +# ========================================== +# 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] +# ========================================== + +HERE = File.expand_path(File.dirname(__FILE__)) + '/' + +require 'rake' +require 'rake/clean' +require 'rake/testtask' +require HERE + 'rakefile_helper' + +TEMP_DIRS = [ + File.join(HERE, 'build') +].freeze + +TEMP_DIRS.each do |dir| + directory(dir) + CLOBBER.include(dir) +end + +task prepare_for_tests: TEMP_DIRS + +include RakefileHelpers + +# Load default configuration, for now +DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'.freeze +configure_toolchain(DEFAULT_CONFIG_FILE) + +task unit: [:prepare_for_tests] do + run_tests +end + +desc 'Build and test Unity Framework' +task all: %i(clean unit) +task default: %i(clobber all) +task ci: %i(no_color default) +task cruise: %i(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 -- cgit v1.2.3