iproute/tests/ip-address-label-sanity-test/Makefile
Susant Sahani fd68e09fe1 CI: Add ip addrlabel to test
Sample Run

```
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 17:56:55 ] :: [   LOG    ] :: ip address label tests
:: [ 17:56:55 ] :: [   LOG    ] :: ip address label tests
:: [ 17:56:55 ] :: [  BEGIN   ] :: Running '/usr/bin/python3 /usr/bin/ip-address-label-tests.py'
test_add_address_label (__main__.IPAddressLabelTests) ... prefix ::1/128 label 0
prefix ::/96 label 3
prefix ::ffff:0.0.0.0/96 label 4
prefix 2001:6f8:12d8:2::/64 dev if14 label 200
prefix 2001:6f8:900:8cbc::/64 dev if14 label 300
prefix 2001:4dd0:ff00:834::/64 dev if14 label 200
prefix 2a01:238:423d:8800::/64 dev if14 label 300
prefix 2001:4dd0:ff00:834::/64 dev if14 label 200
prefix 2a01:238:423d:8800::/64 dev if14 label 300
prefix 2a01:238:423d:8800::/64 label 300
prefix 2001:4dd0:ff00:834::/64 label 200
prefix 2001:6f8:900:8cbc::/64 label 300
prefix 2001:6f8:12d8:2::/64 label 200
prefix 2001::/32 label 6
prefix 2001:10::/28 label 7
prefix 3ffe::/16 label 12
prefix 2002::/16 label 2
prefix fec0::/10 label 11
prefix fc00::/7 label 5
prefix ::/0 label 1
ok
test_add_address_label_dev (__main__.IPAddressLabelTests) ... prefix ::1/128 label 0
prefix ::/96 label 3
prefix ::ffff:0.0.0.0/96 label 4
prefix 2001:6f8:12d8:2::/64 dev if14 label 200
prefix 2001:6f8:900:8cbc::/64 dev if14 label 300
prefix 2001:4dd0:ff00:834::/64 dev if14 label 200
prefix 2a01:238:423d:8800::/64 dev if14 label 300
prefix 2001:6f8:12d8:2::/64 dev dummy-test label 200
prefix 2001:6f8:900:8cbc::/64 dev dummy-test label 300
prefix 2001:4dd0:ff00:834::/64 dev dummy-test label 200
prefix 2a01:238:423d:8800::/64 dev dummy-test label 300
prefix 2001::/32 label 6
prefix 2001:10::/28 label 7
prefix 3ffe::/16 label 12
prefix 2002::/16 label 2
prefix fec0::/10 label 11
prefix fc00::/7 label 5
prefix ::/0 label 1
ok

----------------------------------------------------------------------
Ran 2 tests in 0.077s

OK
```
2018-07-23 21:12:47 +05:30

48 lines
1.3 KiB
Makefile

#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1+
# ~~~
# runtest.sh of /CoreOS/iproute/Sanity/ip-address-label-sanity-test
# Description: Test basic ip address label funcionality
#
# Author: Susant Sahani <susant@redhat.com>
# Copyright (c) 2018 Red Hat, Inc.
#~~~
export TEST=/CoreOS/iproute/Sanity/ip-address-sanity-test
export TESTVERSION=1.0
BUILT_FILES=
FILES=$(METADATA) runtest.sh Makefile PURPOSE
.PHONY: all install download clean
run: $(FILES) build
./runtest.sh
build: $(BUILT_FILES)
test -x runtest.sh || chmod a+x runtest.sh
clean:
rm -f *~ $(BUILT_FILES)
include /usr/share/rhts/lib/rhts-make.include
$(METADATA): Makefile
@echo "Owner: Susant Sahani <susant@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "Description: Test basic ip address label funcionality" >> $(METADATA)
@echo "Type: Sanity" >> $(METADATA)
@echo "TestTime: 15m" >> $(METADATA)
@echo "RunFor: iproute" >> $(METADATA)
@echo "Requires: iproute" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
rhts-lint $(METADATA)