Blame SOURCES/0390-TEST-50-MULTINIC-add-multiple-bond-tests.patch

a0a3b4
From 0b7c2400c328f9b437061f885853fb83d3f44155 Mon Sep 17 00:00:00 2001
a0a3b4
From: Harald Hoyer <harald@redhat.com>
a0a3b4
Date: Wed, 22 Jun 2016 14:03:12 +0200
a0a3b4
Subject: [PATCH] TEST-50-MULTINIC: add multiple bond tests
a0a3b4
a0a3b4
---
a0a3b4
 test/TEST-50-MULTINIC/test.sh | 15 ++++++++++++++-
a0a3b4
 1 file changed, 14 insertions(+), 1 deletion(-)
a0a3b4
a0a3b4
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
a0a3b4
index 1c46d7a..c0c3615 100755
a0a3b4
--- a/test/TEST-50-MULTINIC/test.sh
a0a3b4
+++ b/test/TEST-50-MULTINIC/test.sh
a0a3b4
@@ -58,7 +58,7 @@ client_test() {
a0a3b4
         -net nic,macaddr=52:54:00:12:34:$mac3,model=e1000 \
a0a3b4
         -watchdog i6300esb -watchdog-action poweroff \
a0a3b4
         -kernel /boot/vmlinuz-"$KVERSION" \
a0a3b4
-        -append "$cmdline $DEBUGFAIL rd.retry=5 ro console=ttyS0,115200n81 selinux=0 init=/sbin/init rd.debug systemd.log_target=console loglevel=7" \
a0a3b4
+        -append "$cmdline $DEBUGFAIL rd.retry=5 rw console=ttyS0,115200n81 selinux=0 init=/sbin/init rd.debug systemd.log_target=console loglevel=7" \
a0a3b4
         -initrd "$TESTDIR"/initramfs.testing
a0a3b4
 
a0a3b4
     { read OK; read IFACES; } < "$TESTDIR"/client.img
a0a3b4
@@ -102,6 +102,7 @@ test_client() {
a0a3b4
     # ...:00-02 receive IP adresses all others don't
a0a3b4
     # ...:02 receives a dhcp root-path
a0a3b4
 
a0a3b4
+    # Require three interfaces with dhcp root-path
a0a3b4
     # PXE Style BOOTIF=
a0a3b4
     client_test "MULTINIC root=nfs BOOTIF=" \
a0a3b4
         00 01 02 \
a0a3b4
@@ -137,6 +138,18 @@ test_client() {
a0a3b4
         "root=dhcp ip=ens3:dhcp ip=ens4:dhcp ip=ens5:dhcp bootdev=ens5" \
a0a3b4
         "ens3 ens4 ens5" || return 1
a0a3b4
 
a0a3b4
+    # bonding test
a0a3b4
+    client_test "MULTINIC root=dhcp rd.neednet=1 bond=bond0:ens3,ens4 ip=bond0:dhcp ip=ens5:dhcp bootdev=ens5" \
a0a3b4
+        00 01 02 \
a0a3b4
+        "root=dhcp rd.neednet=1 bond=bond0:ens3,ens4 ip=bond0:dhcp ip=ens5:dhcp bootdev=ens5" \
a0a3b4
+        "bond0 ens5" || return 1
a0a3b4
+
a0a3b4
+    # multiple bonding test
a0a3b4
+    client_test "MULTINIC root=dhcp rd.neednet=1 bond=bond0:ens3 bond=bond1:ens4 ip=bond0:dhcp ip=ens5:dhcp bootdev=ens5" \
a0a3b4
+        00 01 02 \
a0a3b4
+        "root=dhcp rd.neednet=1 bond=bond0:ens3 bond=bond1:ens4 ip=bond0:dhcp ip=bond1:dhcp ip=ens5:dhcp bootdev=ens5" \
a0a3b4
+        "bond0 bond1 ens5" || return 1
a0a3b4
+
a0a3b4
     kill_server
a0a3b4
     return 0
a0a3b4
 }