lofar-astron / DP3

DP3: streaming processing pipeline for radio interferometric data
GNU General Public License v3.0
15 stars 10 forks source link

Use boost testing, reorganize test directory #264

Closed tammojan closed 4 years ago

tammojan commented 4 years ago

This is a squashed version of #262, where I undid extracting test files (MS, parmdb) to ~300 new files. Untarring is now done at CMake time.

Original squashed commits:

Convert applycalh5 test to boost test

Add averager boost test

Add boost unit test to tUVWFlagger

Add boost unit test to tUpsample

Boostify baselineaverager

Boostify demixer (not working) and filter

Boostify h5par, medflagger and gridinterpolate

Boostify ndppp, preflagger and median

WIP boostify PSet

Boostify scaledata and stationadder

Remove cout in uvwflagger test

Change unsigned int to rownr_t in tests

Update/Fix tPSet

Fix UVW pointer to out-of-scope data.

Use CPU_COUNT instead of CPU_ISSET.

Valgrind complained about reading unitialized data here.

tUVWFlagger: Namespace updates

Add BOOST_FAIL case; Remove commented code and cout in tests

Remove unused parameters; remove unused test; add boost check to uvw test 8

Initialise vectors

Remove most using namespace x

tApplyCal namespace updates

Replace BOOST_CHECK(true)

use data range for repetitive tests

Remove last using namespace in tests

Rename tNDPPP -> tDPPP

Use single constant for number of channels.

tScaleData: Remove unused 'using casacore::Complex'.

tPSet: Use BOOST_CHECK_THROW; Use unique_ptr for input.

Refactor tStationAdder structure

Boostify tInterpolateStep

Move and rename tInterpolate(Step).cc

Simplify tInterpolate

tPSet: Replace scoping by separate tests

Remove unused includes