CTblocktest is an example application that generates a variety of CT data formats. It writes the same data in permutations of 3 cases: packed, zipped, numeric (CSV versus binary), for 8 total tests.  With the ‘-r’ command-line option, CTblocktest performs a read-check of its output data; making sure all cases match in time and value as they should.  This provides a good CT regression test to help ensure the CTlib interface remains bug free with future updates.

The block-mode permutations are illustrated by a section of the CTblocktest Java code:

Each runTest generates 10 segments of 10 blocks of 10 points of 10 channels of identical data per test. The following figures illustrate some of the folder/file results. Note that the zipped-folder views look the same, but contain unique internal file structures.


ctnum


ctpackbin


ctpackzipnum


ctblocktest

As all 8 forms of output contain the same data over time, all forms should display the same in a viewer. The above figure shows the WebScan viewer displaying 8 plots, one for each of the CTblocktest output sources.

The CTblocktest example application provides a good demonstration of the flexibility of CloudTurbine file format options. It is also a good quality-assurance test that exercises a wide swath of the API code with results that can be readily reviewed for consistency.