File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -147,15 +147,19 @@ def platform_definition(platform_name)
147
147
deep_clone ( defn )
148
148
end
149
149
150
+ # the URL that gives the download info for a given package (a JSON file).
151
+ # this is NOT where the package comes from.
150
152
def package_url ( package )
151
153
return nil if @package_info [ package ] . nil?
152
154
@package_info [ package ] [ :url ]
153
155
end
154
156
157
+ # platforms to build [the examples on]
155
158
def platforms_to_build
156
159
@compile_info [ :platforms ]
157
160
end
158
161
162
+ # platforms to unit test [the tests on]
159
163
def platforms_to_unittest
160
164
@unittest_info [ :platforms ]
161
165
end
Original file line number Diff line number Diff line change @@ -23,31 +23,38 @@ def cpp_files_in(some_dir)
23
23
Find . find ( some_dir ) . select { |path | CPP_EXTENSIONS . include? ( File . extname ( path ) ) }
24
24
end
25
25
26
+ # CPP files that are part of the project library under test
26
27
def cpp_files
27
28
cpp_files_in ( @base_dir ) . reject { |p | p . start_with? ( tests_dir ) }
28
29
end
29
30
31
+ # CPP files that are part of the arduino mock library we're providing
30
32
def cpp_files_arduino
31
33
cpp_files_in ( ARDUINO_HEADER_DIR )
32
34
end
33
35
36
+ # CPP files that are part of the unit test library we're providing
34
37
def cpp_files_unittest
35
38
cpp_files_in ( UNITTEST_HEADER_DIR )
36
39
end
37
40
41
+ # The directory where we expect to find unit test defintions provided by the user
38
42
def tests_dir
39
43
File . join ( @base_dir , "test" )
40
44
end
41
45
46
+ # The files provided by the user that contain unit tests
42
47
def test_files
43
48
cpp_files_in ( tests_dir )
44
49
end
45
50
51
+ # Find all directories in the project library that include C++ header files
46
52
def header_dirs
47
53
files = Find . find ( @base_dir ) . select { |path | HPP_EXTENSIONS . include? ( File . extname ( path ) ) }
48
54
files . map { |path | File . dirname ( path ) } . uniq
49
55
end
50
56
57
+ # wrapper for the GCC command
51
58
def run_gcc ( *args , **kwargs )
52
59
# TODO: detect env!!
53
60
full_args = [ "g++" ] + args
You can’t perform that action at this time.
0 commit comments