iproute/tests/ip-address-sanity-test/Makefile

48 lines
1.3 KiB
Makefile
Raw Normal View History

CI: Add ip address sanity tests Snip: ``` iproute-4.15.0-1.fc28.x86_64 :: [ 18:10:39 ] :: [ PASS ] :: Checking for the presence of iproute rpm :: [ 18:10:39 ] :: [ PASS ] :: Checking for the presence of iproute rpm :: [ 18:10:39 ] :: [ LOG ] :: Package versions: :: [ 18:10:39 ] :: [ LOG ] :: Package versions: :: [ 18:10:39 ] :: [ LOG ] :: iproute-4.15.0-1.fc28.x86_64 :: [ 18:10:39 ] :: [ LOG ] :: iproute-4.15.0-1.fc28.x86_64 :: [ 18:10:39 ] :: [ BEGIN ] :: Running 'cp ip-address-tests.py /usr/bin' :: [ 18:10:39 ] :: [ PASS ] :: Command 'cp ip-address-tests.py /usr/bin' (Expected 0, got 0) :: [ 18:10:39 ] :: [ PASS ] :: Command 'cp ip-address-tests.py /usr/bin' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Duration: 0s :: Assertions: 2 good, 0 bad :: Assertions: 2 good, 0 bad :: RESULT: PASS :: RESULT: PASS :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 18:10:39 ] :: [ LOG ] :: ip address tests :: [ 18:10:39 ] :: [ LOG ] :: ip address tests :: [ 18:10:39 ] :: [ BEGIN ] :: Running '/usr/bin/python3 /usr/bin/ip-address-tests.py' test_add_address (__main__.IPAddressTests) ... ok test_add_address_lifetime (__main__.IPAddressTests) ... ok test_add_address_scope (__main__.IPAddressTests) ... ok test_add_broadcast_address_label (__main__.IPAddressTests) ... ok test_add_ipv6_address (__main__.IPAddressTests) ... ok test_del_address (__main__.IPAddressTests) ... ok ---------------------------------------------------------------------- Ran 6 tests in 0.136s OK :: [ 18:10:39 ] :: [ PASS ] :: Command '/usr/bin/python3 /usr/bin/ip-address-tests.py' (Expected 0, got 0) :: [ 18:10:39 ] :: [ PASS ] :: Command '/usr/bin/python3 /usr/bin/ip-address-tests.py' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 1s :: Duration: 1s :: Assertions: 1 good, 0 bad :: Assertions: 1 good, 0 bad :: RESULT: PASS :: RESULT: PASS :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Cleanup :: Cleanup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 18:10:40 ] :: [ BEGIN ] :: Running 'rm /usr/bin/ip-address-tests.py' :: [ 18:10:40 ] :: [ PASS ] :: Command 'rm /usr/bin/ip-address-tests.py' (Expected 0, got 0) :: [ 18:10:40 ] :: [ PASS ] :: Command 'rm /usr/bin/ip-address-tests.py' (Expected 0, got 0) :: [ 18:10:40 ] :: [ LOG ] :: ip address tests done :: [ 18:10:40 ] :: [ LOG ] :: ip address tests done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Duration: 0s :: Assertions: 1 good, 0 bad :: Assertions: 1 good, 0 bad :: RESULT: PASS :: RESULT: PASS ```
2018-06-24 12:41:31 +00:00
#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1+
# ~~~
# runtest.sh of /CoreOS/iproute/Sanity/ip-address-sanity-test
# Description: Test basic ip address 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 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)