Re: building iscsi-test

149 views
Skip to first unread message

ronnie sahlberg

unread,
Apr 11, 2013, 7:52:31 PM4/11/13
to libi...@googlegroups.com
Hi,

iscsi-test is deprecated, you should use iscsi-test-cu instead. It is
based on CUnit and is much much better :-)


Building iscsi-test and iscsi-test-cu is dune by running make.
But, both depent on libpopt-dev so if you dont have that installed,
make will only build the library but none of the tools.
iscsi-test-cu also depends on having the cunit libraries installed.


Please re-run configure. It should test for both popt and cunit
towards the end :

...
checking whether libpopt is available... yes
checking whether libcunit is available... yes
...

So as long as you have both libpopt and libcunit available the test
tool will be built when you run 'make'


regards
ronnie sahlberg


On Thu, Apr 11, 2013 at 1:38 PM, <ban...@gmail.com> wrote:
> Hi all,
> I've clone the latest source from github. How do I build iscsi-test? The
> instructions in the README don't work for me.
>
> root@andken-deb:~/iscsi_test# ls
> aclocal.m4 config.h config.sub depcomp install-sh
> LICENCE-LGPL-2.1.txt Makefile.am patches test-tool
> autogen.sh config.h.in configure examples lib
> ltmain.sh Makefile.in README TODO
> bin config.log configure.ac include libtool m4
> missing src win32
> config.guess config.status COPYING INSTALL LICENCE-GPL-2.txt
> Makefile packaging stamp-h1
> root@andken-deb:~/iscsi_test# make iscsi-test
> make: *** No rule to make target `iscsi-test'. Stop.
> root@andken-deb:~/iscsi_test#
>
>
>
> For what it's worth, this is on a Debian machine:
> root@andken-deb:~/iscsi_test# uname -a
> Linux andken-deb 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686
> GNU/Linux
>
> --
> You received this message because you are subscribed to the Google Groups
> "libiscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to libiscsi+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Lee Duncan

unread,
Apr 11, 2013, 9:24:02 PM4/11/13
to libi...@googlegroups.com
Do not run "make iscsi-test", since that is not the actual target. Just run "make".

pravee...@gmail.com

unread,
Jun 17, 2013, 3:29:31 AM6/17/13
to libi...@googlegroups.com
Hi,
I have installed libpopt-dev and libcunit-dev, but it seems that configure script didn't check for libpopt.

---xxx---
checking for poll.h... yes
checking for sockaddr_in6 support... yes

checking whether libcunit is available... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libiscsi.pc
---xxx---

When I executed make, only following binary got generated.
-rwxr-xr-x 1 root root 48437 Jun 17 12:46 /usr/local/bin/iscsi-inq
-rwxr-xr-x 1 root root 47280 Jun 17 12:46 /usr/local/bin/iscsi-ls
-rwxr-xr-x 1 root root 28844 Jun 17 12:46 /usr/local/bin/iscsi-readcapacity16

I am not sure why test-tool didn't get compiled.

Can you please let me know if I am missing something.

Thanks.

On Friday, 12 April 2013 05:22:31 UTC+5:30, ronnie sahlberg wrote:
Hi, eems

ronnie sahlberg

unread,
Jun 17, 2013, 9:39:24 AM6/17/13
to libi...@googlegroups.com
Can you try the latest git tree ?

I have removed the dependency of libpopt so that we don't need/use
popt any more.

ronnie sahlberg

unread,
Jun 17, 2013, 9:42:06 AM6/17/13
to libi...@googlegroups.com
-rwxr-xr-x 1 root root 48437 Jun 17 12:46 /usr/local/bin/iscsi-inq
-rwxr-xr-x 1 root root 47280 Jun 17 12:46 /usr/local/bin/iscsi-ls
-rwxr-xr-x 1 root root 28844 Jun 17 12:46 /usr/local/bin/iscsi-readcapacity16


The test tools are not installed when you run make install.
So you have to run them from the directory where you built libiscsi :

./bin/iscsi-test-cu ...


That being said, we should probably add a manpage for iscsi-test-cu
and include it in the install target
and add a new package to hold it "libiscsi-test-suite" or something.

regards
ronnie sahlberg
Reply all
Reply to author
Forward
0 new messages