Sean Condon | af0eb3c | 2021-09-19 20:14:29 +0100 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org> |
Scott Baker | 6965439 | 2021-09-17 13:50:16 -0700 | [diff] [blame] | 2 | # |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | .PHONY: all test clean |
| 6 | |
Scott Baker | 6965439 | 2021-09-17 13:50:16 -0700 | [diff] [blame] | 7 | all: test |
| 8 | |
Ray Milkey | 35a07f8 | 2021-10-26 15:05:43 -0700 | [diff] [blame] | 9 | test: # @HELP run the acceptance tests |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 10 | test: deps yang-lint |
Ray Milkey | 35a07f8 | 2021-10-26 15:05:43 -0700 | [diff] [blame] | 11 | |
| 12 | roc-test: # @HELP run the integration tests |
| 13 | roc-test: deps # @HELP run the integration tests |
Sean Condon | af0eb3c | 2021-09-19 20:14:29 +0100 | [diff] [blame] | 14 | ./build/bin/run-roc-test |
Scott Baker | 6965439 | 2021-09-17 13:50:16 -0700 | [diff] [blame] | 15 | |
Sean Condon | af0eb3c | 2021-09-19 20:14:29 +0100 | [diff] [blame] | 16 | clean: # @HELP clean up temporary files for ROC umbrella. |
| 17 | rm -rf aether-roc-umbrella/charts aether-roc-umbrella/Chart.lock |
Scott Baker | 6965439 | 2021-09-17 13:50:16 -0700 | [diff] [blame] | 18 | |
Sean Condon | af0eb3c | 2021-09-19 20:14:29 +0100 | [diff] [blame] | 19 | deps: # @HELP build dependencies for ROC Umbrella local charts. |
Scott Baker | 6965439 | 2021-09-17 13:50:16 -0700 | [diff] [blame] | 20 | deps: clean |
Sean Condon | af0eb3c | 2021-09-19 20:14:29 +0100 | [diff] [blame] | 21 | helm dep build aether-roc-umbrella |
Scott Baker | 6965439 | 2021-09-17 13:50:16 -0700 | [diff] [blame] | 22 | |
| 23 | help: |
| 24 | @grep -E '^.*: *# *@HELP' $(MAKEFILE_LIST) \ |
| 25 | | sort \ |
| 26 | | awk ' \ |
| 27 | BEGIN {FS = ": *# *@HELP"}; \ |
| 28 | {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}; \ |
| 29 | ' |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 30 | |
| 31 | yang-lint: |
| 32 | #pyang --lint ./config-models/*.x/files/yang/*.yang |
| 33 | pyang --lint ./config-models/aether-1.x/files/yang/*.yang |
| 34 | pyang --lint ./config-models/aether-2.x/files/yang/*.yang |
| 35 | pyang --lint ./config-models/aether-2.1.x/files/yang/*.yang |
| 36 | pyang --lint ./config-models/aether-2.2.x/files/yang/*.yang |
| 37 | pyang --lint ./config-models/aether-3.x/files/yang/*.yang |
PUSHP RAJ | e7e8d4f | 2021-11-22 12:10:45 +0000 | [diff] [blame] | 38 | pyang --lint --lint-ensure-hyphenated-names -W error ./config-models/aether-4.x/files/yang/*.yang -p ./config-models/aether-4.x/files/yang |
| 39 | pyang --lint --lint-ensure-hyphenated-names -W error ./config-models/plproxy-1.x/files/yang/*.yang -p ./config-models/plproxy-1.x/files/yang |