You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
357 B
8 lines
357 B
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 => [:ignore, :return_thru_ptr], :mock_prefix => mock_prefix, :mock_path => mock_out})
|
|
cmock.setup_mocks(ARGV[0])
|
|
|