* [LTP] [PATCH] sendfile: add SF_Server into INSTALL_TARGETS in Makefile
@ 2013-11-06 6:33 Simon Xu
2013-11-07 16:19 ` chrubis
0 siblings, 1 reply; 4+ messages in thread
From: Simon Xu @ 2013-11-06 6:33 UTC (permalink / raw)
To: ltp-list
sendfile01 always fails because SF_Server file is not installed.
Signed-off-by: Simon Xu <xu.simon@oracle.com>
---
testcases/network/tcp_cmds/sendfile/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/network/tcp_cmds/sendfile/Makefile b/testcases/network/tcp_cmds/sendfile/Makefile
index 124ce5d..17a985a 100644
--- a/testcases/network/tcp_cmds/sendfile/Makefile
+++ b/testcases/network/tcp_cmds/sendfile/Makefile
@@ -27,7 +27,7 @@ include $(abs_srcdir)/../Makefile.inc
CPPFLAGS += -I$(abs_srcdir)/../include
-INSTALL_TARGETS := sendfile01
+INSTALL_TARGETS := sendfile01 SF_Server
MAKE_TARGETS += testsf_c testsf_s testsf_c6 testsf_s6
--
1.8.4.2
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH] sendfile: add SF_Server into INSTALL_TARGETS in Makefile
2013-11-06 6:33 [LTP] [PATCH] sendfile: add SF_Server into INSTALL_TARGETS in Makefile Simon Xu
@ 2013-11-07 16:19 ` chrubis
2013-11-08 2:47 ` [LTP] [PATCH] sendfile01: rename SF_Server to sendfile01_server and add it into Makefile Simon Xu
0 siblings, 1 reply; 4+ messages in thread
From: chrubis @ 2013-11-07 16:19 UTC (permalink / raw)
To: Simon Xu; +Cc: ltp-list
Hi!
> sendfile01 always fails because SF_Server file is not installed.
>
> Signed-off-by: Simon Xu <xu.simon@oracle.com>
> ---
> testcases/network/tcp_cmds/sendfile/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/network/tcp_cmds/sendfile/Makefile b/testcases/network/tcp_cmds/sendfile/Makefile
> index 124ce5d..17a985a 100644
> --- a/testcases/network/tcp_cmds/sendfile/Makefile
> +++ b/testcases/network/tcp_cmds/sendfile/Makefile
> @@ -27,7 +27,7 @@ include $(abs_srcdir)/../Makefile.inc
>
> CPPFLAGS += -I$(abs_srcdir)/../include
>
> -INSTALL_TARGETS := sendfile01
> +INSTALL_TARGETS := sendfile01 SF_Server
Good catch, but can you please rename the file to sendfile01_server and
fix the execution accordingly before it gets applied?
Note that all the test binaries are installed into one directory which
makes it harder to avoid collisions and figure out what belongs to
what...
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH] sendfile01: rename SF_Server to sendfile01_server and add it into Makefile
2013-11-07 16:19 ` chrubis
@ 2013-11-08 2:47 ` Simon Xu
2013-11-11 17:04 ` chrubis
0 siblings, 1 reply; 4+ messages in thread
From: Simon Xu @ 2013-11-08 2:47 UTC (permalink / raw)
To: ltp-list
1) Rename SF_Server to sendfile01_server to avoid collisions
2) The test always fails because SF_Server is not installed, add
sendfile01_server into sendfile01 makefile to install it.
Signed-off-by: Simon Xu <xu.simon@oracle.com>
---
testcases/network/tcp_cmds/sendfile/Makefile | 2 +-
testcases/network/tcp_cmds/sendfile/SF_Server | 6 ------
testcases/network/tcp_cmds/sendfile/sendfile01 | 2 +-
testcases/network/tcp_cmds/sendfile/sendfile01_server | 6 ++++++
4 files changed, 8 insertions(+), 8 deletions(-)
delete mode 100755 testcases/network/tcp_cmds/sendfile/SF_Server
create mode 100755 testcases/network/tcp_cmds/sendfile/sendfile01_server
diff --git a/testcases/network/tcp_cmds/sendfile/Makefile b/testcases/network/tcp_cmds/sendfile/Makefile
index 124ce5d..a8b0736 100644
--- a/testcases/network/tcp_cmds/sendfile/Makefile
+++ b/testcases/network/tcp_cmds/sendfile/Makefile
@@ -27,7 +27,7 @@ include $(abs_srcdir)/../Makefile.inc
CPPFLAGS += -I$(abs_srcdir)/../include
-INSTALL_TARGETS := sendfile01
+INSTALL_TARGETS := sendfile01 sendfile01_server
MAKE_TARGETS += testsf_c testsf_s testsf_c6 testsf_s6
diff --git a/testcases/network/tcp_cmds/sendfile/SF_Server b/testcases/network/tcp_cmds/sendfile/SF_Server
deleted file mode 100755
index 2383ce4..0000000
--- a/testcases/network/tcp_cmds/sendfile/SF_Server
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-#set -x
-cd $3
-exec 1< /dev/null # open descriptor 1
-exec 2< /dev/null # open descriptor 1
-nohup ./testsf_s $1 $2 &
diff --git a/testcases/network/tcp_cmds/sendfile/sendfile01 b/testcases/network/tcp_cmds/sendfile/sendfile01
index 46b90e2..ba61873 100755
--- a/testcases/network/tcp_cmds/sendfile/sendfile01
+++ b/testcases/network/tcp_cmds/sendfile/sendfile01
@@ -84,7 +84,7 @@ do_test()
mkdir -p $TCtmp
PORT=$$
- if ! rsh -l root $IPADDR "$LTPROOT/testcases/bin/SF_Server $IPADDR $PORT $LTPROOT/testcases/bin $SERVER"; then
+ if ! rsh -l root $IPADDR "$LTPROOT/testcases/bin/sendfile01_server $IPADDR $PORT $LTPROOT/testcases/bin $SERVER"; then
end_testcase "rsh failed to $IPADDR as root failed"
fi
sleep 10
diff --git a/testcases/network/tcp_cmds/sendfile/sendfile01_server b/testcases/network/tcp_cmds/sendfile/sendfile01_server
new file mode 100755
index 0000000..2383ce4
--- /dev/null
+++ b/testcases/network/tcp_cmds/sendfile/sendfile01_server
@@ -0,0 +1,6 @@
+#!/bin/sh
+#set -x
+cd $3
+exec 1< /dev/null # open descriptor 1
+exec 2< /dev/null # open descriptor 1
+nohup ./testsf_s $1 $2 &
--
1.8.4.2
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH] sendfile01: rename SF_Server to sendfile01_server and add it into Makefile
2013-11-08 2:47 ` [LTP] [PATCH] sendfile01: rename SF_Server to sendfile01_server and add it into Makefile Simon Xu
@ 2013-11-11 17:04 ` chrubis
0 siblings, 0 replies; 4+ messages in thread
From: chrubis @ 2013-11-11 17:04 UTC (permalink / raw)
To: Simon Xu; +Cc: ltp-list
Hi!
> 1) Rename SF_Server to sendfile01_server to avoid collisions
> 2) The test always fails because SF_Server is not installed, add
> sendfile01_server into sendfile01 makefile to install it.
>
> Signed-off-by: Simon Xu <xu.simon@oracle.com>
Pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-11 17:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-06 6:33 [LTP] [PATCH] sendfile: add SF_Server into INSTALL_TARGETS in Makefile Simon Xu
2013-11-07 16:19 ` chrubis
2013-11-08 2:47 ` [LTP] [PATCH] sendfile01: rename SF_Server to sendfile01_server and add it into Makefile Simon Xu
2013-11-11 17:04 ` chrubis
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.