From c048f25120a7dec5e80ed1ad4fb0cf97863842e3 Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Mon, 29 Aug 2016 22:27:48 +0000
Subject: [PATCH] Task #8256; Fixed most tests

---
 .gitattributes                              |  1 +
 CEP/DP3/DPPP/test/tApplyBeam.run            | 12 ++--
 CEP/DP3/DPPP/test/tDemix.run_tmpl           |  6 +-
 CEP/DP3/DPPP/test/tGainCal.run              | 22 +++----
 CEP/DP3/DPPP/test/tPredict.run              | 12 ++--
 CEP/DP3/PythonDPPP/test/tPythonStep.run     |  2 +-
 CEP/LMWCommon/test/tfinddproc.run           |  8 +--
 CEP/LMWCommon/test/tstartdproc.run          |  8 +--
 CEP/MS/test/tVdsMaker.run                   |  2 +-
 CEP/MS/test/tcombinevds.run                 |  2 +-
 CEP/ParmDB/test/tParmFacade.run             |  2 +-
 CEP/ParmDB/test/tParmFacadeDistr.run        | 14 +---
 CEP/ParmDB/test/tParmPolc.run               |  2 +-
 CEP/ParmDB/test/tSourceDBBlob.run           |  6 +-
 CEP/ParmDB/test/tSourceDBBlob.stdout        |  6 +-
 CEP/ParmDB/test/tmakesourcedb.run           | 26 ++++----
 CEP/ParmDB/test/tmergesourcedb.run          | 32 +++++-----
 CEP/ParmDB/test/tparmdb.run                 |  2 +-
 CEP/ParmDB/test/tparmexportcal.run          | 14 ++--
 CMake/testscripts/runctest.sh.in            |  2 +-
 LCS/AMC/AMCImpl/test/tConverter.run         |  4 +-
 LCS/AMC/AMCImpl/test/tConverterStress.run   |  6 +-
 LCS/Common/test/tgetparsetvalue.run         | 26 ++++----
 RTCP/Cobalt/CoInterface/test/tcmpfloat.run  | 71 +++++++++++++++++++++
 RTCP/Cobalt/CoInterface/test/tcmpfloat.sh   | 69 --------------------
 RTCP/Cobalt/InputProc/test/t_generateRSP.cc |  2 +-
 26 files changed, 177 insertions(+), 182 deletions(-)
 create mode 100755 RTCP/Cobalt/CoInterface/test/tcmpfloat.run

diff --git a/.gitattributes b/.gitattributes
index 32f2277e1b6..4c77d7e57b3 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 8878b0ad9ec..c10d0c2b3f7 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 7d4e06c2613..bfb0b9789d0 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 2309449fe93..96165649a5e 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 c5a240a07a0..0325d0544be 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 deee0fd07d1..e5dc9ba0b0d 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 da784e956f6..59c8748dc09 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 964c9e8bc21..ae507040957 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 30a073f919f..d1f89f60031 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 1d7079a4834..ea6aae81a84 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 c8369da33ee..b7ff43a9c51 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 aae67df3e27..e8c9bf3fad0 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 c454f169fbb..f4f5a4289f8 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 71c45d9b34f..6da9fd4a18c 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 1efc454c86c..061797effcf 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 3920c9d287b..f929b85f5c3 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 978b0cb3726..a21c6442643 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 4684b0aec81..6051a32c9c4 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 63489a24d1c..657b0b18d5b 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 6dce795ae68..72fa115f909 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 54de2e5b9a0..c95b776cd52 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 cc4b07818e7..789224e4e1e 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 af7baec8378..0a535cae12b 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 00000000000..ded17da066d
--- /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 271e92c7bf1..2be45da600f 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 119467fbf92..cbd2345544a 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);
-- 
GitLab