iproute/tests/ip-fou-sanity-test/runtest.sh
Susant Sahani d4c9cc3ea7 CI: Add FOU to test.
Sample run
```
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

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

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

:: [ 21:17:51 ] :: [   LOG    ] :: ip fou tests
:: [ 21:17:51 ] :: [   LOG    ] :: ip fou tests
:: [ 21:17:51 ] :: [  BEGIN   ] :: Running '/usr/bin/python3 /usr/bin/ip-fou-tests.py'
test_configure_fou_receive_port_gre (__main__.IPFOUTests)
Configure a FOU receive port for GRE bound to 7777 ... port 7777 ipproto 47
ok
test_configure_fou_receive_port_gue (__main__.IPFOUTests)
Configure a GUE receive port bound to 9999 ... port 9999 gue
ok
test_configure_fou_receive_port_ipip (__main__.IPFOUTests)
Configure a FOU receive port for IPIP bound to 8888 ... port 8888 ipproto 4
ok
test_configure_fou_with_ipip (__main__.IPFOUTests)
IP over UDP tunnel ... port 9000 ipproto 4
ok

----------------------------------------------------------------------
Ran 4 tests in 0.048s

OK
```
2018-07-24 16:48:01 +05:30

36 lines
803 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1+
# ~~~
# runtest.sh of /CoreOS/iproute/Sanity/ip-fou-sanity-test
# Description: Test basic ip address label funcionality
#
# Author: Susant Sahani <susant@redhat.com>
# Copyright (c) 2018 Red Hat, Inc.
#~~~
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="iproute"
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
rlRun "modprobe fou"
rlRun "cp ip-fou-tests.py /usr/bin"
rlPhaseEnd
rlPhaseStartTest
rlLog "ip fou tests"
rlRun "/usr/bin/python3 /usr/bin/ip-fou-tests.py"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "rm /usr/bin/ip-fou-tests.py"
rlLog "ip fou tests done"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd
rlGetTestState