[修改] 增加freeRTOS
1. 版本FreeRTOSv202212.01,命名为kernel;
This commit is contained in:
8
kernel/FreeRTOS-Plus/Test/CMock/scripts/create_mock.rb
Normal file
8
kernel/FreeRTOS-Plus/Test/CMock/scripts/create_mock.rb
Normal file
@ -0,0 +1,8 @@
|
||||
require "#{ENV['CMOCK_DIR']}/lib/cmock"
|
||||
|
||||
raise 'Header file to mock must be specified!' unless ARGV.length >= 1
|
||||
|
||||
mock_out = ENV.fetch('MOCK_OUT', './build/test/mocks')
|
||||
mock_prefix = ENV.fetch('MOCK_PREFIX', 'mock_')
|
||||
cmock = CMock.new(:plugins => %i[ignore return_thru_ptr], :mock_prefix => mock_prefix, :mock_path => mock_out)
|
||||
cmock.setup_mocks(ARGV[0])
|
||||
Reference in New Issue
Block a user