diff --git a/.gitattributes b/.gitattributes index 32f2277e1b6c6bcb6263c334a7167816feb2b061..4c77d7e57b321122bc6d1cc569d14e2057de3719 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4383,6 +4383,7 @@ RTCP/Cobalt/CoInterface/test/tParset.sh eol=lf RTCP/Cobalt/CoInterface/test/tRingCoordinates.py eol=lf RTCP/Cobalt/CoInterface/test/tRingCoordinates.sh eol=lf RTCP/Cobalt/CoInterface/test/tSelfDestructTimer.cc -text +RTCP/Cobalt/CoInterface/test/tcmpfloat.run eol=lf RTCP/Cobalt/CoInterface/test/tcmpfloat.sh eol=lf RTCP/Cobalt/CobaltTest/test/tManyPartTABOutput.in_SAP0-1sb-P001.raw.gz -text svneol=unset#application/x-gzip RTCP/Cobalt/CobaltTest/test/tManyPartTABOutput.in_SAP0-4sb-P000.raw.gz -text svneol=unset#application/x-gzip diff --git a/CEP/DP3/DPPP/test/tApplyBeam.run b/CEP/DP3/DPPP/test/tApplyBeam.run index 8878b0ad9ecf1ceadeba6111c041649ff1f5756e..c10d0c2b3f76b734a51dfc08eee327101e5b0bb2 100755 --- a/CEP/DP3/DPPP/test/tApplyBeam.run +++ b/CEP/DP3/DPPP/test/tApplyBeam.run @@ -24,37 +24,37 @@ tar zxf ${srcdir}/tApplyBeam.tab.tgz echo " select result of 0 rows" > taql.ref echo; echo "Test with invert=true and usechannelfreq=false"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=outinv.ms steps=[applybeam] applybeam.usechannelfreq=false applybeam.invert=true +NDPPP msin=tNDPPP-generic.MS msout=outinv.ms steps=[applybeam] applybeam.usechannelfreq=false applybeam.invert=true # Compare the DATA column of the output MS with the BBS reference output. $taqlexe 'select from outinv.ms t1, tApplyBeam.tab t2 where not all(near(t1.DATA,t2.DATA_noucf,1e-5) || (isnan(t1.DATA) && isnan(t2.DATA_noucf)))' > taql.out diff taql.out taql.ref || exit 1 echo; echo "### Test with invert=false on the output of the previous step"; echo -../../src/NDPPP msin=outinv.ms msout=out.ms steps=[applybeam] applybeam.usechannelfreq=false applybeam.invert=false +NDPPP msin=outinv.ms msout=out.ms steps=[applybeam] applybeam.usechannelfreq=false applybeam.invert=false # Compare the DATA column of the output MS with the original MS. $taqlexe 'select from out.ms t1, tNDPPP-generic.MS t2 where not all(near(t1.DATA,t2.DATA,1e-5) || (isnan(t1.DATA) && isnan(t2.DATA)))' > taql.out diff taql.out taql.ref || exit 1 echo; echo "Test with invert=true and usechannelfreq=true"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=outinv.ms msout.overwrite=true steps=[applybeam] applybeam.usechannelfreq=true applybeam.invert=true +NDPPP msin=tNDPPP-generic.MS msout=outinv.ms msout.overwrite=true steps=[applybeam] applybeam.usechannelfreq=true applybeam.invert=true # Compare the DATA column of the output MS with the BBS reference output. $taqlexe 'select from outinv.ms t1, tApplyBeam.tab t2 where not all(near(t1.DATA,t2.DATA_ucf,1e-5) || (isnan(t1.DATA) && isnan(t2.DATA_ucf)))' > taql.out diff taql.out taql.ref || exit 1 echo; echo "Test with invert=false on the output of the previous step"; echo -../../src/NDPPP msin=outinv.ms msout=out.ms msout.overwrite=true steps=[applybeam] applybeam.usechannelfreq=true applybeam.invert=false +NDPPP msin=outinv.ms msout=out.ms msout.overwrite=true steps=[applybeam] applybeam.usechannelfreq=true applybeam.invert=false # Compare the DATA column of the output MS with the original MS. $taqlexe 'select from out.ms t1, tNDPPP-generic.MS t2 where not all(near(t1.DATA,t2.DATA,1e-5) || (isnan(t1.DATA) && isnan(t2.DATA)))' > taql.out diff taql.out taql.ref || exit 1 echo; echo "Test with beammode=ARRAY_FACTOR"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=outinv.ms msout.overwrite=true steps=[applybeam] applybeam.usechannelfreq=true applybeam.invert=true applybeam.beammode=ARRAY_FACTOR +NDPPP msin=tNDPPP-generic.MS msout=outinv.ms msout.overwrite=true steps=[applybeam] applybeam.usechannelfreq=true applybeam.invert=true applybeam.beammode=ARRAY_FACTOR # Compare the DATA column of the output MS with the BBS reference output. $taqlexe 'select from outinv.ms t1, tApplyBeam.tab t2 where not all(near(t1.DATA,t2.DATA_ARRAY_FACTOR,1e-5) || (isnan(t1.DATA) && isnan(t2.DATA_ARRAY_FACTOR)))' > taql.out diff taql.out taql.ref || exit 1 echo; echo "Test with beammode=ELEMENT"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=outinv.ms msout.overwrite=true steps=[applybeam] applybeam.usechannelfreq=true applybeam.invert=true applybeam.beammode=ELEMENT +NDPPP msin=tNDPPP-generic.MS msout=outinv.ms msout.overwrite=true steps=[applybeam] applybeam.usechannelfreq=true applybeam.invert=true applybeam.beammode=ELEMENT # Compare the DATA column of the output MS with the BBS reference output. $taqlexe 'select from outinv.ms t1, tApplyBeam.tab t2 where not all(near(t1.DATA,t2.DATA_ELEMENT,1e-5) || (isnan(t1.DATA) && isnan(t2.DATA_ELEMENT)))' > taql.out diff taql.out taql.ref || exit 1 diff --git a/CEP/DP3/DPPP/test/tDemix.run_tmpl b/CEP/DP3/DPPP/test/tDemix.run_tmpl index 7d4e06c26131b2715ccb2f32323bd4214a18a952..bfb0b9789d06794b9076872d98f111908f5f8a11 100644 --- a/CEP/DP3/DPPP/test/tDemix.run_tmpl +++ b/CEP/DP3/DPPP/test/tDemix.run_tmpl @@ -7,7 +7,7 @@ taqlexe=@TAQL_EXECUTABLE@ echo; echo "### Test without target."; echo rm -rf instrument -../../src/NDPPP tDemix.parset demix.ignoretarget=true +NDPPP tDemix.parset demix.ignoretarget=true # Compare some columns of the output MS with the reference output. $taqlexe 'select from tDemix_out.MS t1, tDemix_ref1.MS t2 where not all(near(t1.DATA,t2.DATA,1e-3) || (isnan(t1.DATA) && isnan(t2.DATA))) || not all(t1.FLAG = t2.FLAG) || not all(near(t1.WEIGHT_SPECTRUM, t2.WEIGHT_SPECTRUM)) || not all(t1.LOFAR_FULL_RES_FLAG = t2.LOFAR_FULL_RES_FLAG) || t1.ANTENNA1 != t2.ANTENNA1 || t1.ANTENNA2 != t2.ANTENNA2 || t1.TIME !~= t2.TIME' > taql.out diff taql.out taql.ref || exit 1 @@ -17,7 +17,7 @@ diff taql.out taql.ref || exit 1 echo; echo "### Test with target projected away."; echo rm -rf instrument -../../src/NDPPP tDemix.parset demix.ignoretarget=false +NDPPP tDemix.parset demix.ignoretarget=false # Compare some columns of the output MS with the reference output. $taqlexe 'select from tDemix_out.MS t1, tDemix_ref2.MS t2 where not all(near(t1.DATA,t2.DATA,1e-3) || (isnan(t1.DATA) && isnan(t2.DATA))) || not all(t1.FLAG = t2.FLAG) || not all(near(t1.WEIGHT_SPECTRUM, t2.WEIGHT_SPECTRUM)) || not all(t1.LOFAR_FULL_RES_FLAG = t2.LOFAR_FULL_RES_FLAG) || t1.ANTENNA1 != t2.ANTENNA1 || t1.ANTENNA2 != t2.ANTENNA2 || t1.TIME !~= t2.TIME' > taql.out diff taql.out taql.ref || exit 1 @@ -27,7 +27,7 @@ diff taql.out taql.ref || exit 1 echo; echo "### Test with target."; echo rm -rf instrument -../../src/NDPPP tDemix.parset demix.target=CIZA.SP1A.FITS.pbcor_patch_s537 demix.freqstep=32 demix.timestep=5 +NDPPP tDemix.parset demix.target=CIZA.SP1A.FITS.pbcor_patch_s537 demix.freqstep=32 demix.timestep=5 # Compare some columns of the output MS with the reference output. $taqlexe 'select from tDemix_out.MS t1, tDemix_ref3.MS t2 where not all(near(t1.DATA,t2.DATA,1e-3) || (isnan(t1.DATA) && isnan(t2.DATA))) || not all(t1.FLAG = t2.FLAG) || not all(near(t1.WEIGHT_SPECTRUM, t2.WEIGHT_SPECTRUM)) || not all(t1.LOFAR_FULL_RES_FLAG = t2.LOFAR_FULL_RES_FLAG) || t1.ANTENNA1 != t2.ANTENNA1 || t1.ANTENNA2 != t2.ANTENNA2 || t1.TIME !~= t2.TIME' > taql.out diff taql.out taql.ref || exit 1 diff --git a/CEP/DP3/DPPP/test/tGainCal.run b/CEP/DP3/DPPP/test/tGainCal.run index 2309449fe938ea79557d5eeef8d0b3f1097b437d..96165649a5e55e5832a0b431a646254d74dd0f14 100755 --- a/CEP/DP3/DPPP/test/tGainCal.run +++ b/CEP/DP3/DPPP/test/tGainCal.run @@ -24,12 +24,12 @@ tar zxf ${srcdir}/tGainCal.tab.tgz echo " select result of 0 rows" > taql.ref echo "Creating MODEL_DATA so that residual can be computed" -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=false +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=false echo; echo "Test caltype=diagonal"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout= steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-diagonal gaincal.usebeammodel=false gaincal.caltype=diagonal gaincal.propagatesolutions=true gaincal.solint=1 +NDPPP msin=tNDPPP-generic.MS msout= steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-diagonal gaincal.usebeammodel=false gaincal.caltype=diagonal gaincal.propagatesolutions=true gaincal.solint=1 -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-diagonal +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-diagonal echo "Comparing the bbs residual with the dppp residual (solutions will not be equal, but residual should be equal). This avoids issues with local minima." $taqlexe 'select from (select gsumsqr(sumsqr(abs(iif(t1.FLAG,0,t1.DPPP_DIAGONAL-t1.MODEL_DATA)))) as dpppres, gsumsqr(sumsqr(abs(iif(FLAG,0,t2.BBS_DIAGONAL-t1.MODEL_DATA)))) as bbsres from tNDPPP-generic.MS t1, tGainCal.tab t2) where dpppres>bbsres*1.02' > taql.out @@ -39,8 +39,8 @@ $taqlexe 'select from tNDPPP-generic.MS where all(FLAG) groupby true having gcou diff taql.out taql.ref || exit 1 echo; echo "Test caltype=diagonal with timeslotsperparmupdate=4"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout= steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-diagonal-tpp gaincal.usebeammodel=false gaincal.caltype=diagonal gaincal.solint=4 gaincal.timeslotsperparmupdate=1 gaincal.propagatesolutions=false -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_TPP steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-diagonal-tpp +NDPPP msin=tNDPPP-generic.MS msout= steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-diagonal-tpp gaincal.usebeammodel=false gaincal.caltype=diagonal gaincal.solint=4 gaincal.timeslotsperparmupdate=1 gaincal.propagatesolutions=false +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_TPP steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-diagonal-tpp $taqlexe 'select from tNDPP-generic.MS where not all(near(DPPP_DIAGONAL, DPPP_DIAGONAL_TPP))' echo "Comparing the difference between applying with timeslotsperparmupdate = default and timeslotsperparmupdate=1" @@ -51,8 +51,8 @@ $taqlexe 'select from tNDPPP-generic.MS where all(FLAG) groupby true having gcou diff taql.out taql.ref || exit 1 echo; echo "Test caltype=fulljones"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_FULLJONES_GAINCAL steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-fulljones gaincal.usebeammodel=false gaincal.caltype=fulljones gaincal.solint=1 gaincal.applysolution=true -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_FULLJONES steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-fulljones +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_FULLJONES_GAINCAL steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-fulljones gaincal.usebeammodel=false gaincal.caltype=fulljones gaincal.solint=1 gaincal.applysolution=true +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_FULLJONES steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-fulljones echo "Comparing the bbs residual with the dppp residual (solutions will not be equal, but residual should be equal). This avoids issues with local minima." $taqlexe 'select from (select gsumsqr(sumsqr(abs(iif(t1.FLAG,0,t1.DPPP_FULLJONES-t1.MODEL_DATA)))) as dpppres, gsumsqr(sumsqr(abs(iif(FLAG,0,t2.BBS_FULLJONES-t1.MODEL_DATA)))) as bbsres from tNDPPP-generic.MS t1, tGainCal.tab t2) where dpppres>bbsres*1.02' > taql.out @@ -65,8 +65,8 @@ $taqlexe 'select from tNDPPP-generic.MS where all(FLAG) groupby true having gcou diff taql.out taql.ref || exit 1 echo; echo "Test caltype=diagonal, nchan=2"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_NCHAN_GAINCAL steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-diagonal-nchan gaincal.usebeammodel=false gaincal.caltype=diagonal gaincal.solint=4 gaincal.nchan=2 gaincal.applysolution=true -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_NCHAN steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-diagonal-nchan +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_NCHAN_GAINCAL steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-diagonal-nchan gaincal.usebeammodel=false gaincal.caltype=diagonal gaincal.solint=4 gaincal.nchan=2 gaincal.applysolution=true +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_NCHAN steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-diagonal-nchan echo "Comparing the bbs residual with the dppp residual (solutions will not be equal, but residual should be equal). This avoids issues with local minima." $taqlexe 'select from (select gsumsqr(sumsqr(abs(iif(t1.FLAG,0,t1.DPPP_DIAGONAL_NCHAN-t1.MODEL_DATA)))) as dpppres, gsumsqr(sumsqr(abs(iif(FLAG,0,t2.BBS_DIAGONAL_NCHAN-t1.MODEL_DATA)))) as bbsres from tNDPPP-generic.MS t1, tGainCal.tab t2) where dpppres>bbsres*1.02' > taql.out @@ -81,8 +81,8 @@ $taqlexe 'select from tNDPPP-generic.MS where all(FLAG) groupby true having gcou diff taql.out taql.ref || exit 1 echo; echo "Test caltype=diagonal, nchan=2, solint=7"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_NCHAN_7_GAINCAL steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-diagonal-nchan gaincal.usebeammodel=false gaincal.caltype=diagonal gaincal.solint=4 gaincal.nchan=2 gaincal.applysolution=true -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_NCHAN_7 steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-diagonal-nchan +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_NCHAN_7_GAINCAL steps=[gaincal] gaincal.sourcedb=tNDPPP-generic.MS/sky gaincal.parmdb=tNDPPP-generic.MS/inst-diagonal-nchan gaincal.usebeammodel=false gaincal.caltype=diagonal gaincal.solint=4 gaincal.nchan=2 gaincal.applysolution=true +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=DPPP_DIAGONAL_NCHAN_7 steps=[applycal] applycal.parmdb=tNDPPP-generic.MS/inst-diagonal-nchan echo "Comparing the solutions from gaincal + applycal with gaincal directly" $taqlexe 'select from tNDPPP-generic.MS where not(all(DPPP_DIAGONAL_NCHAN_7_GAINCAL ~= DPPP_DIAGONAL_NCHAN_7))' > taql.out diff --git a/CEP/DP3/DPPP/test/tPredict.run b/CEP/DP3/DPPP/test/tPredict.run index c5a240a07a0c4807bacec683683e2688751f2283..0325d0544be8e89c13ff90e4806dba362b8b3c84 100755 --- a/CEP/DP3/DPPP/test/tPredict.run +++ b/CEP/DP3/DPPP/test/tPredict.run @@ -24,37 +24,37 @@ tar zxf ${srcdir}/tPredict.tab.tgz echo " select result of 0 rows" > taql.ref echo; echo "Test with beam, subtract"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=true predict.operation=subtract +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=true predict.operation=subtract # Compare the MODEL_DATA column of the output MS with the original data minus the BBS reference output. $taqlexe 'select from tNDPPP-generic.MS t1, tPredict.tab t2 where not all(near(t1.MODEL_DATA,t1.DATA-t2.PREDICT_beam,5e-2) || (isnan(t1.DATA) && isnan(t2.PREDICT_beam)))' > taql.out diff taql.out taql.ref || exit 1 echo; echo "Test without beam, add"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=false predict.operation=add +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=false predict.operation=add # Compare the MODEL_DATA column of the output MS with the original data plus the BBS reference output. $taqlexe 'select from tNDPPP-generic.MS t1, tPredict.tab t2 where not all(near(t1.MODEL_DATA,t1.DATA+t2.PREDICT_nobeam,5e-2) || (isnan(t1.DATA) && isnan(t2.PREDICT_beam)))' > taql.out diff taql.out taql.ref || exit 1 echo; echo "Test without beam, with applycal, subtract (like peeling)"; echo -../../../../ParmDB/src/parmdbm <<EOL +parmdbm <<EOL open table="tPredict.parmdb" adddef Gain:0:0:Real values=3. adddef Gain:1:1:Real values=3. EOL -../../src/NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.applycal.parmdb=tPredict.parmdb predict.operation=subtract +NDPPP msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.applycal.parmdb=tPredict.parmdb predict.operation=subtract # Compare the MODEL_DATA column of the output MS with the original data minus the BBS reference output. $taqlexe 'select from tNDPPP-generic.MS t1, tPredict.tab t2 where not all(near(t1.MODEL_DATA,t1.DATA-9.0*t2.PREDICT_nobeam,5e-2) || (isnan(t1.DATA) && isnan(t2.PREDICT_nobeam)))' > taql.out diff taql.out taql.ref || exit 1 echo; echo "Test without beam"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=. steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky +NDPPP msin=tNDPPP-generic.MS msout=. steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky # Compare the DATA column of the output MS with the BBS reference output. $taqlexe 'select ANTENNA1, ANTENNA2, ctime(TIME), FLAG[0,0], t1.DATA[0,0], t2.PREDICT_nobeam[0,0] from tNDPPP-generic.MS t1, tPredict.tab t2 where not near(t1.DATA[0,0],t2.PREDICT_nobeam[0,0],5e-2)' $taqlexe 'select from tNDPPP-generic.MS t1, tPredict.tab t2 where not all(near(t1.DATA,t2.PREDICT_nobeam,5e-2) || (isnan(t1.DATA) && isnan(t2.PREDICT_nobeam)))' > taql.out diff taql.out taql.ref || exit 1 echo; echo "Test with beam"; echo -../../src/NDPPP msin=tNDPPP-generic.MS msout=. steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=true +NDPPP msin=tNDPPP-generic.MS msout=. steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=true # Compare the DATA column of the output MS with the BBS reference output. $taqlexe 'select from tNDPPP-generic.MS t1, tPredict.tab t2 where not all(near(t1.DATA,t2.PREDICT_beam,5e-2) || (isnan(t1.DATA) && isnan(t2.PREDICT_beam)))' > taql.out diff taql.out taql.ref || exit 1 diff --git a/CEP/DP3/PythonDPPP/test/tPythonStep.run b/CEP/DP3/PythonDPPP/test/tPythonStep.run index deee0fd07d1f61820e68ccbddf8253f732b06649..e5dc9ba0b0d718c0a35a6450d17c632c89614eb9 100755 --- a/CEP/DP3/PythonDPPP/test/tPythonStep.run +++ b/CEP/DP3/PythonDPPP/test/tPythonStep.run @@ -20,5 +20,5 @@ export LD_LIBRARY_PATH export DYLD_LIBRARY_PATH # Run NDPPP with the test python step. -../../DPPP/src/NDPPP msin=tPythonStep_tmp.MS msout=tPythonStep_tmp.msout msout.overwrite=T steps='[pystep,pystep2]' pystep.type=PythonDPPP pystep.python.module=tPythonStep pystep.python.class=tPythonStep pystep.somekey=somevalue pystep2.type=pythondppp pystep2.python.class=tPythonStep pystep2.incr=3.5 +NDPPP msin=tPythonStep_tmp.MS msout=tPythonStep_tmp.msout msout.overwrite=T steps='[pystep,pystep2]' pystep.type=PythonDPPP pystep.python.module=tPythonStep pystep.python.class=tPythonStep pystep.somekey=somevalue pystep2.type=pythondppp pystep2.python.class=tPythonStep pystep2.incr=3.5 diff --git a/CEP/LMWCommon/test/tfinddproc.run b/CEP/LMWCommon/test/tfinddproc.run index da784e956f6c8926c3da9bb4c5a85b2101a70823..59c8748dc0936b8de3e1cfa841333681e63e3497 100755 --- a/CEP/LMWCommon/test/tfinddproc.run +++ b/CEP/LMWCommon/test/tfinddproc.run @@ -25,10 +25,10 @@ # $Id$ -../src/finddproc tfinddproc.in_vd tfinddproc.in_cd +finddproc tfinddproc.in_vd tfinddproc.in_cd echo -../src/finddproc -dirs /usr/local/xyx0,/usr/local/xyx1 tfinddproc.in_cd +finddproc -dirs /usr/local/xyx0,/usr/local/xyx1 tfinddproc.in_cd echo -../src/finddproc -ndir 1 -dirs /usr/local/xyx0,/usr/local/xyx1 tfinddproc.in_cd +finddproc -ndir 1 -dirs /usr/local/xyx0,/usr/local/xyx1 tfinddproc.in_cd echo -../src/finddproc -ndir 5 -dirs /usr/local/xyx0,/usr/local/xyx1 tfinddproc.in_cd +finddproc -ndir 5 -dirs /usr/local/xyx0,/usr/local/xyx1 tfinddproc.in_cd diff --git a/CEP/LMWCommon/test/tstartdproc.run b/CEP/LMWCommon/test/tstartdproc.run index 964c9e8bc21f117dc8886eeda552d13388e3a61b..ae5070409571fc218b9da23654603685a153a72e 100755 --- a/CEP/LMWCommon/test/tstartdproc.run +++ b/CEP/LMWCommon/test/tstartdproc.run @@ -41,20 +41,20 @@ PATH="$ssdir:$sedir:$curdir:$PATH" export PATH startdistproc -dsn tstartdproc.in_vd -cdn tstartdproc.in_cd \ --mode single -dry -hfn tstartdproc_tmp.out0 -fdp ../src prog1 -arg "a b" +-mode single -dry -hfn tstartdproc_tmp.out0 prog1 -arg "a b" echo "status=$?" cat tstartdproc_tmp.out0 echo '' startdistproc -dsn tstartdproc.in_vd -cdn tstartdproc.in_cd \ --mode mpi -dry -hfn tstartdproc_tmp.out1 -fdp ../src prog1 -arg "a b" +-mode mpi -dry -hfn tstartdproc_tmp.out1 prog1 -arg "a b" echo "status=$?" cat tstartdproc_tmp.out1 echo '' startdistproc -useenv "$curdir/tstartdproc_tmp.out2.envfile" \ -dsn tstartdproc.in_vd -cdn tstartdproc.in_cd \ --mode 3851 -dry -hfn tstartdproc_tmp.out2 -fdp ../src prog1 -arg "a b" \ +-mode 3851 -dry -hfn tstartdproc_tmp.out2 prog1 -arg "a b" \ > tstartdproc_tmp.log2 echo "status=$?" cat tstartdproc_tmp.out2 @@ -65,7 +65,7 @@ echo '' startdistproc -killonfail -useenv "$curdir/tstartdproc_tmp.out3.envfile" \ -logfile "$curdir/tstartdproc_tmp.log3b" \ -dsn tstartdproc.in_vd -cdn tstartdproc.in_cd1 -nostartmaster \ --mode 3851 -hfn tstartdproc_tmp.out3 -fdp ../src "`pwd`/tstartdproc.in_run" \ +-mode 3851 -hfn tstartdproc_tmp.out3 "`pwd`/tstartdproc.in_run" \ > tstartdproc_tmp.log3a echo "status=$?" cat tstartdproc_tmp.out3 diff --git a/CEP/MS/test/tVdsMaker.run b/CEP/MS/test/tVdsMaker.run index 30a073f919fcf76d9412367d7470fc598036ab5e..d1f89f600311b48b07a05c40a47c66388f51ffff 100755 --- a/CEP/MS/test/tVdsMaker.run +++ b/CEP/MS/test/tVdsMaker.run @@ -10,7 +10,7 @@ sed -e "s%$cwd/%%" tVdsMaker_tmp.ms2.vds echo "" echo "combinevds ..." -../src/combinevds tVdsMaker_tmp.ms.gds tVdsMaker_tmp.ms1.vds tVdsMaker_tmp.ms2.vds > tVdsMaker_tmp.out1 || exit 1 +combinevds tVdsMaker_tmp.ms.gds tVdsMaker_tmp.ms1.vds tVdsMaker_tmp.ms2.vds > tVdsMaker_tmp.out1 || exit 1 grep -v "INFO " tVdsMaker_tmp.out1 # Remove system specific work directory from output. sed -e "s%$cwd/%%" tVdsMaker_tmp.ms.gds diff --git a/CEP/MS/test/tcombinevds.run b/CEP/MS/test/tcombinevds.run index 1d7079a4834c62895c64c9ea6b7e35e58e772fd0..ea6aae81a84eb9384e8b2ee159ead8cc3bd09189 100755 --- a/CEP/MS/test/tcombinevds.run +++ b/CEP/MS/test/tcombinevds.run @@ -22,7 +22,7 @@ # # $Id$ -../src/combinevds tcombinevds_tmp.vdsout tcombinevds.in_vds1 tcombinevds.in_vds2 +combinevds tcombinevds_tmp.vdsout tcombinevds.in_vds1 tcombinevds.in_vds2 # Keywords Name have absolute paths in their values, so remove them if needed. if test "$1" = 1; then cat tcombinevds_tmp.vdsout diff --git a/CEP/ParmDB/test/tParmFacade.run b/CEP/ParmDB/test/tParmFacade.run index c8369da33ee6c23f26a5994a5d995d5b89bcd8df..b7ff43a9c51ec3d3a09104f39aad017bb6f25b39 100755 --- a/CEP/ParmDB/test/tParmFacade.run +++ b/CEP/ParmDB/test/tParmFacade.run @@ -23,7 +23,7 @@ # $Id$ -../src/parmdbm <<EOF > tParmFacade_tmp.pdbout +parmdbm <<EOF > tParmFacade_tmp.pdbout create tablename='tParmFacade_tmp.pdb' add parm1 domain=[1,4,5,10],values=2 add parm2 type='polc', domain=[1,4,5,10], values=[2,0.1], nx=2 diff --git a/CEP/ParmDB/test/tParmFacadeDistr.run b/CEP/ParmDB/test/tParmFacadeDistr.run index aae67df3e27fae34b97ea48080fd4928f73e080a..e8c9bf3fad02ae2bb07d629b8cfbb302a5fcef00 100755 --- a/CEP/ParmDB/test/tParmFacadeDistr.run +++ b/CEP/ParmDB/test/tParmFacadeDistr.run @@ -30,20 +30,10 @@ if test "$srcdir" = ""; then srcdir=../../../../../LOFAR/CEP/ParmDB/test fi -curdir=`pwd` -srcdir=`cd $srcdir/../src > /dev/null && pwd` -exedir=`cd ../src > /dev/null && pwd` -mwsdir=`cd $srcdir/../../LMWCommon/src > /dev/null && pwd` -mwedir=`cd ../../LMWCommon/src > /dev/null && pwd` - -# Extend PATH. -PATH=$curdir:$srcdir:$exedir:$mwsdir:$mwedir:$PATH -export PATH - # The test uses 2 remote pdb-s, so create them. echo "Filling pdb1" -../src/parmdbm <<EOF > tParmFacadeDistr_tmp.pdbout +parmdbm <<EOF > tParmFacadeDistr_tmp.pdbout create tablename='tParmFacadeDistr_tmp.pdb1' add parm1 domain=[1,4,5,10],values=2 add parm2 type='polc', domain=[1,4,5,10], values=[2,0.1], nx=2 @@ -55,7 +45,7 @@ if [ $? != 0 ]; then exit 1 fi echo "Filling pdb2" -../src/parmdbm <<EOF > tParmFacadeDistr_tmp.pdbout +parmdbm <<EOF > tParmFacadeDistr_tmp.pdbout create tablename='tParmFacadeDistr_tmp.pdb2' add parm1 domain=[7,10,5,10],values=3 add parm2 type='polc', domain=[7,10,5,10], values=[6,0.3], nx=2 diff --git a/CEP/ParmDB/test/tParmPolc.run b/CEP/ParmDB/test/tParmPolc.run index c454f169fbb6ddc653d87363ec6988495d07b8db..f4f5a4289f835f39cc22d85dcb9a21bbfcd634f7 100755 --- a/CEP/ParmDB/test/tParmPolc.run +++ b/CEP/ParmDB/test/tParmPolc.run @@ -1,7 +1,7 @@ #!/bin/sh # Create a ParmDB with a few polcs in it. -../src/parmdbm <<EOF +parmdbm <<EOF create table='tParmPolc_tmp.pdb' add Clock:DE601HBA domain=[0,10,0,10], values=[7.36616e-08,1.28864e-07], ny=2, type='polc' add Clock:DE601HBA domain=[0,10,10,20], values=[8.36616e-08,0.28864e-07], ny=2, type='polc' diff --git a/CEP/ParmDB/test/tSourceDBBlob.run b/CEP/ParmDB/test/tSourceDBBlob.run index 71c45d9b34f1abe5cac721b4d956128c6783fbca..6da9fd4a18c2b16d9cf0fb48d1dac691e03ab0d5 100755 --- a/CEP/ParmDB/test/tSourceDBBlob.run +++ b/CEP/ParmDB/test/tSourceDBBlob.run @@ -3,19 +3,19 @@ # First make a new SourceDB. echo "Creating new file in blob format ..." rm -rf tSourceDBBlob_tmp.src -../src/makesourcedb in=tSourceDBBlob.in format='<' out=tSourceDBBlob_tmp.src outtype=blob append=false +makesourcedb in=tSourceDBBlob.in format='<' out=tSourceDBBlob_tmp.src outtype=blob append=false ./tSourceDBBlob # Append to the SourceDB. echo echo "Appending to file ..." -../src/makesourcedb in=tSourceDBBlob.in format='<' out=tSourceDBBlob_tmp.src outtype=blob append=true +makesourcedb in=tSourceDBBlob.in format='<' out=tSourceDBBlob_tmp.src outtype=blob append=true ./tSourceDBBlob # First make a new SourceDB. echo echo "Creating new file in casa format ..." rm -rf tSourceDBBlob_tmp.src -../src/makesourcedb in=tSourceDBBlob.in format='<' out=tSourceDBBlob_tmp.src append=false +makesourcedb in=tSourceDBBlob.in format='<' out=tSourceDBBlob_tmp.src append=false ./tSourceDBBlob diff --git a/CEP/ParmDB/test/tSourceDBBlob.stdout b/CEP/ParmDB/test/tSourceDBBlob.stdout index 1efc454c86cec8aebb3c45bfbc58dd29f17f3510..061797effcf7e7c7a5b73181362481483d34e6e6 100644 --- a/CEP/ParmDB/test/tSourceDBBlob.stdout +++ b/CEP/ParmDB/test/tSourceDBBlob.stdout @@ -1,5 +1,5 @@ Creating new file in blob format ... -../src/makesourcedb: Version GvD 2013-May-16 +makesourcedb: Version GvD 2013-May-16 Wrote 0 patches (out of 0) and 5 sources (out of 5) into tSourceDBBlob_tmp.src Source name: sun @@ -142,7 +142,7 @@ Patch names: [] Patch names: [cygnus,cygnusA,lena] Appending to file ... -../src/makesourcedb: Version GvD 2013-May-16 +makesourcedb: Version GvD 2013-May-16 Wrote 0 patches (out of 0) and 5 sources (out of 5) into tSourceDBBlob_tmp.src Source name: sun @@ -417,7 +417,7 @@ Patch names: [] Patch names: [cygnus,cygnusA,lena] Creating new file in casa format ... -../src/makesourcedb: Version GvD 2013-May-16 +makesourcedb: Version GvD 2013-May-16 Wrote 0 patches (out of 0) and 5 sources (out of 5) into tSourceDBBlob_tmp.src Source name: sun diff --git a/CEP/ParmDB/test/tmakesourcedb.run b/CEP/ParmDB/test/tmakesourcedb.run index 3920c9d287b670dc6dd5af3aaaa5016b4f94e73f..f929b85f5c3fbf09f79fb71f31528c8ce1b987a8 100755 --- a/CEP/ParmDB/test/tmakesourcedb.run +++ b/CEP/ParmDB/test/tmakesourcedb.run @@ -24,8 +24,8 @@ # Remove the Version line from the output because it is system dependent. echo "test 1 ..." -../src/makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 format="< " | grep -v ' Version ' -../src/parmdbm tmakesourcedb_tmp.stdout > /dev/null <<EOF +makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 format="< " | grep -v ' Version ' +parmdbm tmakesourcedb_tmp.stdout > /dev/null <<EOF open tablename='tmakesourcedb_tmp.sdb' showdef EOF @@ -33,8 +33,8 @@ cat tmakesourcedb_tmp.stdout echo "" echo "test 2 ..." -../src/makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 format="category=fixed'1',Name,Type,RefType,Ra,Dec,I,Q,U,V,SpectralIndex='0.5',ReferenceFrequency='1e9',MajorAxis,MinorAxis,Orientation" patchprefix='p_' patchsuffix='-suf' | grep -v ' Version ' -../src/parmdbm tmakesourcedb_tmp.stdout > /dev/null <<EOF +makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 format="category=fixed'1',Name,Type,RefType,Ra,Dec,I,Q,U,V,SpectralIndex='0.5',ReferenceFrequency='1e9',MajorAxis,MinorAxis,Orientation" patchprefix='p_' patchsuffix='-suf' | grep -v ' Version ' +parmdbm tmakesourcedb_tmp.stdout > /dev/null <<EOF open tablename='tmakesourcedb_tmp.sdb' showdef EOF @@ -42,8 +42,8 @@ cat tmakesourcedb_tmp.stdout echo "" echo "test 3 ..." -../src/makesourcedb in=tmakesourcedb.in_1 out=tmakesourcedb_tmp.sdb1 append=0 average=0 format="<" | grep -v ' Version ' -../src/parmdbm tmakesourcedb_tmp.stdout > /dev/null <<EOF +makesourcedb in=tmakesourcedb.in_1 out=tmakesourcedb_tmp.sdb1 append=0 average=0 format="<" | grep -v ' Version ' +parmdbm tmakesourcedb_tmp.stdout > /dev/null <<EOF open tablename='tmakesourcedb_tmp.sdb1' showdef EOF @@ -51,8 +51,8 @@ cat tmakesourcedb_tmp.stdout echo "" echo "test 4 ..." -../src/makesourcedb in=tmakesourcedb.in_2 out=tmakesourcedb_tmp.sdb append=0 average=1 format="category=fixed'3', patch=fixed'patch1' Name Type Rah ram ras Decd : decm : decs I, Q, U, V, SpectralIndex=fixed'[1.5,0.01]', ReferenceFrequency=fixed'60e6', MajorAxis, MinorAxis, Orientation, Parm1, RotationMeasure, PolarizationAngle, PolarizedFraction, a0:b=fixed'3.0'" | grep -v ' Version ' -../src/parmdbm tmakesourcedb_tmp.stdout > /dev/null <<EOF +makesourcedb in=tmakesourcedb.in_2 out=tmakesourcedb_tmp.sdb append=0 average=1 format="category=fixed'3', patch=fixed'patch1' Name Type Rah ram ras Decd : decm : decs I, Q, U, V, SpectralIndex=fixed'[1.5,0.01]', ReferenceFrequency=fixed'60e6', MajorAxis, MinorAxis, Orientation, Parm1, RotationMeasure, PolarizationAngle, PolarizedFraction, a0:b=fixed'3.0'" | grep -v ' Version ' +parmdbm tmakesourcedb_tmp.stdout > /dev/null <<EOF open tablename='tmakesourcedb_tmp.sdb' showdef EOF @@ -87,9 +87,9 @@ fi echo "<<<" exit 0 # Select using a cone -../src/makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 average=0 format="," center="" center="23deg,45.0.0.00" radius="1arcsec" | grep -v ' Version ' -../src/makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 average=0 format="," center="" center="23deg,45.0.2.00" radius="1.9arcsec" | grep -v ' Version ' -../src/makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 average=0 format="," center="" center="23deg,45.0.0.00" width="1arcsec" | grep -v ' Version ' -../src/makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 average=0 format="," center="" center="23deg,45.0.2.00" width="10arcmin,4.1arcsec" | grep -v ' Version ' -../src/makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append= average=00 format="," center="" center="23deg,45.0.2.00" width="10arcmin,3.9arcsec" | grep -v ' Version ' +makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 average=0 format="," center="" center="23deg,45.0.0.00" radius="1arcsec" | grep -v ' Version ' +makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 average=0 format="," center="" center="23deg,45.0.2.00" radius="1.9arcsec" | grep -v ' Version ' +makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 average=0 format="," center="" center="23deg,45.0.0.00" width="1arcsec" | grep -v ' Version ' +makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append=0 average=0 format="," center="" center="23deg,45.0.2.00" width="10arcmin,4.1arcsec" | grep -v ' Version ' +makesourcedb in=tmakesourcedb.in out=tmakesourcedb_tmp.sdb append= average=00 format="," center="" center="23deg,45.0.2.00" width="10arcmin,3.9arcsec" | grep -v ' Version ' diff --git a/CEP/ParmDB/test/tmergesourcedb.run b/CEP/ParmDB/test/tmergesourcedb.run index 978b0cb37264fb5f0f92d40ec0520418d6369b0a..a21c6442643d3955087aace9bb29fcdbf91b91cd 100755 --- a/CEP/ParmDB/test/tmergesourcedb.run +++ b/CEP/ParmDB/test/tmergesourcedb.run @@ -26,40 +26,40 @@ rm -rf tmergesourcedb_tmp.sdb* # Remove the Version line from the output because it is system dependent. echo "create sourcedb-s ..." -../src/makesourcedb in=tmergesourcedb.in_1 out=tmergesourcedb_tmp.sdbc1 append=0 outtype=casa format="< " | grep -v ' Version ' -../src/makesourcedb in=tmergesourcedb.in_2 out=tmergesourcedb_tmp.sdbc2 append=0 outtype=casa format="< " | grep -v ' Version ' -../src/showsourcedb in=tmergesourcedb_tmp.sdbc1 | grep -v ' Version ' -../src/showsourcedb in=tmergesourcedb_tmp.sdbc2 | grep -v ' Version ' +makesourcedb in=tmergesourcedb.in_1 out=tmergesourcedb_tmp.sdbc1 append=0 outtype=casa format="< " | grep -v ' Version ' +makesourcedb in=tmergesourcedb.in_2 out=tmergesourcedb_tmp.sdbc2 append=0 outtype=casa format="< " | grep -v ' Version ' +showsourcedb in=tmergesourcedb_tmp.sdbc1 | grep -v ' Version ' +showsourcedb in=tmergesourcedb_tmp.sdbc2 | grep -v ' Version ' # Merge the two sdb-s and show the result. echo "test merge mode=match ..." -../src/mergesourcedb in1=tmergesourcedb_tmp.sdbc1 in2=tmergesourcedb_tmp.sdbc2 out=tmergesourcedb_tmp.sdbcm outtype=casa append=0 mode=match | grep -v ' Version ' -../src/showsourcedb in=tmergesourcedb_tmp.sdbcm | grep -v ' Version ' +mergesourcedb in1=tmergesourcedb_tmp.sdbc1 in2=tmergesourcedb_tmp.sdbc2 out=tmergesourcedb_tmp.sdbcm outtype=casa append=0 mode=match | grep -v ' Version ' +showsourcedb in=tmergesourcedb_tmp.sdbcm | grep -v ' Version ' echo echo "test mode=all ..." # Merge the two sdb-s and show the result. -../src/mergesourcedb in1=tmergesourcedb_tmp.sdbc1 in2=tmergesourcedb_tmp.sdbc2 out=tmergesourcedb_tmp.sdbca append=0 mode=all | grep -v ' Version ' -../src/showsourcedb in=tmergesourcedb_tmp.sdbca | grep -v ' Version ' +mergesourcedb in1=tmergesourcedb_tmp.sdbc1 in2=tmergesourcedb_tmp.sdbc2 out=tmergesourcedb_tmp.sdbca append=0 mode=all | grep -v ' Version ' +showsourcedb in=tmergesourcedb_tmp.sdbca | grep -v ' Version ' # Now do the same for blob mode. echo echo "create sourcedb-s ..." -../src/makesourcedb in=tmergesourcedb.in_1 out=tmergesourcedb_tmp.sdbb1 append=0 outtype=blob format="< " | grep -v ' Version ' -../src/makesourcedb in=tmergesourcedb.in_2 out=tmergesourcedb_tmp.sdbb2 append=0 outtype=blob format="< " | grep -v ' Version ' -../src/showsourcedb in=tmergesourcedb_tmp.sdbb1 | grep -v ' Version ' -../src/showsourcedb in=tmergesourcedb_tmp.sdbb2 | grep -v ' Version ' +makesourcedb in=tmergesourcedb.in_1 out=tmergesourcedb_tmp.sdbb1 append=0 outtype=blob format="< " | grep -v ' Version ' +makesourcedb in=tmergesourcedb.in_2 out=tmergesourcedb_tmp.sdbb2 append=0 outtype=blob format="< " | grep -v ' Version ' +showsourcedb in=tmergesourcedb_tmp.sdbb1 | grep -v ' Version ' +showsourcedb in=tmergesourcedb_tmp.sdbb2 | grep -v ' Version ' # Merge the two sdb-s and show the result. echo "test merge mode=match ..." -../src/mergesourcedb in1=tmergesourcedb_tmp.sdbb1 in2=tmergesourcedb_tmp.sdbb2 out=tmergesourcedb_tmp.sdbbm outtype=blob append=0 mode=match | grep -v ' Version ' -../src/showsourcedb in=tmergesourcedb_tmp.sdbbm | grep -v ' Version ' +mergesourcedb in1=tmergesourcedb_tmp.sdbb1 in2=tmergesourcedb_tmp.sdbb2 out=tmergesourcedb_tmp.sdbbm outtype=blob append=0 mode=match | grep -v ' Version ' +showsourcedb in=tmergesourcedb_tmp.sdbbm | grep -v ' Version ' echo echo "test mode=all ..." # Merge the two sdb-s and show the result. -../src/mergesourcedb in1=tmergesourcedb_tmp.sdbb1 in2=tmergesourcedb_tmp.sdbb2 out=tmergesourcedb_tmp.sdbba outtype=blob append=0 mode=all | grep -v ' Version ' -../src/showsourcedb in=tmergesourcedb_tmp.sdbba | grep -v ' Version ' +mergesourcedb in1=tmergesourcedb_tmp.sdbb1 in2=tmergesourcedb_tmp.sdbb2 out=tmergesourcedb_tmp.sdbba outtype=blob append=0 mode=all | grep -v ' Version ' +showsourcedb in=tmergesourcedb_tmp.sdbba | grep -v ' Version ' exit 0 diff --git a/CEP/ParmDB/test/tparmdb.run b/CEP/ParmDB/test/tparmdb.run index 4684b0aec81f19ae1af2826d7a6095dcdcf60866..6051a32c9c4d3ffb3d08190006088e5a8aa9ae73 100755 --- a/CEP/ParmDB/test/tparmdb.run +++ b/CEP/ParmDB/test/tparmdb.run @@ -23,6 +23,6 @@ # $Id$ -../src/parmdbm tparmdb_tmp.stdout < tparmdb.in > /dev/null +parmdbm tparmdb_tmp.stdout < tparmdb.in > /dev/null cat tparmdb_tmp.stdout #sed -e '/Assertion: /d' tparmdb_tmp.outtmp diff --git a/CEP/ParmDB/test/tparmexportcal.run b/CEP/ParmDB/test/tparmexportcal.run index 63489a24d1c580eac96a627194a0852f1cdcb7af..657b0b18d5b8bcda0e252c024e0cb77f3a988714 100755 --- a/CEP/ParmDB/test/tparmexportcal.run +++ b/CEP/ParmDB/test/tparmexportcal.run @@ -24,7 +24,7 @@ showparms() { - ../src/parmdbm tparmexportcal_tmp.stdout > /dev/null << EOF + parmdbm tparmexportcal_tmp.stdout > /dev/null << EOF open tablename='tparmexportcal_tmp.pdb2' showdef show @@ -35,7 +35,7 @@ EOF } # Create the ParmDB to be exported. -../src/parmdbm tparmexportcal_tmp.stdout > /dev/null << EOF +parmdbm tparmexportcal_tmp.stdout > /dev/null << EOF create tablename='tparmexportcal_tmp.pdb' add Gain:S1:Real:1 nx=2,ny=1,values=[0.1, 0.2], domain=[1,3,2,4] add Gain:S1:Imag:1 nx=2,ny=1,values=[ 1, 2], domain=[1,3,2,4] @@ -46,17 +46,17 @@ grep -v ": Version " tparmexportcal_tmp.stdout # Export in standard way and show result. echo "" -../src/parmexportcal in=tparmexportcal_tmp.pdb out=tparmexportcal_tmp.pdb2 | grep -v ": Version " | grep -v "INFO " +parmexportcal in=tparmexportcal_tmp.pdb out=tparmexportcal_tmp.pdb2 | grep -v ": Version " | grep -v "INFO " showparms # Export in as ampl/phase way and show result. echo "" -../src/parmexportcal in=tparmexportcal_tmp.pdb out=tparmexportcal_tmp.pdb2 type=polar | grep -v ": Version " | grep -v "INFO " +parmexportcal in=tparmexportcal_tmp.pdb out=tparmexportcal_tmp.pdb2 type=polar | grep -v ": Version " | grep -v "INFO " showparms # Create another ParmDB to be exported. echo "" -../src/parmdbm tparmexportcal_tmp.stdout > /dev/null << EOF +parmdbm tparmexportcal_tmp.stdout > /dev/null << EOF create tablename='tparmexportcal_tmp.pdb' add Gain:S1:Phase:1 ny=2,values=[0.1, 0.2], domain=[1,3,2,4] add Gain:S1:Ampl:1 ny=2,values=[ 1, 2], domain=[1,3,2,4] @@ -67,11 +67,11 @@ grep -v ": Version " tparmexportcal_tmp.stdout # Export in standard way and show result. echo "" -../src/parmexportcal in=tparmexportcal_tmp.pdb out=tparmexportcal_tmp.pdb2 zerophase=true | grep -v ": Version " | grep -v "INFO " +parmexportcal in=tparmexportcal_tmp.pdb out=tparmexportcal_tmp.pdb2 zerophase=true | grep -v ": Version " | grep -v "INFO " showparms # Export in as sin/cos way and show result. echo "" -../src/parmexportcal in=tparmexportcal_tmp.pdb out=tparmexportcal_tmp.pdb2 type=complex | grep -v ": Version " | grep -v "INFO " +parmexportcal in=tparmexportcal_tmp.pdb out=tparmexportcal_tmp.pdb2 type=complex | grep -v ": Version " | grep -v "INFO " showparms diff --git a/CMake/testscripts/runctest.sh.in b/CMake/testscripts/runctest.sh.in index 6dce795ae688ac2e3ceb5c6c344fda445b0f4825..72fa115f909f959b72b7cb218992aecd778ab5d6 100755 --- a/CMake/testscripts/runctest.sh.in +++ b/CMake/testscripts/runctest.sh.in @@ -26,7 +26,7 @@ srcdir="@srcdir@"; export srcdir # Add the bin directory in the build tree to PATH -PATH="@CMAKE_BINARY_DIR@/bin:${PATH}"; export PATH +PATH="@CMAKE_BINARY_DIR@/sbin:@CMAKE_BINARY_DIR@/bin:${PATH}"; export PATH # Add the Python build directory to PYTHONPATH. PYTHONPATH="@srcdir@:@PYTHON_BUILD_DIR@:${PYTHONPATH}"; export PYTHONPATH diff --git a/LCS/AMC/AMCImpl/test/tConverter.run b/LCS/AMC/AMCImpl/test/tConverter.run index 54de2e5b9a0b5291e57c8364c37b7e4ed347a3f0..c95b776cd52e203a3b9311ce4afede98b97e0cb5 100755 --- a/LCS/AMC/AMCImpl/test/tConverter.run +++ b/LCS/AMC/AMCImpl/test/tConverter.run @@ -26,7 +26,7 @@ if [ "$TYPE" = "client" ] then # This is the AMC server executable - SERVER="`dirname $0`/../src/AMCServer" + SERVER="`which AMCServer`" # The AMC server process needs its own log_prop file. We will copy # tConverter.log_prop so that the same logging levels are set. @@ -40,7 +40,7 @@ then rm -f AMCServer_tmp.log AMCServer.err; \ fi; \ if kill -0 $! 2>/dev/null; then kill -9 $! 2>/dev/null; fi; \ - rm -f AMCServer.log_prop; \ + rm -f $SERVER.log_prop; \ exit $STATUS' 0 1 2 3 15 # Start the server in the background. diff --git a/LCS/AMC/AMCImpl/test/tConverterStress.run b/LCS/AMC/AMCImpl/test/tConverterStress.run index cc4b07818e7119377364414b1425bfcadf6b6aac..789224e4e1e2f949f3dc5666c53bff763783d7f1 100755 --- a/LCS/AMC/AMCImpl/test/tConverterStress.run +++ b/LCS/AMC/AMCImpl/test/tConverterStress.run @@ -29,14 +29,14 @@ if [ "$TYPE" = "client" ] then # This is the AMC server executable - SERVER="`dirname $0`/../src/AMCServer" + SERVER="`which AMCServer`" # The AMC server process needs its own log_prop file. We will copy # tConverterStress.log_prop so that the same logging levels are set. if [ -f tConverterStress.log_prop ] then sed -e "s/tConverterStress_tmp/AMCServer_tmp/" \ - tConverterStress.log_prop > AMCServer.log_prop + tConverterStress.log_prop > $SERVER.log_prop fi # Exit and interrupt handler. $! is the process id of the last background @@ -47,7 +47,7 @@ then rm -f AMCServer_tmp.log; \ fi; \ if kill -0 $! 2>/dev/null; then kill -9 $! 2>/dev/null; fi; \ - rm -f AMCServer.log_prop \ + rm -f $SERVER.log_prop \ exit $STATUS' 0 1 2 3 15 # Start the server in the background. diff --git a/LCS/Common/test/tgetparsetvalue.run b/LCS/Common/test/tgetparsetvalue.run index af7baec8378e4fc7bcb93321863a44ac3970545d..0a535cae12b5c86d89645a3f039b33c50a3ca082 100755 --- a/LCS/Common/test/tgetparsetvalue.run +++ b/LCS/Common/test/tgetparsetvalue.run @@ -1,15 +1,17 @@ #!/bin/sh -../src/getparsetvalue tgetparsetvalue.parset key1 -../src/getparsetvalue tgetparsetvalue.parset key1 0 -../src/getparsetvalue tgetparsetvalue.parset key1 1 -../src/getparsetvalue tgetparsetvalue.parset key1 2 -../src/getparsetvalue tgetparsetvalue.parset key1 3 -../src/getparsetvalue tgetparsetvalue.parset key1 -1 -../src/getparsetvalue tgetparsetvalue.parset key1 -2 -../src/getparsetvalue tgetparsetvalue.parset key1 -3 -../src/getparsetvalue tgetparsetvalue.parset key1 -4 -../src/getparsetvalue tgetparsetvalue.parset key1.sub1 +PATH=$(cd ../src && pwd):$PATH -../src/getparsetvalue tgetparsetvalue.parset key0 -../src/getparsetvalue -d abc -d efgh tgetparsetvalue.parset key0 +getparsetvalue tgetparsetvalue.parset key1 +getparsetvalue tgetparsetvalue.parset key1 0 +getparsetvalue tgetparsetvalue.parset key1 1 +getparsetvalue tgetparsetvalue.parset key1 2 +getparsetvalue tgetparsetvalue.parset key1 3 +getparsetvalue tgetparsetvalue.parset key1 -1 +getparsetvalue tgetparsetvalue.parset key1 -2 +getparsetvalue tgetparsetvalue.parset key1 -3 +getparsetvalue tgetparsetvalue.parset key1 -4 +getparsetvalue tgetparsetvalue.parset key1.sub1 + +getparsetvalue tgetparsetvalue.parset key0 +getparsetvalue -d abc -d efgh tgetparsetvalue.parset key0 diff --git a/RTCP/Cobalt/CoInterface/test/tcmpfloat.run b/RTCP/Cobalt/CoInterface/test/tcmpfloat.run new file mode 100755 index 0000000000000000000000000000000000000000..ded17da066d937fd3e4e9c23462f08c562512467 --- /dev/null +++ b/RTCP/Cobalt/CoInterface/test/tcmpfloat.run @@ -0,0 +1,71 @@ +#!/bin/sh +# Tests for the cmpfloat.cc program. +# +# $Id$ + +# generate binary input files through tcmpfloat.py +python tcmpfloat.py +if [ $? -ne 0 ]; then echo "Failed to generate test input files"; exit 1; fi + + +status=0 + +# Test 1: compare a few complex floats +echo "Test 1" +cmpfloat --type=cfloat --verbose tcmpfloat-1.1.bin tcmpfloat-1.2.bin +if [ $? -ne 0 ]; then echo "TEST ERROR: Test 1 (compare complex floats) failed"; status=1; fi + +# Test 2: compare a few complex doubles, skip some bytes and limit nr compared values +echo "Test 2" +cmpfloat --type=cdouble --skip=32 --size=2 --verbose tcmpfloat-2.1.bin tcmpfloat-2.2.bin +if [ $? -ne 0 ]; then echo "TEST ERROR: Test 2 (compare complex double with skip, size) failed"; status=1; fi + +# Test 3: simple double comparison that fails, no scale factor +echo "Test 3" +cmpfloat --verbose tcmpfloat-3.1.bin tcmpfloat-3.2.bin +if [ $? -ne 1 ]; then echo "TEST ERROR: Test 3 (compare double fails, no scale) failed"; status=1; fi + +# Test 4: simple float comparison that fails with scale factor +echo "Test 4" +cmpfloat --type=float --verbose tcmpfloat-4.1.bin tcmpfloat-4.2.bin > tcmpfloat-4.out 2>&1 +if [ $? -ne 1 ]; then echo "TEST ERROR: Test 4 (compare float fails, scale factor) failed"; status=1; fi +cat tcmpfloat-4.out +grep inverse tcmpfloat-4.out > /dev/null +if [ $? -ne 0 ]; then echo "TEST ERROR: Test 4: scale factor (and its inverse) not found"; status=1; fi + +# Test 5: simple complex float comparison that fails, because of conjugation +echo "Test 5" +cmpfloat --type=cfloat --verbose tcmpfloat-5.1.bin tcmpfloat-5.2.bin > tcmpfloat-5.out 2>&1 +if [ $? -ne 1 ]; then echo "TEST ERROR: Test 5 (compare complex float fails, conjugation) failed"; status=1; fi +cat tcmpfloat-5.out +grep conjugation tcmpfloat-5.out > /dev/null +if [ $? -ne 0 ]; then echo "TEST ERROR: Test 5: conjugation error not found as such"; status=1; fi + +# Test 6: simple complex double comparison that fails with scale factor and conjugation +echo "Test 6" +cmpfloat --type=cdouble --verbose tcmpfloat-6.1.bin tcmpfloat-6.2.bin > tcmpfloat-6.out 2>&1 +if [ $? -ne 1 ]; then echo "TEST ERROR: Test 6 (compare complex double fails, scale factor and conjugation) failed"; status=1; fi +cat tcmpfloat-6.out +grep inverse tcmpfloat-6.out > /dev/null +if [ $? -ne 0 ]; then echo "TEST ERROR: Test 6: scale factor (and its inverse) not found"; status=1; fi +grep conjugation tcmpfloat-6.out > /dev/null +if [ $? -ne 0 ]; then echo "TEST ERROR: Test 6: conjugation error not found as such"; status=1; fi + +# Test 7: missing filenames +echo "Test 7" +cmpfloat --type=cdouble --verbose +if [ $? -ne 2 ]; then echo "TEST ERROR: Test 7 (missing filenames) failed"; status=1; fi + +# Test 8: non-existing file +echo "Test 8" +cmpfloat tcmpfloat-8.1.bin tcmpfloat-8.2-non-existing.bin +if [ $? -ne 2 ]; then echo "TEST ERROR: Test 8 (non-existing file) failed"; status=1; fi + +# Test 9: after skipping 32 bytes, one file has <4 doubles left to compare +echo "Test 9" +cmpfloat --skip=8 --size=4 tcmpfloat-9.1.bin tcmpfloat-9.2.bin +if [ $? -ne 1 ]; then echo "TEST ERROR: Test 9 (file too short after skip) failed"; status=1; fi + +if [ $status -eq 0 ]; then echo -e "\nAll tcmpfloat tests PASSED"; fi +exit $status + diff --git a/RTCP/Cobalt/CoInterface/test/tcmpfloat.sh b/RTCP/Cobalt/CoInterface/test/tcmpfloat.sh index 271e92c7bf12d0bdbcd238c15d41d08d2b6762ed..2be45da600ff78ff7d20dd7f8dd682131e80d14f 100755 --- a/RTCP/Cobalt/CoInterface/test/tcmpfloat.sh +++ b/RTCP/Cobalt/CoInterface/test/tcmpfloat.sh @@ -1,71 +1,2 @@ #!/bin/sh -# Tests for the cmpfloat.cc program. -# -# $Id$ - -# generate binary input files through tcmpfloat.py ./runctest.sh tcmpfloat -if [ $? -ne 0 ]; then echo "Failed to generate test input files"; exit 1; fi - - -status=0 - -# Test 1: compare a few complex floats -echo "Test 1" -../src/cmpfloat --type=cfloat --verbose tcmpfloat-1.1.bin tcmpfloat-1.2.bin -if [ $? -ne 0 ]; then echo "TEST ERROR: Test 1 (compare complex floats) failed"; status=1; fi - -# Test 2: compare a few complex doubles, skip some bytes and limit nr compared values -echo "Test 2" -../src/cmpfloat --type=cdouble --skip=32 --size=2 --verbose tcmpfloat-2.1.bin tcmpfloat-2.2.bin -if [ $? -ne 0 ]; then echo "TEST ERROR: Test 2 (compare complex double with skip, size) failed"; status=1; fi - -# Test 3: simple double comparison that fails, no scale factor -echo "Test 3" -../src/cmpfloat --verbose tcmpfloat-3.1.bin tcmpfloat-3.2.bin -if [ $? -ne 1 ]; then echo "TEST ERROR: Test 3 (compare double fails, no scale) failed"; status=1; fi - -# Test 4: simple float comparison that fails with scale factor -echo "Test 4" -../src/cmpfloat --type=float --verbose tcmpfloat-4.1.bin tcmpfloat-4.2.bin > tcmpfloat-4.out 2>&1 -if [ $? -ne 1 ]; then echo "TEST ERROR: Test 4 (compare float fails, scale factor) failed"; status=1; fi -cat tcmpfloat-4.out -grep inverse tcmpfloat-4.out > /dev/null -if [ $? -ne 0 ]; then echo "TEST ERROR: Test 4: scale factor (and its inverse) not found"; status=1; fi - -# Test 5: simple complex float comparison that fails, because of conjugation -echo "Test 5" -../src/cmpfloat --type=cfloat --verbose tcmpfloat-5.1.bin tcmpfloat-5.2.bin > tcmpfloat-5.out 2>&1 -if [ $? -ne 1 ]; then echo "TEST ERROR: Test 5 (compare complex float fails, conjugation) failed"; status=1; fi -cat tcmpfloat-5.out -grep conjugation tcmpfloat-5.out > /dev/null -if [ $? -ne 0 ]; then echo "TEST ERROR: Test 5: conjugation error not found as such"; status=1; fi - -# Test 6: simple complex double comparison that fails with scale factor and conjugation -echo "Test 6" -../src/cmpfloat --type=cdouble --verbose tcmpfloat-6.1.bin tcmpfloat-6.2.bin > tcmpfloat-6.out 2>&1 -if [ $? -ne 1 ]; then echo "TEST ERROR: Test 6 (compare complex double fails, scale factor and conjugation) failed"; status=1; fi -cat tcmpfloat-6.out -grep inverse tcmpfloat-6.out > /dev/null -if [ $? -ne 0 ]; then echo "TEST ERROR: Test 6: scale factor (and its inverse) not found"; status=1; fi -grep conjugation tcmpfloat-6.out > /dev/null -if [ $? -ne 0 ]; then echo "TEST ERROR: Test 6: conjugation error not found as such"; status=1; fi - -# Test 7: missing filenames -echo "Test 7" -../src/cmpfloat --type=cdouble --verbose -if [ $? -ne 2 ]; then echo "TEST ERROR: Test 7 (missing filenames) failed"; status=1; fi - -# Test 8: non-existing file -echo "Test 8" -../src/cmpfloat tcmpfloat-8.1.bin tcmpfloat-8.2-non-existing.bin -if [ $? -ne 2 ]; then echo "TEST ERROR: Test 8 (non-existing file) failed"; status=1; fi - -# Test 9: after skipping 32 bytes, one file has <4 doubles left to compare -echo "Test 9" -../src/cmpfloat --skip=8 --size=4 tcmpfloat-9.1.bin tcmpfloat-9.2.bin -if [ $? -ne 1 ]; then echo "TEST ERROR: Test 9 (file too short after skip) failed"; status=1; fi - -if [ $status -eq 0 ]; then echo -e "\nAll tcmpfloat tests PASSED"; fi -exit $status - diff --git a/RTCP/Cobalt/InputProc/test/t_generateRSP.cc b/RTCP/Cobalt/InputProc/test/t_generateRSP.cc index 119467fbf92c22698e61ef04a96a6737c10e1e30..cbd2345544aafe9f30882cd4ba8d9efced685051 100644 --- a/RTCP/Cobalt/InputProc/test/t_generateRSP.cc +++ b/RTCP/Cobalt/InputProc/test/t_generateRSP.cc @@ -118,7 +118,7 @@ int main() ofstream ascStream(ascFile.c_str()); generate_input(ascStream, bitMode[b], nrPackets[p], nrSubbands[s]); - command = str(format("../src/generateRSP -b%d -s%d < %s -o %s") % + command = str(format("generateRSP -b%d -s%d < %s -o %s") % bitMode[b] % nrSubbands[s] % ascFile % rspFile); cout << "Executing command: " << command << endl; ASSERT(system(command.c_str()) == 0);