Class: TestInvokerHelper

Inherits:
Object show all
Defined in:
lib/ceedling/test_invoker_helper.rb

Instance Method Summary collapse

Instance Method Details

#clean_results(results, options) ⇒ Object



6
7
8
9
# File 'lib/ceedling/test_invoker_helper.rb', line 6

def clean_results(results, options)
  @file_wrapper.rm_f( results[:fail] )
  @file_wrapper.rm_f( results[:pass] ) if (options[:force_run])
end

#extract_sources(test) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/ceedling/test_invoker_helper.rb', line 23

def extract_sources(test)
  sources  = []
  includes = @test_includes_extractor.lookup_includes_list(test)
  
  includes.each { |include| sources << @file_finder.find_compilation_input_file(include, :ignore) }
  
  return sources.compact
end

#process_deep_dependencies(files) {|dependencies_list| ... } ⇒ Object

Yields:

  • (dependencies_list)


11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ceedling/test_invoker_helper.rb', line 11

def process_deep_dependencies(files)
  return if (not @configurator.project_use_deep_dependencies)

  dependencies_list = @file_path_utils.form_test_dependencies_filelist( files ).uniq

  if @configurator.project_generate_deep_dependencies
    @task_invoker.invoke_test_dependencies_files( dependencies_list )
  end

  yield( dependencies_list ) if block_given?
end