aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2016-02-05 20:28:28 +0900
committerYuta Doi <yuta-d@witz-inc.co.jp>2016-02-05 20:28:28 +0900
commit53340e836955b94338c2f1054b6bacaa0963c691 (patch)
tree954d4a58348c4f13c572683a884f87fa56cec32c
parent0325f2b6deec6da493e565b18f3f13fe7f3ce942 (diff)
Add option for LTP(Syscalls)
Add option for LTP(Syscalls) on AGL-JTA because the results of the many test cases become PASS on porter. Change-Id: I05b2b1739e226208298cb9f3f8bc9a9117ca4afe Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
-rw-r--r--jta-core/engine/tests/Functional.LTP.Syscalls/ltp-syscalls.sh12
-rw-r--r--userdata/conf/boards/porter.board6
2 files changed, 17 insertions, 1 deletions
diff --git a/jta-core/engine/tests/Functional.LTP.Syscalls/ltp-syscalls.sh b/jta-core/engine/tests/Functional.LTP.Syscalls/ltp-syscalls.sh
index e55a9aa..cfe4365 100644
--- a/jta-core/engine/tests/Functional.LTP.Syscalls/ltp-syscalls.sh
+++ b/jta-core/engine/tests/Functional.LTP.Syscalls/ltp-syscalls.sh
@@ -7,7 +7,17 @@ source $JTA_SCRIPTS_PATH/functions.sh
source $TEST_HOME/../LTP/ltp.sh
function test_run {
- report "cd /tmp/jta.$TESTDIR/target_bin; ./runltp -f syscalls -g /tmp/jta.$TESTDIR/syscalls.html; :"
+ echo "
+ export PATH=${PATH}:/sbin:/usr/sbin:/usr/local/sbin
+ export IPV4_NETWORK=$IPV4_NET
+ export LHOST_IPV4_HOST=$L_IPV4_HOST
+ export RHOST_IPV4_HOST=$R_IPV4_HOST
+ export RHOST_IFACES=$L_HOST_IF
+ export LHOST_IFACES=$R_HOST_IF
+ " > set_env.sh
+
+ put set_env.sh /tmp/jta.$TESTDIR/target_bin;
+ report "cd /tmp/jta.$TESTDIR/target_bin; source ./set_env.sh; env; ./runltp -f syscalls -g /tmp/jta.$TESTDIR/syscalls.html -d /home/ltp/tmp; :"
}
function test_processing {
diff --git a/userdata/conf/boards/porter.board b/userdata/conf/boards/porter.board
index d9561e9..8aca901 100644
--- a/userdata/conf/boards/porter.board
+++ b/userdata/conf/boards/porter.board
@@ -1,7 +1,11 @@
inherit "base-board"
include "base-params"
+IPV4_NET="192.168.30"
+
IPADDR="192.168.30.64"
+L_IPV4_HOST="64"
+L_HOST_IF="eth0"
SSH_PORT="22"
LOGIN="root"
JTA_HOME="/home/a"
@@ -32,6 +36,8 @@ LTP_EXPECT_FAIL_CASES="abort01 access06 acct01 adjtimex02 cacheflush01 chmod06 c
# for network test of ltp
# name of the remote host machine
REMOTE_HOST="192.168.30.63"
+R_IPV4_HOST="63"
+R_HOST_IF="eth0"
# root passwd of the remote host machine
REMOTE_PASSWD="root"