This patch adds the script to be called by the command file to run network
testcases under containers environment.

Signed-off-by: Sudhir Kumar <sku...@linux.vnet.ibm.com>

Index: ltp-full-20081130/testcases/kernel/containers/netns/nw_under_ns.sh
===================================================================
--- /dev/null
+++ ltp-full-20081130/testcases/kernel/containers/netns/nw_under_ns.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+#############################################################################
+#                                                                           #
+# Copyright (c) International Business Machines  Corp., 2008                #
+#                                                                           #
+# This program is free software;  you can redistribute it and#or modify     #
+# it under the terms of the GNU General Public License as published by      #
+# the Free Software Foundation; either version 2 of the License, or         #
+# (at your option) any later version.                                       #
+#                                                                           #
+# This program is distributed in the hope that it will be useful, but       #
+# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY#
+# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  #
+# for more details.                                                         #
+#                                                                           #
+# You should have received a copy of the GNU General Public License         #
+# along with this program;  if not, write to the Free Software              #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA   #
+#                                                                           #
+# Author:      Sudhir Kumar <sku...@linux.vnet.ibm.com>                     #
+#############################################################################
+
+# this script is used to run all the testcases for networks under network
+# namespace. This script is called by a separate command file nw_under_ns
+# The testcases are grouped as per the requirement of the particular
+# testcase.
+
+echo "*****************************************************"
+echo "Running network testcases under containers..."
+
+create_container;
+if [ $? -ne 0 ]; then
+       echo "some of the network testcases under netns failled"
+       exit 1;
+fi



------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to