tinyusb/tests/vendor/ceedling/lib/rules_cmock.rake
hathach bc735bbe22 - add ceedling/cmock/unity as testing framework and support
- unified makefile project for the whole repos
- new separate project for tests
2012-12-27 02:52:40 +07:00

10 lines
249 B
Ruby

rule(/#{CMOCK_MOCK_PREFIX}.+#{'\\'+EXTENSION_SOURCE}$/ => [
proc do |task_name|
@ceedling[:file_finder].find_header_input_for_mock_file(task_name)
end
]) do |mock|
@ceedling[:generator].generate_mock(TEST_SYM, mock.source)
end