Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/cJSON/blob/master/tests/unity/extras/fixture/rakefile.rb # cJSON [Ported from github.com/DaveGamble/cJSON] Fix: heap-use-after-free in merge_patch when patch is subtree of target (#1065) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `cJSON / tests / unity / extras / fixture / rakefile.rb` 48 lines ยท 1109 bytes Raw Blame History 1 # ========================================== 2 # Unity Project - A Test Framework for C 3 # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams 4 # [Released under MIT License. Please refer to license.txt for details] 5 # ========================================== 6 7 HERE = File.expand_path(File.dirname(__FILE__)) + '/' 8 9 require 'rake' 10 require 'rake/clean' 11 require 'rake/testtask' 12 require HERE + 'rakefile_helper' 13 14 TEMP_DIRS = [ 15 File.join(HERE, 'build') 16 ].freeze 17 18 TEMP_DIRS.each do |dir| 19 directory(dir) 20 CLOBBER.include(dir) 21 end 22 23 task prepare_for_tests: TEMP_DIRS 24 25 include RakefileHelpers 26 27 # Load default configuration, for now 28 DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'.freeze 29 configure_toolchain(DEFAULT_CONFIG_FILE) 30 31 task unit: [:prepare_for_tests] do 32 run_tests 33 end 34 35 desc 'Build and test Unity Framework' 36 task all: %i(clean unit) 37 task default: %i(clobber all) 38 task ci: %i(no_color default) 39 task cruise: %i(no_color default) 40 41 desc 'Load configuration' 42 task :config, :config_file do |_t, args| 43 configure_toolchain(args[:config_file]) 44 end 45 46 task :no_color do 47 $colour_output = false 48 end