Comments (9)
The XML file should be written to your current working directory into a file called 'CUnitAutomated-Results.xml'. Also, there's nothing that should prevent -v from being used with -x, though the CLI help text may read like they're mutually exclusive.
Just wondering, what version of CUnit are you using? From a package or installed/built from source? What does
ldd /usr/bin/iscsi-test-cu
output?
Platform may also be helpful, I can try to reproduce...
from libiscsi.
[root@lg572 tmp]# ldd /usr/bin/iscsi-test-cu
/usr/bin/iscsi-test-cu:
linux-vdso.so.1 => (0x00007fff265ff000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fd2037e9000)
libcunit.so.1 => /usr/lib64/libcunit.so.1 (0x00007fd2035da000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd203246000)
libiscsi.so.3 => /usr/lib64/libiscsi.so.3 (0x00007fd203024000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd2039f7000)
CentOS 6.5.
On Fedora20, still nothing. ldd:
yanivk@vd-yanivk:~/libiscsi/test-tool/.libs (master)> ldd ./iscsi-test-cu
linux-vdso.so.1 => (0x00007fff7e581000)
libdl.so.2 => /lib64/libdl.so.2 (0x00000030f0000000)
libcunit.so.1 => /usr/local/lib/libcunit.so.1 (0x00007ff3c9dfb000)
libc.so.6 => /lib64/libc.so.6 (0x00000030efc00000)
libiscsi.so.3 => /usr/local/lib/libiscsi.so.3 (0x00007ff3c9bd8000)
/lib64/ld-linux-x86-64.so.2 (0x00000030ef800000)
from libiscsi.
I use Ubuntu and the --xml option does produce these files.
$ libtool --mode=execute ldd test-tool/iscsi-test-cu
linux-vdso.so.1 => (0x00007fff79ad2000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb553858000)
libcunit.so.1 => /usr/lib/libcunit.so.1 (0x00007fb55364c000)
libiscsi.so.3 => /data/sahlberg/libiscsi/lib/.libs/libiscsi.so.3
(0x00007fb553428000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb553060000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb553a88000)
libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11
(0x00007fb552de2000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0
(0x00007fb552bdc000)
I have added an initial manpage for iscsi-test-cu and copied the text from
the README to the section for --xml.
Please look it over and suggest improvements. I do not use --xml myself so
I need help here to make the --xml section good.
regards
ronnie sahlberg
On Mon, Mar 24, 2014 at 2:06 PM, Yaniv Kaul [email protected]:
[root@lg572 tmp]# ldd /usr/bin/iscsi-test-cu
/usr/bin/iscsi-test-cu:
linux-vdso.so.1 => (0x00007fff265ff000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fd2037e9000)
libcunit.so.1 => /usr/lib64/libcunit.so.1 (0x00007fd2035da000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd203246000)
libiscsi.so.3 => /usr/lib64/libiscsi.so.3 (0x00007fd203024000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd2039f7000)CentOS 6.5.
On Fedora20, still nothing. ldd:
yanivk@vd-yanivk:~/libiscsi/test-tool/.libs (master)> ldd ./iscsi-test-cu
linux-vdso.so.1 => (0x00007fff7e581000)
libdl.so.2 => /lib64/libdl.so.2 (0x00000030f0000000)
libcunit.so.1 => /usr/local/lib/libcunit.so.1 (0x00007ff3c9dfb000)
libc.so.6 => /lib64/libc.so.6 (0x00000030efc00000)
libiscsi.so.3 => /usr/local/lib/libiscsi.so.3 (0x00007ff3c9bd8000)
/lib64/ld-linux-x86-64.so.2 (0x00000030ef800000)Reply to this email directly or view it on GitHubhttps://github.com//issues/100#issuecomment-38500988
.
from libiscsi.
I think I see what the issue is. You are trying to get CUnit XML output but not running any tests. Running:
iscsi-test-cu --xml -l
won't run any tests... try removing the "-l" bit and provide an iscsi:// target URL.
from libiscsi.
I suspect it also doesn't write results if it fails right away:
/usr/bin/iscsi-test-cu -i iqn.2007-10.com.github:sahlberg:libiscsi:iscsi-test -t ALL.Inquiry iscsi://10.205.31.6:3260/iqn.2008-05.com.xtremio:001e67594d7d/0 --xml
READCAPACITY10 command: failed with sense. SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:LOGICAL_UNIT_NOT_SUPPORTED(0x2500)
No XML.
from libiscsi.
Two more issues that are partly related, perhaps worthy of a different issue:
- You can't run multiple tests in a single run: '-t X -t Y'.
- Due to this, when running a single '-t' it creates an XML with a fixed name, unrelated to the test it ran. When running another one, it overwrites that XML. So the interim solution is to run the perl script - which does convert them to Junit XMLs with names based on their test (found out it creates a 'reports' directory under which it puts the XMLs - worth documenting?)
- Need to see if Jenkins can handle multiple XMLs.
from libiscsi.
I will close this issue as the initial issue has been resolved.
I think the right thing to do here is to add a mechanism where you can specify multiple tests or glob patterns for the test suite. I.e. add support so you can do something like option 1, you list above.
I have opened issue #106 to add a mechanism to do this as a separate issue.
from libiscsi.
I will close this issue as the initial issue has been resolved.
I think the right thing to do here is to add a mechanism where you can specify multiple tests or glob patterns for the test suite. I.e. add support so you can do something like option 1, you list above.
I have opened issue #106 to add a mechanism to do this as a separate issue.
from libiscsi.
Please have a look at issue #106.
I have added basic support so you can specify a comma-separated list of
tests.
On Tue, Mar 25, 2014 at 2:02 AM, Yaniv Kaul [email protected]:
Two more issues that are partly related, perhaps worthy of a different
issue:
- You can't run multiple tests in a single run: '-t X -t Y'.
- Due to this, when running a single '-t' it creates an XML with a fixed
name, unrelated to the test it ran. When running another one, it overwrites
that XML. So the interim solution is to run the perl script - which does
convert them to Junit XMLs with names based on their test (found out it
creates a 'reports' directory under which it puts the XMLs - worth
documenting?)- Need to see if Jenkins can handle multiple XMLs.
Reply to this email directly or view it on GitHubhttps://github.com//issues/100#issuecomment-38542648
.
from libiscsi.
Related Issues (20)
- Session leaking resulting from random ISID use
- Ppc64le support has been added in PR#336
- Multiple definition errors in test-tool HOT 4
- Block Device Characteristics failure treated as test failure even though it is an optional command HOT 2
- test_async_write.c file has a minor error when compiling it in CentOS 7 HOT 2
- Building on OSX 10.13 High Sierra, src dir is missing HOT 2
- Missing assert.h lib in examples/iscsi-dd.c HOT 1
- iSCSI.iSCSIResiduals.WriteVerify10Residuals test HOT 1
- uncertain as of how to make connection to target HOT 4
- Can not specify iscsi-inq debug level HOT 1
- iscsi_service failed with : CQ handle Failed
- cannot modify scsi-lowlevel.c file HOT 2
- unable to resolve ipv6 address
- scsi_reportluns_datain_unmarshall incorrect behaviour HOT 2
- write performance is very lower than write performance in XGBE enviroment
- CHAP_A tests does not seem to work as expected
- Question: How to test immediate data? HOT 1
- segfault HOT 1
- sync read calls: where does the data go?
- iscsi-test-cu & logging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libiscsi.