summaryrefslogtreecommitdiff
path: root/ubuntu
diff options
context:
space:
mode:
authorBotao Sun <botao.sun@linaro.org>2014-10-19 23:46:48 +1100
committerBotao Sun <botao.sun@linaro.org>2015-04-23 19:48:04 +1000
commit3eba837417f5a40d4dc4258cd192ce70c5636c65 (patch)
treed349457012394f062160a74a080287e384f06820 /ubuntu
parent8f4aa5260e67c326446391144c755f2c5688b36b (diff)
downloadtest-definitions-pipe-3eba837417f5a40d4dc4258cd192ce70c5636c65.tar.gz
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 <ldnunes@ossystems.com.br> Signed-off by: Botao Sun <botao.sun@linaro.org> Change-Id: Id9fbabb01a6d2d283c5b5cff3248979ac6b639a3
Diffstat (limited to 'ubuntu')
-rwxr-xr-xubuntu/scripts/ltp-network.sh32
1 files 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 ====="
-