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/examples/example_3/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 / examples / example_3 / rakefile.rb` 43 lines ยท 884 bytes Raw Blame History 1 HERE = File.expand_path(File.dirname(__FILE__)) + '/' 2 UNITY_ROOT = File.expand_path(File.dirname(__FILE__)) + '/../..' 3 4 require 'rake' 5 require 'rake/clean' 6 require HERE + 'rakefile_helper' 7 8 TEMP_DIRS = [ 9 File.join(HERE, 'build') 10 ].freeze 11 12 TEMP_DIRS.each do |dir| 13 directory(dir) 14 CLOBBER.include(dir) 15 end 16 17 task prepare_for_tests: TEMP_DIRS 18 19 include RakefileHelpers 20 21 # Load default configuration, for now 22 DEFAULT_CONFIG_FILE = 'target_gcc_32.yml'.freeze 23 configure_toolchain(DEFAULT_CONFIG_FILE) 24 25 task unit: [:prepare_for_tests] do 26 run_tests unit_test_files 27 end 28 29 desc 'Generate test summary' 30 task :summary do 31 report_summary 32 end 33 34 desc 'Build and test Unity' 35 task all: %i(clean unit summary) 36 task default: %i(clobber all) 37 task ci: [:default] 38 task cruise: [:default] 39 40 desc 'Load configuration' 41 task :config, :config_file do |_t, args| 42 configure_toolchain(args[:config_file]) 43 end