TSIX 1.1 API Test Suite
Common Components
Digital Reference Components
Instructions
- Build the apitest executable with the following command line:
- make -f Makefile.vendorname
- To get a full list of arguments:
- To run the basic API attributes tests:
- To run the full set of endpoint tests using a client and server:
- To run the full set of endpoint test with the server on a different
host:
- On the server host: apitest -s
- On the client host: apitest -c
- Use -v in any of the above for verbose output or use -vv
for really verbose output
Building a Vendor Specific Test Suite
- Create a vendor specific module sd_vendorname.c
- Add the following vendor specific routines to that module, as described
in sd_dec.c
- SD_sec_init
- SD_attr_init
- SD_dump_attr_buf
- Add any vendor-specific defines to sd.h, enclose in #ifdef
vendorname blocks
- Create a Makefile.vendorname to be used for building
the test suite. Replace sd_dec.o with sd_vendorname.o
and modify flags and libraries as needed
- Run make -f Makefile.vendorname
Known Problems
- When using the -cs option to run the client and server together,
sometimes the connection does not get made correctly. If that is a problem,
you can simply run the server on the same host using the apitest -s.
The timeout option does not seem to help.