From 83fd387fd52eed3c23145f54549f40b8e00a68b5 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Mon, 31 Oct 2011 15:53:52 +0000
Subject: [PATCH] Task #2669: Removed DAL tests as DAL is not used anymore

---
 .gitattributes                   |   1 -
 RTCP/Storage/test/CMakeLists.txt |   1 -
 RTCP/Storage/test/tDAL_HDF5.cc   | 132 -------------------------------
 3 files changed, 134 deletions(-)
 delete mode 100644 RTCP/Storage/test/tDAL_HDF5.cc

diff --git a/.gitattributes b/.gitattributes
index f10a80f12dc..6d82c4ce40d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2455,7 +2455,6 @@ RTCP/Storage/src/MeasurementSetFormat.cc -text
 RTCP/Storage/src/OutputThread.cc -text
 RTCP/Storage/src/gnuplotMS.sh -text
 RTCP/Storage/src/plotMS.cc -text
-RTCP/Storage/test/tDAL_HDF5.cc -text
 RTCP/Storage/test/tMeasurementSetFormat.parset-j2000 -text
 RTCP/Storage/test/tMeasurementSetFormat.parset-sun -text
 SAS/OTB/OTB/conf/ParmDBConfiguration.xml -text
diff --git a/RTCP/Storage/test/CMakeLists.txt b/RTCP/Storage/test/CMakeLists.txt
index 4f522f733ef..6c5502e5b65 100644
--- a/RTCP/Storage/test/CMakeLists.txt
+++ b/RTCP/Storage/test/CMakeLists.txt
@@ -3,5 +3,4 @@
 include(LofarCTest)
 
 lofar_add_test(tMeasurementSetFormat tMeasurementSetFormat.cc)
-lofar_add_test(tDAL_HDF5 tDAL_HDF5.cc)
 #lofar_add_test(tAH_TestStorage tAH_TestStorage.cc)
diff --git a/RTCP/Storage/test/tDAL_HDF5.cc b/RTCP/Storage/test/tDAL_HDF5.cc
deleted file mode 100644
index 42ffa5f42a4..00000000000
--- a/RTCP/Storage/test/tDAL_HDF5.cc
+++ /dev/null
@@ -1,132 +0,0 @@
-//# tDAL_HDF5: Test DAL HDF5 routines
-//#
-//#  Copyright (C) 2001
-//#  ASTRON (Netherlands Foundation for Research in Astronomy)
-//#  P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
-//#
-//#  This program is free software; you can redistribute it and/or modify
-//#  it under the terms of the GNU General Public License as published by
-//#  the Free Software Foundation; either version 2 of the License, or
-//#  (at your option) any later version.
-//#
-//#  This program is distributed in the hope that it will be useful,
-//#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-//#  GNU General Public License for more details.
-//#
-//#  You should have received a copy of the GNU General Public License
-//#  along with this program; if not, write to the Free Software
-//#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-//#
-//#  $Id: $
-
-#include <lofar_config.h>
-
-#include <Storage/MSWriterDAL.h>
-
-#ifdef USE_DAL
-
-#define FILENAME        "test.h5"
-#define SAMPLES         3056
-#define CHANNELS        256
-#define SUBBANDS        10
-#define BLOCKS          10
-
-#include <data_hl/BF_RootGroup.h>
-#include <data_hl/BF_StokesDataset.h>
-#include <data_common/CommonAttributes.h>
-#include <iostream>
-
-#include <data_common/CommonAttributes.h>
-
-#include <boost/format.hpp>
-#include <boost/multi_array.hpp>
-
-using namespace DAL;
-using namespace std;
-using namespace boost;
-using boost::format;
-
-int main()
-{
-  const char * const filename = FILENAME;
-  const unsigned nrSamples = SAMPLES;
-  const unsigned nrChannels = SUBBANDS * CHANNELS;
-
-  {
-    CommonAttributes ca;
-    Filename fn( "12345", "test", Filename::bf, Filename::h5, "");
-    ca.setFilename( fn );
-
-    ca.setClockFrequency( 200.0 );
-    ca.setClockFrequencyUnit( "MHz" );   
-
-    ca.setObserver( "" );
-    ca.setObservationStart( "", "", "" );
-    ca.setObservationEnd( "", "", "" );
-
-    ca.setAntennaSet( "LBA_INNER" );
-    ca.setFilterSelection( "LBA_30_90" );
-
-    ca.setTarget( "" );
-    ca.setSystemVersion( "" );
-    ca.setPipelineVersion( "" );
-
-    ca.setNotes( "" );
-
-    ca.setTelescope( "LOFAR" );
-
-    cout << "Creating file " << endl;
-    BF_RootGroup rootGroup( fn );
-
-    cout << "Creating stokes group 0" << endl;
-
-    rootGroup.openStokesDataset( 0, 0, 0, nrSamples * BLOCKS, SUBBANDS, CHANNELS, Stokes::I );
-
-    {
-      /* don't -- this crashes */
-      /*
-      BF_StokesDataset stokesDataset = rootGroup.getSubArrayPointing( 0 ).getStokesDataset( 0, 0 );
-      */
-
-      std::string name = DAL::BF_SubArrayPointing::getName(0)
-        + "/" + DAL::BF_BeamGroup::getName(0)
-        + "/" + DAL::BF_StokesDataset::getName(0);
-      BF_StokesDataset stokesDataset( rootGroup.locationID(), name );
-
-      cout << "Creating sample multiarray of " << (SAMPLES|2) << " x " << SUBBANDS << " x " << CHANNELS << endl;
-      typedef multi_array<float,3> array;
-
-      array samples(extents[SAMPLES|2][SUBBANDS][CHANNELS]);
-
-      for (unsigned t = 0; t < SAMPLES; t++)
-        for (unsigned s = 0; s < SUBBANDS; s++)
-          for (unsigned c = 0; c < CHANNELS; c++)
-            samples[t][s][c] = t * s * c;
-
-
-      for (unsigned seqnr = 0; seqnr < 1; seqnr++) {
-        vector<int> start(2), block(2);
-
-        start[0] = seqnr * nrSamples;
-        start[1] = 0;
-
-        block[0] = nrSamples;
-        block[1] = nrChannels;
-
-        cout << "Writing data block " << seqnr << endl;
-        stokesDataset.writeData( samples.origin(), start, block );
-      }
-      cout << "Finalise StokesDataset" << endl;
-    }  
-    cout << "Finalise RootGroup" << endl;
-  }
-  cout << "Done" << endl;
-
-  return 0;
-}
-#else
-int main() {
-  return 0;
-}
-#endif
-- 
GitLab