Missing dep8 tests

Bug #1679392 reported by Joshua Powers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sg3-utils (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

As of April 3, 2017, this source package did not contain package tests
in the current development release of Ubuntu, named Zesty. This was
determined by running `pull-lp-source sg3-utils zesty` and then
checking for the existence of 'debian/tests/' and
'debian/tests/control'. The package was also checked for 1) a test suite
declaration in the debian/control file, 2) any 'test', 'tests',
'testsuite', or 'test-suite' directories, 3) go tests (if applicable),
and 4) a test suite declared in a setup.py (if applicable).

If you feel this report is incorrect (e.g. this is a library or a source
only package) or the check above missed some other package level test
please reply explaining why and mark this bug as 'invalid'.

Test automation is essential to higher levels of quality and confidence
in updates to packages. dep8 tests [1] specify how automatic testing can
be integrated into packages and then run by package maintainers before
new uploads.

This defect is to report the absence of these tests and to report the
opportunity as a potential item for development by both new and
experienced contributors.

Thanks!

[1] http://packaging.ubuntu.com/html/auto-pkg-test.html

 affects ubuntu/sg3-utils
 status new
 importance wishlist
 tag needs-dep8

- ---
Joshua Powers
Ubuntu Server
Canonical Ltd

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJY4sxnAAoJEIP8BxPaZgwlaywQAIipfkwm/Z2yIg2YhNg8bS8h
leOyQh2otU/wU/cdLAcc0EVQck7Ccd17FWrerPI81voXOXqv0y10T+R5AYDW7UNz
kb8gJB3AEpjQQxv0Pr4Ertja1myn1g/MnwUu9zvmodk3RK3erljJ4ZFnhd87PtaD
GiqTWXsZwBpKdI3y4Xzc7WpeR2VwqdjD5HNwW51HBkAyKQ8KCJHTssQlpsLBjLK8
1jexgORtchXFwNP8/SOnGuPHGl4fz9OVfY89D7ya8iRtHXPG3HJpNVV9uelYDzb2
911sgSYzwurpUYT1w0r7xOffywnNp3G0aN6bGUXEpJsQ0PaVxtt5eMSn93VcJA5o
pKSujgNGLaVU+KQVSQPg21LyoBKXBb8BDgIDnOvWTrU77xn65uDtGKQ6Oqk4GlOu
TL5+FUw2UOPyytXOEdx81o/AIMGicc1roBTsvQCCwswJMCU6Y2SdhyKhg04a0o1z
6+gMwjIe3RZXHKJFZQzxJYyNxE3JylRrFPSxIAXbFpvyikqO3ZZdb5fMjIosoRpR
kfgbpBALQAd+KvNHQtnJklyLZ0ikJPqkKtAjPBE9WUQ3zybhkkU1cYUunqRN6+bR
I2c+7MBYSwdiVVb7MJqWfOK4EMmkvdTC4KWMgKuN+nhDamh004fOOP3+44w32rQ2
nIZ4nE4sC1KPTOR789YP
=qS2t
-----END PGP SIGNATURE-----

Tags: needs-dep8
Revision history for this message
Bryce Harrington (bryce) wrote :

This is a collection of binary cli tools and bash scripts that do hardware-specific operations. There have only ever been 10 bugs filed against this package, and nearly all are packaging-related (e.g. sync requests.) Thus, this package may see limited benefit of having dep8 tests.

I think the extent of tests should just check installation of a handful of the most commonly used commands

That said, some simple smoke tests for common commands might be of some usefulness, and could be sufficient to close this bug. From looking at https://www.tldp.org/HOWTO/SCSI-Generic-HOWTO/sg3_utils.html I might suggest something like:

```
test -e /usr/bin/sg_dd
test -e /usr/bin/sg_map
test -e /usr/bin/sg_inq
test -e /usr/bin/sg_read
```

Probably safe to assume that these are representative enough that if they're installed, all the other utilities would be as well.

It's probably unreasonable to assume that the testing environments this runs in will be assured to have any SCSI devices available for the test. But, if that can be guaranteed, then it might be of use to run sg_inq as a basic smoke test.

Changed in sg3-utils (Ubuntu):
status: New → Triaged
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

We have made other tests work using scsi_debug module [1] which usually is available and would work at least in "isolation-machine" environments.
One could check if/what sg tools can query from that.

Another case that could be used to learn from are the tests of packages tgt and multipath-tools.
There we set up iscsi using TGT, if sg_tools can query something that we can construct we could check if the data is as expected.

[1]: http://sg.danny.cz/sg/sdebug26.html

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.