blob: 820c581329a2a7253a063a0c667f85fa1a058969 [file] [log] [blame]
# SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org>
#
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
.PHONY: all test clean
all: test
test: # @HELP run the acceptance tests
test: deps yang-lint
roc-test: # @HELP run the integration tests
roc-test: deps # @HELP run the integration tests
./build/bin/run-roc-test
clean: # @HELP clean up temporary files for ROC umbrella.
rm -rf aether-roc-umbrella/charts aether-roc-umbrella/Chart.lock
deps: # @HELP build dependencies for ROC Umbrella local charts.
deps: clean
helm dep build aether-roc-umbrella
deps-chronos: # @HELP build dependencies for Chronos Umbrella local charts.
deps-chronos: clean
rm -rf chronos-umbrella/Chart.lock chronos-umbrella/charts
helm dep build chronos-umbrella
help:
@grep -E '^.*: *# *@HELP' $(MAKEFILE_LIST) \
| sort \
| awk ' \
BEGIN {FS = ": *# *@HELP"}; \
{printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}; \
'
yang-lint:
#pyang --lint ./config-models/*.x/files/yang/*.yang
pyang --lint ./config-models/aether-1.x/files/yang/*.yang
pyang --lint ./config-models/aether-2.x/files/yang/*.yang
pyang --lint ./config-models/aether-2.1.x/files/yang/*.yang
pyang --lint ./config-models/aether-2.2.x/files/yang/*.yang
pyang --lint ./config-models/aether-3.x/files/yang/*.yang
pyang --lint --lint-ensure-hyphenated-names -W error ./config-models/aether-4.x/files/yang/*.yang -p ./config-models/aether-4.x/files/yang
pyang --lint --lint-ensure-hyphenated-names -W error ./config-models/plproxy-1.x/files/yang/*.yang -p ./config-models/plproxy-1.x/files/yang