From 3eba837417f5a40d4dc4258cd192ce70c5636c65 Mon Sep 17 00:00:00 2001 From: Botao Sun Date: Sun, 19 Oct 2014 23:46:48 +1100 Subject: ltp-network.sh: POSIX Compliant Update. This change is to make the test script to be POSIX compliant. Original patch comes from: Lucas Dutra Nunes Signed-off by: Botao Sun Change-Id: Id9fbabb01a6d2d283c5b5cff3248979ac6b639a3 --- ubuntu/scripts/ltp-network.sh | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/ubuntu/scripts/ltp-network.sh b/ubuntu/scripts/ltp-network.sh index d23ff6e..313b47b 100755 --- a/ubuntu/scripts/ltp-network.sh +++ b/ubuntu/scripts/ltp-network.sh @@ -1,4 +1,27 @@ -#!/bin/bash +#!/bin/sh +# +# Run LTP network tests on Linux Linaro ubuntu +# +# Copyright (C) 2010 - 2014, Linaro Limited. +# +# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# Maintainer: +# vincent.hsu@linaro.org +# milosz.wasilewski@linaro.org +# fathi.boudra@linaro.org DIS="ubuntu" START_DIR=$(pwd) @@ -84,8 +107,10 @@ echo "===== ltp network test start =====" cd $LTP_DIR # form networktests.sh -export RHOST=$SERVER_NAME -export PASSWD=$SERVER_PASSWD +RHOST=$SERVER_NAME +export RHOST +PASSWD=$SERVER_PASSWD +export PASSWD # for nfs test echo "/ *(rw,sync,no_root_squash,no_subtree_check)" > /etc/exports @@ -109,4 +134,3 @@ find ./results -name "LTP_RUN_ON*" -print0 |xargs -0 cat # recover server hostname rsh -n -l root $SERVER_IP hostname $SERVER_ORI_NAME echo "===== ltp network test end =====" - -- cgit v1.2.3