* [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost
@ 2013-07-04 13:30 Xie Lingyun
2013-07-04 14:00 ` Caspar Zhang
0 siblings, 1 reply; 8+ messages in thread
From: Xie Lingyun @ 2013-07-04 13:30 UTC (permalink / raw)
To: Caspar Zhang; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]
If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet 127.0.0.1
.
The first one makes the command output different from the expected result.
Thanks,
Lingyun Xie
[-- Attachment #1.2: Type: text/html, Size: 828 bytes --]
[-- Attachment #2: 0001-xinetd-xinetd_tests.sh-disable-the-IPV6-localhost.patch --]
[-- Type: application/octet-stream, Size: 1803 bytes --]
[-- Attachment #3: Type: text/plain, Size: 184 bytes --]
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost
2013-07-04 13:30 [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost Xie Lingyun
@ 2013-07-04 14:00 ` Caspar Zhang
[not found] ` <CAPwn2JRzDE2U_kcbEEJobW9zFsE+KRqme_6QFhp+6jB-D2ZU-A@mail.gmail.com>
2013-07-05 3:17 ` Hangbin Liu
0 siblings, 2 replies; 8+ messages in thread
From: Caspar Zhang @ 2013-07-04 14:00 UTC (permalink / raw)
To: liuhangbin; +Cc: ltp-list, Xie Lingyun
Hangbin, have you executed such tests before, and/or met any ipv4/v6 issue?
Thanks,
Caspar
On 07/04/2013 09:30 PM, Xie Lingyun wrote:
> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
> 127.0.0.1.
> The first one makes the command output different from the expected result.
>
>
> Thanks,
> Lingyun Xie
>
> 0001-xinetd-xinetd_tests.sh-disable-the-IPV6-localhost.patch
>
>
> From 75c79721c095cce27548e74260c1e42681e1a267 Mon Sep 17 00:00:00 2001
> From: mellonwand<mellonwand@gmail.com>
> Date: Thu, 4 Jul 2013 16:42:42 +0800
> Subject: [PATCH] xinetd/xinetd_tests.sh:disable the IPV6 localhost
>
> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet 127.0.0.1. The first one makes the command's output different from the expected output.
>
> Signed-off-by: Xie Lingyun<lingyun.xie@bj.cs2c.com.cn>
> ---
> testcases/network/xinetd/xinetd_tests.sh | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/network/xinetd/xinetd_tests.sh b/testcases/network/xinetd/xinetd_tests.sh
> index 83eb8a7..d2c851d 100755
> --- a/testcases/network/xinetd/xinetd_tests.sh
> +++ b/testcases/network/xinetd/xinetd_tests.sh
> @@ -128,6 +128,7 @@ init()
>
> # Create expected file with telnet disabled.
> cat > $LTPTMP/tst_xinetd.exp.1 <<-EOF || RC=$?
> + telnet: connect to address 127.0.0.1: Connection refused
> telnet: Unable to connect to remote host: Connection refused
> EOF
>
> @@ -263,7 +264,7 @@ test01()
>
> # Not checking for exit code from telnet command because telnet is
> # not terminated by the test gracefully.
> - echo "\x04" | telnet localhost 2>$LTPTMP/tst_xinetd.out 1>/dev/null
> + echo "\x04" | telnet 127.0.0.1 2>$LTPTMP/tst_xinetd.out 1>/dev/null
> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.1 \
> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
> if [ $RC -ne 0 ]
> @@ -312,7 +313,7 @@ test01()
>
> # Not checking for exit code from telnet command because telnet is
> # not terminated by the test gracefully.
> - echo "\x04" | telnet localhost > $LTPTMP/tst_xinetd.out 2>&1
> + echo "\x04" | telnet 127.0.0.1 > $LTPTMP/tst_xinetd.out 2>&1
>
> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.2 \
> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
> -- 1.8.3.1
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost
[not found] ` <CAPwn2JRzDE2U_kcbEEJobW9zFsE+KRqme_6QFhp+6jB-D2ZU-A@mail.gmail.com>
@ 2013-07-05 2:24 ` Caspar Zhang
2013-07-05 2:52 ` Xie Lingyun
0 siblings, 1 reply; 8+ messages in thread
From: Caspar Zhang @ 2013-07-05 2:24 UTC (permalink / raw)
To: Hangbin Liu; +Cc: LTP List, Xie Lingyun
+list
On 07/05/2013 10:20 AM, Hangbin Liu wrote:
> I didn't run xinetd before, but It do have this issue. when we call
> getaddrinfo(3) to get host name's IP address. It will return multiple
> answers, and prefer v6 to v4. So this patch make sence. But I
> recommend we can add IPv6 test for xinetd, not just disable it.
>
> 2013/7/4 Caspar Zhang <caspar@casparzhang.com>:
>> Hangbin, have you executed such tests before, and/or met any ipv4/v6 issue?
>>
>> Thanks,
>> Caspar
>>
>>
>>
>> On 07/04/2013 09:30 PM, Xie Lingyun wrote:
>>>
>>> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>>> 127.0.0.1.
>>> The first one makes the command output different from the expected result.
>>>
>>>
>>> Thanks,
>>> Lingyun Xie
>>>
>>> 0001-xinetd-xinetd_tests.sh-disable-the-IPV6-localhost.patch
>>>
>>>
>>> From 75c79721c095cce27548e74260c1e42681e1a267 Mon Sep 17 00:00:00 2001
>>> From: mellonwand<mellonwand@gmail.com>
>>> Date: Thu, 4 Jul 2013 16:42:42 +0800
>>> Subject: [PATCH] xinetd/xinetd_tests.sh:disable the IPV6 localhost
>>>
>>> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>>> 127.0.0.1. The first one makes the command's output different from the
>>> expected output.
>>>
>>> Signed-off-by: Xie Lingyun<lingyun.xie@bj.cs2c.com.cn>
>>> ---
>>> testcases/network/xinetd/xinetd_tests.sh | 5 +++--
>>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/testcases/network/xinetd/xinetd_tests.sh
>>> b/testcases/network/xinetd/xinetd_tests.sh
>>> index 83eb8a7..d2c851d 100755
>>> --- a/testcases/network/xinetd/xinetd_tests.sh
>>> +++ b/testcases/network/xinetd/xinetd_tests.sh
>>> @@ -128,6 +128,7 @@ init()
>>>
>>> # Create expected file with telnet disabled.
>>> cat > $LTPTMP/tst_xinetd.exp.1 <<-EOF || RC=$?
>>> + telnet: connect to address 127.0.0.1: Connection refused
>>> telnet: Unable to connect to remote host: Connection refused
>>> EOF
>>>
>>> @@ -263,7 +264,7 @@ test01()
>>>
>>> # Not checking for exit code from telnet command because telnet is
>>> # not terminated by the test gracefully.
>>> - echo " " | telnet localhost 2>$LTPTMP/tst_xinetd.out 1>/dev/null
>>> + echo " " | telnet 127.0.0.1 2>$LTPTMP/tst_xinetd.out 1>/dev/null
>>> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.1 \
>>> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>>> if [ $RC -ne 0 ]
>>> @@ -312,7 +313,7 @@ test01()
>>>
>>> # Not checking for exit code from telnet command because telnet is
>>> # not terminated by the test gracefully.
>>> - echo " " | telnet localhost > $LTPTMP/tst_xinetd.out 2>&1
>>> + echo " " | telnet 127.0.0.1 > $LTPTMP/tst_xinetd.out 2>&1
>>>
>>> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.2 \
>>> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>>> -- 1.8.3.1
>>>
>>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost
2013-07-05 2:24 ` Caspar Zhang
@ 2013-07-05 2:52 ` Xie Lingyun
2013-07-05 3:10 ` Hangbin Liu
0 siblings, 1 reply; 8+ messages in thread
From: Xie Lingyun @ 2013-07-05 2:52 UTC (permalink / raw)
To: Caspar Zhang; +Cc: LTP List
[-- Attachment #1.1: Type: text/plain, Size: 3317 bytes --]
I think that change telnet service on/off is to test the different xinetd
config file. So only IPV4 test of telnet is enough.
Thanks,
Lingyun Xie
2013/7/5 Caspar Zhang <caspar@casparzhang.com>
> +list
>
> On 07/05/2013 10:20 AM, Hangbin Liu wrote:
>
>> I didn't run xinetd before, but It do have this issue. when we call
>> getaddrinfo(3) to get host name's IP address. It will return multiple
>> answers, and prefer v6 to v4. So this patch make sence. But I
>> recommend we can add IPv6 test for xinetd, not just disable it.
>>
>> 2013/7/4 Caspar Zhang <caspar@casparzhang.com>:
>>
>> Hangbin, have you executed such tests before, and/or met any ipv4/v6
>>> issue?
>>>
>>> Thanks,
>>> Caspar
>>>
>>>
>>>
>>> On 07/04/2013 09:30 PM, Xie Lingyun wrote:
>>>
>>>>
>>>> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>>>> 127.0.0.1.
>>>> The first one makes the command output different from the expected
>>>> result.
>>>>
>>>>
>>>> Thanks,
>>>> Lingyun Xie
>>>>
>>>> 0001-xinetd-xinetd_tests.sh-**disable-the-IPV6-localhost.**patch
>>>>
>>>>
>>>> From 75c79721c095cce27548e74260c1e4**2681e1a267 Mon Sep 17 00:00:00
>>>> 2001
>>>> From: mellonwand<mellonwand@gmail.**com <mellonwand@gmail.com>>
>>>> Date: Thu, 4 Jul 2013 16:42:42 +0800
>>>> Subject: [PATCH] xinetd/xinetd_tests.sh:disable the IPV6 localhost
>>>>
>>>> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>>>> 127.0.0.1. The first one makes the command's output different from the
>>>> expected output.
>>>>
>>>> Signed-off-by: Xie Lingyun<lingyun.xie@bj.cs2c.**com.cn<lingyun.xie@bj.cs2c.com.cn>
>>>> >
>>>> ---
>>>> testcases/network/xinetd/**xinetd_tests.sh | 5 +++--
>>>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/testcases/network/xinetd/**xinetd_tests.sh
>>>> b/testcases/network/xinetd/**xinetd_tests.sh
>>>> index 83eb8a7..d2c851d 100755
>>>> --- a/testcases/network/xinetd/**xinetd_tests.sh
>>>> +++ b/testcases/network/xinetd/**xinetd_tests.sh
>>>> @@ -128,6 +128,7 @@ init()
>>>>
>>>> # Create expected file with telnet disabled.
>>>> cat > $LTPTMP/tst_xinetd.exp.1 <<-EOF || RC=$?
>>>> + telnet: connect to address 127.0.0.1: Connection refused
>>>> telnet: Unable to connect to remote host: Connection refused
>>>> EOF
>>>>
>>>> @@ -263,7 +264,7 @@ test01()
>>>>
>>>> # Not checking for exit code from telnet command because
>>>> telnet is
>>>> # not terminated by the test gracefully.
>>>> - echo " " | telnet localhost 2>$LTPTMP/tst_xinetd.out 1>/dev/null
>>>> + echo " " | telnet 127.0.0.1 2>$LTPTMP/tst_xinetd.out 1>/dev/null
>>>> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.1 \
>>>> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>>>> if [ $RC -ne 0 ]
>>>> @@ -312,7 +313,7 @@ test01()
>>>>
>>>> # Not checking for exit code from telnet command because
>>>> telnet is
>>>> # not terminated by the test gracefully.
>>>> - echo " " | telnet localhost > $LTPTMP/tst_xinetd.out 2>&1
>>>> + echo " " | telnet 127.0.0.1 > $LTPTMP/tst_xinetd.out 2>&1
>>>>
>>>> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.2 \
>>>> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>>>> -- 1.8.3.1
>>>>
>>>>
>>>
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 4551 bytes --]
[-- Attachment #2: Type: text/plain, Size: 184 bytes --]
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost
2013-07-05 2:52 ` Xie Lingyun
@ 2013-07-05 3:10 ` Hangbin Liu
0 siblings, 0 replies; 8+ messages in thread
From: Hangbin Liu @ 2013-07-05 3:10 UTC (permalink / raw)
To: Xie Lingyun; +Cc: LTP List
But I think we should also make sure xinetd can support IPv6, to
prevent the situation that xinetd only block IPv4 TCP connection but
allowed IPv6 TCP connection.
Regards
Hangbin Liu
2013/7/5 Xie Lingyun <lingyun.xie@bj.cs2c.com.cn>:
> I think that change telnet service on/off is to test the different xinetd
> config file. So only IPV4 test of telnet is enough.
>
>
>
> Thanks,
> Lingyun Xie
>
>
> 2013/7/5 Caspar Zhang <caspar@casparzhang.com>
>>
>> +list
>>
>> On 07/05/2013 10:20 AM, Hangbin Liu wrote:
>>>
>>> I didn't run xinetd before, but It do have this issue. when we call
>>> getaddrinfo(3) to get host name's IP address. It will return multiple
>>> answers, and prefer v6 to v4. So this patch make sence. But I
>>> recommend we can add IPv6 test for xinetd, not just disable it.
>>>
>>> 2013/7/4 Caspar Zhang <caspar@casparzhang.com>:
>>>
>>>> Hangbin, have you executed such tests before, and/or met any ipv4/v6
>>>> issue?
>>>>
>>>> Thanks,
>>>> Caspar
>>>>
>>>>
>>>>
>>>> On 07/04/2013 09:30 PM, Xie Lingyun wrote:
>>>>>
>>>>>
>>>>> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>>>>> 127.0.0.1.
>>>>> The first one makes the command output different from the expected
>>>>> result.
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Lingyun Xie
>>>>>
>>>>> 0001-xinetd-xinetd_tests.sh-disable-the-IPV6-localhost.patch
>>>>>
>>>>>
>>>>> From 75c79721c095cce27548e74260c1e42681e1a267 Mon Sep 17 00:00:00
>>>>> 2001
>>>>> From: mellonwand<mellonwand@gmail.com>
>>>>> Date: Thu, 4 Jul 2013 16:42:42 +0800
>>>>> Subject: [PATCH] xinetd/xinetd_tests.sh:disable the IPV6 localhost
>>>>>
>>>>> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>>>>> 127.0.0.1. The first one makes the command's output different from the
>>>>> expected output.
>>>>>
>>>>> Signed-off-by: Xie Lingyun<lingyun.xie@bj.cs2c.com.cn>
>>>>> ---
>>>>> testcases/network/xinetd/xinetd_tests.sh | 5 +++--
>>>>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>>>>
>>>>> diff --git a/testcases/network/xinetd/xinetd_tests.sh
>>>>> b/testcases/network/xinetd/xinetd_tests.sh
>>>>> index 83eb8a7..d2c851d 100755
>>>>> --- a/testcases/network/xinetd/xinetd_tests.sh
>>>>> +++ b/testcases/network/xinetd/xinetd_tests.sh
>>>>> @@ -128,6 +128,7 @@ init()
>>>>>
>>>>> # Create expected file with telnet disabled.
>>>>> cat > $LTPTMP/tst_xinetd.exp.1 <<-EOF || RC=$?
>>>>> + telnet: connect to address 127.0.0.1: Connection refused
>>>>> telnet: Unable to connect to remote host: Connection refused
>>>>> EOF
>>>>>
>>>>> @@ -263,7 +264,7 @@ test01()
>>>>>
>>>>> # Not checking for exit code from telnet command because
>>>>> telnet is
>>>>> # not terminated by the test gracefully.
>>>>> - echo " " | telnet localhost 2>$LTPTMP/tst_xinetd.out
>>>>> 1>/dev/null
>>>>> + echo " " | telnet 127.0.0.1 2>$LTPTMP/tst_xinetd.out
>>>>> 1>/dev/null
>>>>> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.1 \
>>>>> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>>>>> if [ $RC -ne 0 ]
>>>>> @@ -312,7 +313,7 @@ test01()
>>>>>
>>>>> # Not checking for exit code from telnet command because
>>>>> telnet is
>>>>> # not terminated by the test gracefully.
>>>>> - echo " " | telnet localhost > $LTPTMP/tst_xinetd.out 2>&1
>>>>> + echo " " | telnet 127.0.0.1 > $LTPTMP/tst_xinetd.out 2>&1
>>>>>
>>>>> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.2 \
>>>>> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>>>>> -- 1.8.3.1
>>>>>
>>>>
>>
>>
>>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost
2013-07-04 14:00 ` Caspar Zhang
[not found] ` <CAPwn2JRzDE2U_kcbEEJobW9zFsE+KRqme_6QFhp+6jB-D2ZU-A@mail.gmail.com>
@ 2013-07-05 3:17 ` Hangbin Liu
2013-07-05 3:35 ` Xie Lingyun
1 sibling, 1 reply; 8+ messages in thread
From: Hangbin Liu @ 2013-07-05 3:17 UTC (permalink / raw)
To: Caspar Zhang; +Cc: LTP list, Xie Lingyun
2013/7/4 Caspar Zhang <caspar@casparzhang.com>:
> Hangbin, have you executed such tests before, and/or met any ipv4/v6 issue?
>
> Thanks,
> Caspar
>
>
>
> On 07/04/2013 09:30 PM, Xie Lingyun wrote:
>>
>> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>> 127.0.0.1.
>> The first one makes the command output different from the expected result.
>>
>>
>> Thanks,
>> Lingyun Xie
>>
>> 0001-xinetd-xinetd_tests.sh-disable-the-IPV6-localhost.patch
>>
>>
>> From 75c79721c095cce27548e74260c1e42681e1a267 Mon Sep 17 00:00:00 2001
>> From: mellonwand<mellonwand@gmail.com>
>> Date: Thu, 4 Jul 2013 16:42:42 +0800
>> Subject: [PATCH] xinetd/xinetd_tests.sh:disable the IPV6 localhost
>>
>> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>> 127.0.0.1. The first one makes the command's output different from the
>> expected output.
>>
>> Signed-off-by: Xie Lingyun<lingyun.xie@bj.cs2c.com.cn>
>> ---
>> testcases/network/xinetd/xinetd_tests.sh | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/testcases/network/xinetd/xinetd_tests.sh
>> b/testcases/network/xinetd/xinetd_tests.sh
>> index 83eb8a7..d2c851d 100755
>> --- a/testcases/network/xinetd/xinetd_tests.sh
>> +++ b/testcases/network/xinetd/xinetd_tests.sh
>> @@ -128,6 +128,7 @@ init()
>>
>> # Create expected file with telnet disabled.
>> cat > $LTPTMP/tst_xinetd.exp.1 <<-EOF || RC=$?
>> + telnet: connect to address 127.0.0.1: Connection refused
>> telnet: Unable to connect to remote host: Connection refused
Here we should remove the "Unable to connectto remote host" line
>> EOF
>>
>> @@ -263,7 +264,7 @@ test01()
>>
>> # Not checking for exit code from telnet command because telnet is
>> # not terminated by the test gracefully.
>> - echo " " | telnet localhost 2>$LTPTMP/tst_xinetd.out 1>/dev/null
>> + echo " " | telnet 127.0.0.1 2>$LTPTMP/tst_xinetd.out 1>/dev/null
>> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.1 \
>> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>> if [ $RC -ne 0 ]
>> @@ -312,7 +313,7 @@ test01()
>>
>> # Not checking for exit code from telnet command because telnet is
>> # not terminated by the test gracefully.
>> - echo " " | telnet localhost > $LTPTMP/tst_xinetd.out 2>&1
>> + echo " " | telnet 127.0.0.1 > $LTPTMP/tst_xinetd.out 2>&1
>>
>> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.2 \
>> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>> -- 1.8.3.1
>>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost
2013-07-05 3:17 ` Hangbin Liu
@ 2013-07-05 3:35 ` Xie Lingyun
0 siblings, 0 replies; 8+ messages in thread
From: Xie Lingyun @ 2013-07-05 3:35 UTC (permalink / raw)
To: Hangbin Liu; +Cc: LTP list
[-- Attachment #1.1: Type: text/plain, Size: 2982 bytes --]
Sorry, I didn't test the telnet command in latest version.
The "Unable to connect to remote host" line comes out in previous version.
Is there any better way to fix the test script?
Thanks,
Lingyun Xie
2013/7/5 Hangbin Liu <liuhangbin@gmail.com>
> 2013/7/4 Caspar Zhang <caspar@casparzhang.com>:
> > Hangbin, have you executed such tests before, and/or met any ipv4/v6
> issue?
> >
> > Thanks,
> > Caspar
> >
> >
> >
> > On 07/04/2013 09:30 PM, Xie Lingyun wrote:
> >>
> >> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
> >> 127.0.0.1.
> >> The first one makes the command output different from the expected
> result.
> >>
> >>
> >> Thanks,
> >> Lingyun Xie
> >>
> >> 0001-xinetd-xinetd_tests.sh-disable-the-IPV6-localhost.patch
> >>
> >>
> >> From 75c79721c095cce27548e74260c1e42681e1a267 Mon Sep 17 00:00:00 2001
> >> From: mellonwand<mellonwand@gmail.com>
> >> Date: Thu, 4 Jul 2013 16:42:42 +0800
> >> Subject: [PATCH] xinetd/xinetd_tests.sh:disable the IPV6 localhost
> >>
> >> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
> >> 127.0.0.1. The first one makes the command's output different from the
> >> expected output.
> >>
> >> Signed-off-by: Xie Lingyun<lingyun.xie@bj.cs2c.com.cn>
> >> ---
> >> testcases/network/xinetd/xinetd_tests.sh | 5 +++--
> >> 1 file changed, 3 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/testcases/network/xinetd/xinetd_tests.sh
> >> b/testcases/network/xinetd/xinetd_tests.sh
> >> index 83eb8a7..d2c851d 100755
> >> --- a/testcases/network/xinetd/xinetd_tests.sh
> >> +++ b/testcases/network/xinetd/xinetd_tests.sh
> >> @@ -128,6 +128,7 @@ init()
> >>
> >> # Create expected file with telnet disabled.
> >> cat > $LTPTMP/tst_xinetd.exp.1 <<-EOF || RC=$?
> >> + telnet: connect to address 127.0.0.1: Connection refused
> >> telnet: Unable to connect to remote host: Connection refused
>
> Here we should remove the "Unable to connectto remote host" line
>
> >> EOF
> >>
> >> @@ -263,7 +264,7 @@ test01()
> >>
> >> # Not checking for exit code from telnet command because telnet
> is
> >> # not terminated by the test gracefully.
> >> - echo " " | telnet localhost 2>$LTPTMP/tst_xinetd.out 1>/dev/null
> >> + echo " " | telnet 127.0.0.1 2>$LTPTMP/tst_xinetd.out 1>/dev/null
> >> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.1 \
> >> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
> >> if [ $RC -ne 0 ]
> >> @@ -312,7 +313,7 @@ test01()
> >>
> >> # Not checking for exit code from telnet command because telnet
> is
> >> # not terminated by the test gracefully.
> >> - echo " " | telnet localhost > $LTPTMP/tst_xinetd.out 2>&1
> >> + echo " " | telnet 127.0.0.1 > $LTPTMP/tst_xinetd.out 2>&1
> >>
> >> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.2 \
> >> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
> >> -- 1.8.3.1
> >>
> >
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 4699 bytes --]
[-- Attachment #2: Type: text/plain, Size: 184 bytes --]
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost
@ 2013-07-08 2:22 Hangbin Liu
0 siblings, 0 replies; 8+ messages in thread
From: Hangbin Liu @ 2013-07-08 2:22 UTC (permalink / raw)
To: Xie Lingyun; +Cc: LTP List
2013/7/6 Xie Lingyun <lingyun.xie@bj.cs2c.com.cn>:
> I'm so sorry for the previous email.
> The telnet on my test environment points to /usr/kerberos/bin/telnet, not
> the same as /usr/bin/telnet on Fedora 19.
> I will modify the telnet command in xinetd_test.sh to /usr/bin/telnet, and
> remove the "Unable to " line.
> I also want to add the IPv6 test for xinetd separately.
Good.
+ list
>
> Thank
> you for your help
> ,
>
> Lingyun Xie
>
>
> 2013/7/5 Hangbin Liu <liuhangbin@gmail.com>
>>
>> If you cloned the ltp repo with git, you can use git reset --hard
>> $commit_id to the latest commit. If you download the tar ball, then
>> just download a new one.
>>
>> 2013/7/5 Xie Lingyun <lingyun.xie@bj.cs2c.com.cn>:
>> > Sorry, I didn't test the telnet command in latest version.
>> > The "Unable to connect to remote host" line comes out in previous
>> > version.
>> > Is there any better way to fix the test script?
>> >
>> >
>> >
>> > Thanks,
>> > Lingyun Xie
>> >
>> >
>> > 2013/7/5 Hangbin Liu <liuhangbin@gmail.com>
>> >>
>> >> 2013/7/4 Caspar Zhang <caspar@casparzhang.com>:
>> >> > Hangbin, have you executed such tests before, and/or met any ipv4/v6
>> >> > issue?
>> >> >
>> >> > Thanks,
>> >> > Caspar
>> >> >
>> >> >
>> >> >
>> >> > On 07/04/2013 09:30 PM, Xie Lingyun wrote:
>> >> >>
>> >> >> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>> >> >> 127.0.0.1.
>> >> >> The first one makes the command output different from the expected
>> >> >> result.
>> >> >>
>> >> >>
>> >> >> Thanks,
>> >> >> Lingyun Xie
>> >> >>
>> >> >> 0001-xinetd-xinetd_tests.sh-disable-the-IPV6-localhost.patch
>> >> >>
>> >> >>
>> >> >> From 75c79721c095cce27548e74260c1e42681e1a267 Mon Sep 17 00:00:00
>> >> >> 2001
>> >> >> From: mellonwand<mellonwand@gmail.com>
>> >> >> Date: Thu, 4 Jul 2013 16:42:42 +0800
>> >> >> Subject: [PATCH] xinetd/xinetd_tests.sh:disable the IPV6 localhost
>> >> >>
>> >> >> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
>> >> >> 127.0.0.1. The first one makes the command's output different from
>> >> >> the
>> >> >> expected output.
>> >> >>
>> >> >> Signed-off-by: Xie Lingyun<lingyun.xie@bj.cs2c.com.cn>
>> >> >> ---
>> >> >> testcases/network/xinetd/xinetd_tests.sh | 5 +++--
>> >> >> 1 file changed, 3 insertions(+), 2 deletions(-)
>> >> >>
>> >> >> diff --git a/testcases/network/xinetd/xinetd_tests.sh
>> >> >> b/testcases/network/xinetd/xinetd_tests.sh
>> >> >> index 83eb8a7..d2c851d 100755
>> >> >> --- a/testcases/network/xinetd/xinetd_tests.sh
>> >> >> +++ b/testcases/network/xinetd/xinetd_tests.sh
>> >> >> @@ -128,6 +128,7 @@ init()
>> >> >>
>> >> >> # Create expected file with telnet disabled.
>> >> >> cat > $LTPTMP/tst_xinetd.exp.1 <<-EOF || RC=$?
>> >> >> + telnet: connect to address 127.0.0.1: Connection refused
>> >> >> telnet: Unable to connect to remote host: Connection refused
>> >>
>> >> Here we should remove the "Unable to connectto remote host" line
>> >>
>> >> >> EOF
>> >> >>
>> >> >> @@ -263,7 +264,7 @@ test01()
>> >> >>
>> >> >> # Not checking for exit code from telnet command because
>> >> >> telnet
>> >> >> is
>> >> >> # not terminated by the test gracefully.
>> >> >> - echo " " | telnet localhost 2>$LTPTMP/tst_xinetd.out
>> >> >> 1>/dev/null
>> >> >> + echo " " | telnet 127.0.0.1 2>$LTPTMP/tst_xinetd.out
>> >> >> 1>/dev/null
>> >> >> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.1 \
>> >> >> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>> >> >> if [ $RC -ne 0 ]
>> >> >> @@ -312,7 +313,7 @@ test01()
>> >> >>
>> >> >> # Not checking for exit code from telnet command because
>> >> >> telnet
>> >> >> is
>> >> >> # not terminated by the test gracefully.
>> >> >> - echo " " | telnet localhost > $LTPTMP/tst_xinetd.out 2>&1
>> >> >> + echo " " | telnet 127.0.0.1 > $LTPTMP/tst_xinetd.out 2>&1
>> >> >>
>> >> >> diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.2 \
>> >> >> > $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>> >> >> -- 1.8.3.1
>> >> >>
>> >> >
>> >>
>> >>
>> >
>>
>>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-07-08 2:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-04 13:30 [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost Xie Lingyun
2013-07-04 14:00 ` Caspar Zhang
[not found] ` <CAPwn2JRzDE2U_kcbEEJobW9zFsE+KRqme_6QFhp+6jB-D2ZU-A@mail.gmail.com>
2013-07-05 2:24 ` Caspar Zhang
2013-07-05 2:52 ` Xie Lingyun
2013-07-05 3:10 ` Hangbin Liu
2013-07-05 3:17 ` Hangbin Liu
2013-07-05 3:35 ` Xie Lingyun
-- strict thread matches above, loose matches on Subject: below --
2013-07-08 2:22 Hangbin Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.