Hi, I am facing issues while running some network testcases : e.g. if4-addr-change This testcase belongs to latest (ltp-full-20150903.tar.bz2) when I run this if4-addr-change, I exported two new env variables a) IPV4_NETWORK = "107.109.223" and IPV6_NETWORK = "fd00::1:1:1:1", b) LHOST_IFACES = eth0 and RHOST_IFACES = eth0, which is not exported in "test_net.sh" . bacause "if4-addr-change " testcase invokes "est_net.sh".
testcase output: <<<<<<<<<<<<<<<<<<<test_start>>>>>>>>>>>>>>>>>>> tag(Testcase Name)=if4-addr-change stime=15540 cmdline="if4-addr-change" contacts="" analysis=exit <<<<<<<<<<<<<<<<<<<test_output>>>>>>>>>>>>>>>>>>> + TST_TOTAL=1 + TCID=if4-addr-change + TST_CLEANUP=tst_restore_ipaddr + . test_net.sh ++ '[' -z '' ']' ++ . test.sh +++ export LTP_RET_VAL=0 +++ LTP_RET_VAL=0 +++ export TST_COUNT=1 +++ TST_COUNT=1 +++ export TST_LIB_LOADED=1 +++ TST_LIB_LOADED=1 +++ '[' -z if4-addr-change ']' +++ '[' -z 1 ']' +++ export TCID=if4-addr-change +++ TCID=if4-addr-change +++ export TST_TOTAL=1 +++ TST_TOTAL=1 +++ '[' -z /tmp/build_dir ']' +++ export LTP_DATAROOT=/tmp/build_dir/testcases/data/if4-addr-change +++ LTP_DATAROOT=/tmp/build_dir/testcases/data/if4-addr-change ++ TST_IPV6= ++ tst_read_opts ++ OPTIND=0 ++ getopts :6 opt ++ OPTIND=0 + CHECK_INTERVAL=0 + LHOST_IPV4_HOST_MAX=254 + trap 'tst_brkm TBROK '\''test interrupted'\''' INT + tst_check_cmds ifconfig + for cmd in '$*' + command -v ifconfig + tst_resm TINFO 'ifconfig changes IPv4 address 10 times' + tst_flag2mask TINFO + case "$1" in + return 16 + local mask=16 + LTP_RET_VAL=16 + local ret=TINFO + shift + echo 'if4-addr-change 1 TINFO : ifconfig changes IPv4 address 10 times' if4-addr-change 1 TINFO : ifconfig changes IPv4 address 10 times + case "$ret" in + tst_restore_ipaddr + local type=lhost + local link_num=0 + tst_init_iface lhost 0 + local type=lhost + local link_num=0 ++ tst_iface lhost 0 ++ local type=lhost ++ local link_num=0 ++ link_num=1 ++ awk '{ print $1 }' +++ tst_get_ifaces lhost +++ local type=lhost +++ '[' lhost = lhost ']' +++ echo eth0 ++ echo eth0 + local iface=eth0 + tst_resm TINFO 'initialize '\''lhost'\'' '\''eth0'\'' interface' + tst_flag2mask TINFO + case "$1" in + return 16 + local mask=16 + LTP_RET_VAL=16 + local ret=TINFO + shift + echo 'if4-addr-change 1 TINFO : initialize '\''lhost'\'' '\''eth0'\'' interface' if4-addr-change 1 TINFO : initialize 'lhost' 'eth0' interface + case "$ret" in + '[' lhost = lhost ']' + ip link set eth0 down + ip route flush dev eth0 + ip addr flush dev eth0 + ip link set eth0 up + return 0 + local ret=0 + local backup_tst_ipv6= + TST_IPV6= + tst_add_ipaddr lhost 0 + local type=lhost + local link_num=0 + local mask=24 + '[' '' ']' ++ tst_iface lhost 0 ++ local type=lhost ++ local link_num=0 ++ link_num=1 ++ awk '{ print $1 }' +++ tst_get_ifaces lhost +++ local type=lhost +++ '[' lhost = lhost ']' +++ echo eth0 ++ echo eth0 + local iface=eth0 + '[' lhost = lhost ']' ++ tst_ipaddr ++ local type=lhost ++ local ipv=4 ++ local tst_host= ++ '[' lhost = lhost ']' ++ eval 'tst_host=$LHOST_IPV4_HOST' +++ tst_host= ++ '[' '' ']' ++ echo 107.109.223. + tst_resm TINFO 'set local addr 107.109.223./24' + tst_flag2mask TINFO + case "$1" in + return 16 + local mask=16 + LTP_RET_VAL=16 + local ret=TINFO + shift + echo 'if4-addr-change 1 TINFO : set local addr 107.109.223./24' if4-addr-change 1 TINFO : set local addr 107.109.223./24 + case "$ret" in ++ tst_ipaddr ++ local type=lhost ++ local ipv=4 ++ local tst_host= ++ '[' lhost = lhost ']' ++ eval 'tst_host=$LHOST_IPV4_HOST' +++ tst_host= ++ '[' '' ']' ++ echo 107.109.223. + ip addr add 107.109.223./24 dev eth0 + return 0 + TST_IPV6=6 + tst_add_ipaddr lhost 0 + local type=lhost + local link_num=0 + local mask=24 + '[' 6 ']' + mask=64 ++ tst_iface lhost 0 ++ local type=lhost ++ local link_num=0 ++ link_num=1 +++ tst_get_ifaces lhost +++ local type=lhost +++ '[' lhost = lhost ']' ++ awk '{ print $1 }' +++ echo eth0 ++ echo eth0 + local iface=eth0 + '[' lhost = lhost ']' ++ tst_ipaddr ++ local type=lhost ++ local ipv=6 ++ local tst_host= ++ '[' lhost = lhost ']' ++ eval 'tst_host=$LHOST_IPV6_HOST' +++ tst_host= ++ '[' 6 ']' ++ echo fd00::1:1:1:1: + tst_resm TINFO 'set local addr fd00::1:1:1:1:/64' + tst_flag2mask TINFO + case "$1" in + return 16 + local mask=16 + LTP_RET_VAL=16 + local ret=TINFO + shift + echo 'if4-addr-change 1 TINFO : set local addr fd00::1:1:1:1:/64' if4-addr-change 1 TINFO : set local addr fd00::1:1:1:1:/64 + case "$ret" in ++ tst_ipaddr ++ local type=lhost ++ local ipv=6 ++ local tst_host= ++ '[' lhost = lhost ']' ++ eval 'tst_host=$LHOST_IPV6_HOST' +++ tst_host= ++ '[' 6 ']' ++ echo fd00::1:1:1:1: + ip addr add fd00::1:1:1:1:/64 dev eth0 ip: RTNETLINK answers: Numerical result out of range + return 2 + ret=2 + TST_IPV6= + return 2 ++ tst_iface ++ local type=lhost ++ local link_num=0 ++ link_num=1 ++ awk '{ print $1 }' +++ tst_get_ifaces lhost +++ local type=lhost +++ '[' lhost = lhost ']' +++ echo eth0 ++ echo eth0 ++ tst_ipaddr rhost ++ local type=rhost ++ local ipv=4 ++ local tst_host= ++ '[' rhost = lhost ']' ++ eval 'tst_host=$RHOST_IPV4_HOST' +++ tst_host= ++ '[' '' ']' ++ echo 107.109.223. ++ tst_iface ++ local type=lhost ++ local link_num=0 ++ link_num=1 ++ awk '{ print $1 }' +++ tst_get_ifaces lhost +++ local type=lhost +++ '[' lhost = lhost ']' +++ echo eth0 ++ echo eth0 ++ tst_ipaddr rhost ++ local type=rhost ++ local ipv=4 ++ local tst_host= ++ '[' rhost = lhost ']' ++ eval 'tst_host=$RHOST_IPV4_HOST' +++ tst_host= ++ '[' '' ']' ++ echo 107.109.223. + check_icmpv4_connectivity eth0 107.109.223. ++ tst_ipaddr rhost ++ local type=rhost ++ local ipv=4 ++ local tst_host= ++ '[' rhost = lhost ']' ++ eval 'tst_host=$RHOST_IPV4_HOST' +++ tst_host= ++ '[' '' ']' ++ echo 107.109.223. + tst_brkm TBROK 'Failed to ping to 107.109.223.' + case "$1" in + local ret=TBROK + shift + tst_resm TBROK 'Failed to ping to 107.109.223.' + tst_flag2mask TBROK + case "$1" in + return 2 + local mask=2 + LTP_RET_VAL=18 + local ret=TBROK + shift + echo 'if4-addr-change 1 TBROK : Failed to ping to 107.109.223.' if4-addr-change 1 TBROK : Failed to ping to 107.109.223. + case "$ret" in + tst_exit + '[' -n tst_restore_ipaddr ']' + tst_restore_ipaddr + local type=lhost + local link_num=0 + tst_init_iface lhost 0 + local type=lhost + local link_num=0 ++ tst_iface lhost 0 ++ local type=lhost ++ local link_num=0 ++ link_num=1 ++ awk '{ print $1 }' +++ tst_get_ifaces lhost +++ local type=lhost +++ '[' lhost = lhost ']' +++ echo eth0 ++ echo eth0 + local iface=eth0 + tst_resm TINFO 'initialize '\''lhost'\'' '\''eth0'\'' interface' + tst_flag2mask TINFO + case "$1" in + return 16 + local mask=16 + LTP_RET_VAL=18 + local ret=TINFO + shift + echo 'if4-addr-change 1 TINFO : initialize '\''lhost'\'' '\''eth0'\'' interface' if4-addr-change 1 TINFO : initialize 'lhost' 'eth0' interface + case "$ret" in + '[' lhost = lhost ']' + ip link set eth0 down + ip route flush dev eth0 + ip addr flush dev eth0 + ip link set eth0 up + return 0 + local ret=0 + local backup_tst_ipv6= + TST_IPV6= + tst_add_ipaddr lhost 0 + local type=lhost + local link_num=0 + local mask=24 + '[' '' ']' ++ tst_iface lhost 0 ++ local type=lhost ++ local link_num=0 ++ link_num=1 ++ awk '{ print $1 }' +++ tst_get_ifaces lhost +++ local type=lhost +++ '[' lhost = lhost ']' +++ echo eth0 ++ echo eth0 + local iface=eth0 + '[' lhost = lhost ']' ++ tst_ipaddr ++ local type=lhost ++ local ipv=4 ++ local tst_host= ++ '[' lhost = lhost ']' ++ eval 'tst_host=$LHOST_IPV4_HOST' +++ tst_host= ++ '[' '' ']' ++ echo 107.109.223. + tst_resm TINFO 'set local addr 107.109.223./24' + tst_flag2mask TINFO + case "$1" in + return 16 + local mask=16 + LTP_RET_VAL=18 + local ret=TINFO + shift + echo 'if4-addr-change 1 TINFO : set local addr 107.109.223./24' if4-addr-change 1 TINFO : set local addr 107.109.223./24 + case "$ret" in ++ tst_ipaddr ++ local type=lhost ++ local ipv=4 ++ local tst_host= ++ '[' lhost = lhost ']' ++ eval 'tst_host=$LHOST_IPV4_HOST' +++ tst_host= ++ '[' '' ']' ++ echo 107.109.223. + ip addr add 107.109.223./24 dev eth0 + return 0 + TST_IPV6=6 + tst_add_ipaddr lhost 0 + local type=lhost + local link_num=0 + local mask=24 + '[' 6 ']' + mask=64 ++ tst_iface lhost 0 ++ local type=lhost ++ local link_num=0 ++ link_num=1 ++ awk '{ print $1 }' +++ tst_get_ifaces lhost +++ local type=lhost +++ '[' lhost = lhost ']' +++ echo eth0 ++ echo eth0 + local iface=eth0 + '[' lhost = lhost ']' ++ tst_ipaddr ++ local type=lhost ++ local ipv=6 ++ local tst_host= ++ '[' lhost = lhost ']' ++ eval 'tst_host=$LHOST_IPV6_HOST' +++ tst_host= ++ '[' 6 ']' ++ echo fd00::1:1:1:1: + tst_resm TINFO 'set local addr fd00::1:1:1:1:/64' + tst_flag2mask TINFO + case "$1" in + return 16 + local mask=16 + LTP_RET_VAL=18 + local ret=TINFO + shift + echo 'if4-addr-change 1 TINFO : set local addr fd00::1:1:1:1:/64' if4-addr-change 1 TINFO : set local addr fd00::1:1:1:1:/64 + case "$ret" in ++ tst_ipaddr ++ local type=lhost ++ local ipv=6 ++ local tst_host= ++ '[' lhost = lhost ']' ++ eval 'tst_host=$LHOST_IPV6_HOST' +++ tst_host= ++ '[' 6 ']' ++ echo fd00::1:1:1:1: + ip addr add fd00::1:1:1:1:/64 dev eth0 ip: RTNETLINK answers: Numerical result out of range + return 2 + ret=2 + TST_IPV6= + return 2 + exit 2 <<<<<<<<<<<<<<<<<<<execution_status>>>>>>>>>>>> initiation_status="ok" duration=13 termination_type=exited termination_id=2 corefile=no cutime=49 cstime=627 <<<<<<<<<<<<<<<<<<<test_end>>>>>>>>>>>>>>>>>>>>> Please check the IP addresses taken by the program, they are in wrong format. Is there anything that I am missing to run this testcase ? . Also I tried to do manually fix to get IP addresses in correct way but that should not be done, it need many changes to be done in "test_net.sh". This test scripts is invoked by other testcases like "network_stress.broken_ip". So all these testcases are failing. Please suggest more detail regarding "test_net.sh". Thanks ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list