The coming patch stack fixes some of the testcases sent earlier on the list by Veerendra and adds new testcases for testing network namespace. The patches provides infrastructure for tcp testcass and add one testcase for ping command test. Content-Disposition: inline; filename=add-runall-script-for-tcp-cmd-testcases.patch
This patch adds the script to run all the tcp command testcase for the network namespace containers. Other tcp command testcases can be run through this script by making the test entry as below. In case there is an exclusive requirement for communication among the child and parent you need to create a separate setup to run your test as the parent script for these testcases is as simple as possible. Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]> Index: containers/netns/runalltcpcmdtests.sh =================================================================== --- /dev/null +++ containers/netns/runalltcpcmdtests.sh @@ -0,0 +1,48 @@ +#!/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 pronram; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Filename: runalltcpcmdtests.sh +# Purpose: runs all the testcases inside tcp directory +# +# Author: Sudhir Kumar <[EMAIL PROTECTED]> +# Date: 25/08/08 +#*********************************************************************** + +export TCID="tcp_commands" +export TST_TOTAL=1 +export TST_COUNT=1 + +# Start execution of testcases +echo "********************************************" +tst_resm TINFO "Running all tcp commands testcases" +echo "********************************************" +tst_resm TINFO "Running ping testcase" + +ns_ping01.sh +if [ $? -ne 0 ]; then + tst_resm TFAIL "ping test failed"; +else + tst_resm TPASS "ping test passed"; +fi + +# Add other tcp testcases here + +tst_resm TINFO "All tcp commands testcases run complete" +echo "*************************************************" +exit 0; -- Regards Sudhir Kumar Linux Technology Center IBM, India. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
