blob: f785a239e02855cfa7f59a1697340c1bb10156e3 [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
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 ./config-models/aether-4.x/files/yang/*.yang
pyang --lint ./config-models/plproxy-1.x/files/yang/*.yang