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 | |
Sean Condon | b0769e6 | 2021-12-21 09:57:29 +0000 | [diff] [blame] | 23 | deps-chronos: # @HELP build dependencies for Chronos Umbrella local charts. |
| 24 | deps-chronos: clean |
| 25 | rm -rf chronos-umbrella/Chart.lock chronos-umbrella/charts |
| 26 | helm dep build chronos-umbrella |
| 27 | |
Scott Baker | 6965439 | 2021-09-17 13:50:16 -0700 | [diff] [blame] | 28 | help: |
| 29 | @grep -E '^.*: *# *@HELP' $(MAKEFILE_LIST) \ |
| 30 | | sort \ |
| 31 | | awk ' \ |
| 32 | BEGIN {FS = ": *# *@HELP"}; \ |
| 33 | {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}; \ |
| 34 | ' |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 35 | |
Ray Milkey | edba246 | 2021-12-30 10:59:09 -0800 | [diff] [blame^] | 36 | pyang: |
| 37 | pyang -v || pip install pyang |
| 38 | |
| 39 | yang-lint: pyang |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 40 | #pyang --lint ./config-models/*.x/files/yang/*.yang |
| 41 | pyang --lint ./config-models/aether-1.x/files/yang/*.yang |
| 42 | pyang --lint ./config-models/aether-2.x/files/yang/*.yang |
| 43 | pyang --lint ./config-models/aether-2.1.x/files/yang/*.yang |
| 44 | pyang --lint ./config-models/aether-2.2.x/files/yang/*.yang |
| 45 | pyang --lint ./config-models/aether-3.x/files/yang/*.yang |
PUSHP RAJ | e7e8d4f | 2021-11-22 12:10:45 +0000 | [diff] [blame] | 46 | pyang --lint --lint-ensure-hyphenated-names -W error ./config-models/aether-4.x/files/yang/*.yang -p ./config-models/aether-4.x/files/yang |
| 47 | pyang --lint --lint-ensure-hyphenated-names -W error ./config-models/plproxy-1.x/files/yang/*.yang -p ./config-models/plproxy-1.x/files/yang |