Netcat Test Suite
Netcat (nc) test suite provides set of tests for /usr/bin/nc shipped with OpenSolaris (SUNWnetcat package). Initial integration of Netcat into Solaris is covered by PSARC 2007/389. The test suite was written using CTI/TET harness.
Test Cases
The following test cases are included:
- Tflag
- Uflag
- dflag
- hflag
- iflag
- kflag
- lflag
- nflag
- pflag
- portranges
- rflag
- sflag
- uflag
- vflag
- wflag
- zflag
Each test case tests single nc(1) command line option or functionality and has one ore more test purposes.
Test Suite Coverage
Very simplified view of test suite coverage:
rflag: +
Tflag: +++++~---
pflag: +
iflag: +-
vflag: ++
kflag: +
Uflag: +-
dflag: +
uflag: ++-
sflag: +-
hflag: +
nflag: +-
wflag: +
portranges: +~---
lflag: ++++++++~----------
Each line represents a test case, where each positive/plus character counts for positive test purpose (in that test case) and similarly for each negative/minus character.
Baseline results
All test purposes should PASS. If the result is different a bug should be filed against stc/net/nc.
Changes to the test suite
Any changes to the test suite should be discussed with Networking and Testing community.
More information
Aside from README file of the test suite and discussion forums in the communities, more information about the test suite can be found in testing section of Vlad's blog.