-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package/test-mode: rename to confd-test-mode
Declare that confd-test-mode depends on confd, otherwise with 'select', a call to `make update-defconfig` will remove BR2_PACKAGE_CONFD=y, which we feel is very confusing -- in particular when comparing any defconfig that does not have test-mode package. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
- Loading branch information
Showing
11 changed files
with
53 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
config BR2_PACKAGE_CONFD_TEST_MODE | ||
bool "confd test mode" | ||
depends on BR2_PACKAGE_CONFD | ||
select BR2_PACKAGE_LIBITE | ||
select BR2_PACKAGE_LIBYANG | ||
select BR2_PACKAGE_SYSREPO | ||
select BR2_PACKAGE_LIBSRX | ||
help | ||
A companion plugin to confd providing functionality required to | ||
run tests with Infamy, i.e., enable Infix test mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
CONFD_TEST_MODE_VERSION = 1.0 | ||
CONFD_TEST_MODE_SITE_METHOD = local | ||
CONFD_TEST_MODE_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/test-mode | ||
CONFD_TEST_MODE_LICENSE = BSD-3-Clause | ||
CONFD_TEST_MODE_LICENSE_FILES = LICENSE | ||
CONFD_TEST_MODE_REDISTRIBUTE = NO | ||
CONFD_TEST_MODE_DEPENDENCIES = sysrepo libite libyang confd | ||
CONFD_TEST_MODE_AUTORECONF = YES | ||
CONFD_TEST_MODE_SYSREPO_SHM_PREFIX = sr_buildroot$(subst /,_,$(CONFIG_DIR))_test_mode | ||
|
||
COMMON_SYSREPO_ENV = \ | ||
SYSREPO_SHM_PREFIX=$(CONFD_SYSREPO_SHM_PREFIX) \ | ||
SYSREPOCTL_EXECUTABLE="$(HOST_DIR)/bin/sysrepoctl" \ | ||
SYSREPOCFG_EXECUTABLE="$(HOST_DIR)/bin/sysrepocfg" \ | ||
SEARCH_PATH="$(TARGET_DIR)/usr/share/yang/modules/confd/" | ||
|
||
define CONFD_TEST_MODE_INSTALL_YANG_MODULES | ||
$(COMMON_SYSREPO_ENV) \ | ||
SEARCH_PATH="$(TARGET_DIR)/usr/share/yang/modules/test-mode/" $(BR2_EXTERNAL_INFIX_PATH)/utils/sysrepo-load-modules.sh $(@D)/yang/test-mode.inc | ||
endef | ||
define CONFD_TEST_MODE_PERMISSIONS | ||
/etc/sysrepo/data/ r 660 root wheel - - - - - | ||
/etc/sysrepo/data d 770 root wheel - - - - - | ||
endef | ||
define CONFD_TEST_MODE_CLEANUP | ||
rm -f /dev/shm/$(CONFD_TEST_MODE_SYSREPO_SHM_PREFIX)* | ||
endef | ||
|
||
CONFD_TEST_MODE_PRE_INSTALL_TARGET_HOOKS += CONFD_TEST_MODE_CLEANUP | ||
CONFD_TEST_MODE_POST_INSTALL_TARGET_HOOKS += CONFD_TEST_MODE_INSTALL_YANG_MODULES | ||
|
||
$(eval $(autotools-package)) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.