Skip to content

Commit

Permalink
congure_test: initial import of CongURE test framework
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Feb 8, 2021
1 parent fbc43ae commit 244d770
Show file tree
Hide file tree
Showing 8 changed files with 722 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ ifneq (,$(filter congure_%,$(USEMODULE)))
USEMODULE += congure
endif

ifneq (,$(filter congure_test,$(USEMODULE)))
USEMODULE += fmt
endif

ifneq (,$(filter eepreg,$(USEMODULE)))
FEATURES_REQUIRED += periph_eeprom
endif
Expand Down
2 changes: 2 additions & 0 deletions sys/congure/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
menu "CongURE congestion control abstraction"
depends on USEMODULE_CONGURE

rsource "test/Kconfig"

endmenu # CongURE congestion control abstraction
4 changes: 4 additions & 0 deletions sys/congure/Makefile
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
ifneq (,$(filter congure_test,$(USEMODULE)))
DIRS += test
endif

include $(RIOTBASE)/Makefile.base
21 changes: 21 additions & 0 deletions sys/congure/test/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2021 Freie Universität Berlin
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.

menuconfig KCONFIG_USEMODULE_CONGURE_TEST
bool "Configure CongURE test framework"
depends on USEMODULE_CONGURE_TEST
help
Configure CongURE test framework via Kconfig.

if KCONFIG_USEMODULE_CONGURE_TEST
config CONGURE_TEST_LOST_MSG_POOL_SIZE
int "Pool size for the list elements for a lost message report"
default 4
help
@see congure_snd_driver_t::report_msg_lost
This defines the maximum number of 3-tuples you can use with
@ref congure_test_call_report() when argv[1] is msg_lost.
endif # KCONFIG_USEMODULE_CONGURE_RENO
3 changes: 3 additions & 0 deletions sys/congure/test/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MODULE := congure_test

include $(RIOTBASE)/Makefile.base
Loading

0 comments on commit 244d770

Please sign in to comment.