aboutsummaryrefslogtreecommitdiff
path: root/external/Unity/extras/fixture/rakefile.rb
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2017-06-16 01:20:02 -0700
committerbenj <benj@rse8.com>2017-06-16 01:20:02 -0700
commit14adc6a1d769e22958496d570b7f25b68cc86969 (patch)
tree6754de138c6d59bbfce8d5a3b732891d5a5e220b /external/Unity/extras/fixture/rakefile.rb
parentdee453b6473354786871a9b0b123d676ef1eb5cc (diff)
downloadworkbench-14adc6a1d769e22958496d570b7f25b68cc86969.tar
workbench-14adc6a1d769e22958496d570b7f25b68cc86969.tar.gz
workbench-14adc6a1d769e22958496d570b7f25b68cc86969.tar.bz2
workbench-14adc6a1d769e22958496d570b7f25b68cc86969.tar.lz
workbench-14adc6a1d769e22958496d570b7f25b68cc86969.tar.xz
workbench-14adc6a1d769e22958496d570b7f25b68cc86969.tar.zst
workbench-14adc6a1d769e22958496d570b7f25b68cc86969.zip
add unity testing fmwk and simple hash fn demonstrationHEADmaster
Diffstat (limited to 'external/Unity/extras/fixture/rakefile.rb')
-rw-r--r--external/Unity/extras/fixture/rakefile.rb48
1 files changed, 48 insertions, 0 deletions
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