Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
[--loglevel {debug,info,warning,error,fatal,critical}]
[--incremental] [--clean-after]
[--compile-targets COMPILE_TARGETS]
[--flash-targets FLASH_TARGETS]
[--test-targets TEST_TARGETS]
[--test-available-targets TEST_AVAILABLE_TARGETS]
[--jobs JOBS]
Expand Down Expand Up @@ -68,6 +69,8 @@
--clean-after Clean after running each test (default: False)
--compile-targets COMPILE_TARGETS
List of make targets to compile (default: clean all)
--flash-targets FLASH_TARGETS
List of make targets to flash (default: flash-only)
--test-targets TEST_TARGETS
List of make targets to run test (default: test)
--test-available-targets TEST_AVAILABLE_TARGETS
Expand Down Expand Up @@ -192,6 +195,7 @@ class RIOTApplication():
MAKEFLAGS = ('RIOT_CI_BUILD=1', 'CC_NOCOLOR=1', '--no-print-directory')

COMPILE_TARGETS = ('clean', 'all',)
FLASH_TARGETS = ('flash-only',)
TEST_TARGETS = ('test',)
TEST_AVAILABLE_TARGETS = ('test/available',)

Expand Down Expand Up @@ -332,7 +336,7 @@ def compilation_and_test(self, clean_after=False, runtest=True,
if runtest:
if has_test:
setuptasks = collections.OrderedDict(
[('flash', ['flash-only'])])
[('flash', self.FLASH_TARGETS)])
self.make_with_outfile('test', self.TEST_TARGETS,
save_output=True, setuptasks=setuptasks)
if clean_after:
Expand Down Expand Up @@ -581,6 +585,9 @@ def _strip_board_equal(board):
PARSER.add_argument('--compile-targets', type=list_from_string,
default=' '.join(RIOTApplication.COMPILE_TARGETS),
help='List of make targets to compile')
PARSER.add_argument('--flash-targets', type=list_from_string,
default=' '.join(RIOTApplication.FLASH_TARGETS),
help='List of make targets to flash')
PARSER.add_argument('--test-targets', type=list_from_string,
default=' '.join(RIOTApplication.TEST_TARGETS),
help='List of make targets to run test')
Expand Down Expand Up @@ -620,6 +627,7 @@ def main():

# Overwrite the compile/test targets from command line arguments
RIOTApplication.COMPILE_TARGETS = args.compile_targets
RIOTApplication.FLASH_TARGETS = args.flash_targets
RIOTApplication.TEST_TARGETS = args.test_targets
RIOTApplication.TEST_AVAILABLE_TARGETS = args.test_available_targets

Expand Down