From patchwork Sat Aug 11 23:03:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 1876 Return-Path: Received: from mail01.ipfire.org (mail01.ipfire.org [IPv6:2001:470:7183:25::1]) by web02.i.ipfire.org (Postfix) with ESMTP id DB05761DF2 for ; Sat, 11 Aug 2018 15:03:30 +0200 (CEST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 7D3E510A555B; Sat, 11 Aug 2018 14:03:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1533992610; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:list-id: list-unsubscribe:list-subscribe:list-post; bh=CR0tSLn+5+fAKl0lzH/tJehDWbwcTZfJnvRIQONlZvI=; b=z9sO4Gfm0iSAYPjZtnPkWMChLuzLn0WVGEnYQJCoM7tprPoNwti/M5yTeWbrGFSAqKlCmO P83GuBQU6kIOhl46QtS8jVrrS/yheDMzIcv8VzhoBmBjSWUL46p1P6852hDC1Xk2WngzBO H2Lu4Sv2o8iHOeaG/DFTYFKMqUiyU77Lwfd61o4RbZbv3UcDCIXkHVgq/kuMxGCpfoLZuF nMCT7Cy1uQnLWu12umnqMvyU2G7LuPips7Gai5cNC9qw7HmC6aV20LOGH5EMyqcCrA+5NV Kqw+ev3zQe+iCfen7gZrZ9HrEhfw61rx9o7NUpj4DUQT8L6uUI51cjcLd+pDyg== Received: from bockland.local.familyschlag (unknown [10.172.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 9FEDE109370A; Sat, 11 Aug 2018 14:03:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1533992608; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=CR0tSLn+5+fAKl0lzH/tJehDWbwcTZfJnvRIQONlZvI=; b=s7XF/9mfUow1smAKoqZRXtJ+OMEzzgHVC4My8wi6G96FIDEodXjg4ZOQxr5zpfR933SHQA DZq4CJ/Hqn1QNKyz0/X6hEnnl8sbD4L/GzNuVTiSeapdioZ59N+64Cq1dWMy/i/ASqSc1T Wij45ZjZhTMSk9Rswa53jAMDN8Ycg4llkGA3bPqDxsjP4t4rHu51TMwEkwKUBSJEQHYuc1 w+r4mCCg7rmjOFYqFTB7YKOyHpTXB2rI26KCh/xRo7rXGBpmqDWPEJNG0N3qPHz30ZyYfx plBf9vKHigThSi/YFCuOIQo5wiqnVhjWnKFp0jc6QpmiWDS/DIWcrn+l1xJomg== From: Jonatan Schlag To: network@lists.ipfire.org Subject: [PATCH 1/2] Add new test zone-new-bridge Date: Sat, 11 Aug 2018 15:03:22 +0200 Message-Id: <20180811130323.19669-1-jonatan.schlag@ipfire.org> X-Mailer: git-send-email 2.11.0 X-BeenThere: network@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List for the network package List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: network-bounces@lists.ipfire.org Sender: "network" This test checks if we can create a new zone of type bridge. Signed-off-by: Jonatan Schlag --- Makefile.am | 15 +++++++++------ test/nitsi/test/zone-new-bridge/.gitignore | 3 +++ test/nitsi/test/zone-new-bridge/recipe | 9 +++++++++ test/nitsi/test/zone-new-bridge/settings.in | 9 +++++++++ 4 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 test/nitsi/test/zone-new-bridge/.gitignore create mode 100644 test/nitsi/test/zone-new-bridge/recipe create mode 100644 test/nitsi/test/zone-new-bridge/settings.in diff --git a/Makefile.am b/Makefile.am index 4a0c4ea..1ea715e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -601,21 +601,24 @@ CLEANFILES += \ NITSI_TESTS = \ test/nitsi/test/hello-world \ test/nitsi/test/make-check \ - test/nitsi/test/raw-device-get-by-mac + test/nitsi/test/raw-device-get-by-mac \ + test/nitsi/test/zone-new-bridge EXTRA_DIST += \ test/nitsi/test/hello-world/recipe \ test/nitsi/test/hello-world/settings \ test/nitsi/test/make-check/recipe.in \ - test/nitsi/test/make-check/settings.in - test/nitsi/test/raw-device-get-by-mac/recipe\ - test/nitsi/test/raw-device-get-by-mac/settings.in - + test/nitsi/test/make-check/settings.in \ + test/nitsi/test/raw-device-get-by-mac/recipe \ + test/nitsi/test/raw-device-get-by-mac/settings.in \ + test/nitsi/test/zone-new-bridge/recipe \ + test/nitsi/test/zone-new-bridge/settings.in CLEANFILES += \ test/nitsi/test/make-check/recipe \ test/nitsi/test/make-check/settings \ - test/nitsi/test/raw-device-get-by-mac/settings + test/nitsi/test/raw-device-get-by-mac/settings \ + test/nitsi/test/zone-new-bridge/settings NITSI_ENVIRONMENT = diff --git a/test/nitsi/test/zone-new-bridge/.gitignore b/test/nitsi/test/zone-new-bridge/.gitignore new file mode 100644 index 0000000..8a9bd77 --- /dev/null +++ b/test/nitsi/test/zone-new-bridge/.gitignore @@ -0,0 +1,3 @@ +/log +/recipe.log +/settings diff --git a/test/nitsi/test/zone-new-bridge/recipe b/test/nitsi/test/zone-new-bridge/recipe new file mode 100644 index 0000000..d6dcfb7 --- /dev/null +++ b/test/nitsi/test/zone-new-bridge/recipe @@ -0,0 +1,9 @@ +include: ../../include/make-install +include: ../../include/network-settings +include: ../../include/network-reset +alice: network zone new upl0 bridge +# this returns zero if the device exists +alice: ip link show upl0 +alice: ls /sys/class/net/upl0 +# check that the config dir exists +alice: ls /etc/network/zones/upl0 diff --git a/test/nitsi/test/zone-new-bridge/settings.in b/test/nitsi/test/zone-new-bridge/settings.in new file mode 100644 index 0000000..207cfa0 --- /dev/null +++ b/test/nitsi/test/zone-new-bridge/settings.in @@ -0,0 +1,9 @@ +[GENERAL] +name = zone-new-bridge +description = This test checks if we can create a new zone of the type 'bridge' + +copy_from = ../../../../@PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz +copy_to = /root/ + +[VIRTUAL_ENVIRONMENT] +path = ../../virtual-environment/basic